VR-Forces 4.10 Class Documentation
 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  DtVrfObject* owner,
28  DtSimManager* 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  DtVrfObject* owner,
64  DtSimManager* 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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtDiGuyGestureControllerPSR * myProcessState
Container for state data associated with this component.
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:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
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.
class DtDiGuyGestureControllerPSR:
Definition: diGuyGestureControllerPSR.h:18
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)