VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
diGuyGestureController.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 #pragma once
9 
12 #include "vrfutil/simClock.h"
13 
14 class DtSimMessage;
16 
21 {
22 public:
23 
27  DtLocalObject* owner,
28  DtSimulationServices* simManager,
29  DtComponentDescriptor* desc = 0,
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
33  virtual ~DtDiGuyGestureController();
34 
37  virtual const char* type() const;
38 
41  virtual bool init();
42 
48  virtual bool createPSR();
49 
51  virtual void tick();
52 
53  static void gestureTaskCallback(DtSimMessage * msg, void * usrData);
54  virtual void processGestureTask(DtSimMessage * msg);
55 
57  virtual void taskComplete(bool success = true);
58 
62  static DtSimComponent * creator(const DtString& name,
63  DtLocalObject* owner,
64  DtSimulationServices* simManager,
65  DtComponentDescriptor* desc = 0,
66  DtReaderWriterRegistry* parentRegistry = 0);
67 
68 protected:
70  virtual void registerTaskMsgCallbacks();
71 
72 protected:
75  virtual double executeGesture(const DtString&);
76 
78  virtual void stopGesture(const DtString&);
79 
80 protected:
83 
86 
89  orig);
90 
91 protected:
95 };
Handles gestures in that it will either perform the gesture immediately (preview), perform it immediately as a task (do not wait for the gesture to complete) or wait until the gestures duration is complete before completing this task.
Definition: diGuyGestureController.h:20
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtDiGuyGestureControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: diGuyGestureController.h:94
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
Calls setRadio()
virtual void taskComplete(bool success=true)
If we are currently tasked, this will cause us to notify the entity that we're done and delete the ta...
File: simMsg.h.
Definition: simMessage.h:35
File: vlClock.h.
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
class DtDiGuyGestureControllerPSR:
Definition: diGuyGestureControllerPSR.h:18
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)