VR-Forces 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() override;
34 
37  virtual const char* type() const override;
38 
41  virtual bool init() override;
42 
48  virtual bool createPSR();
49 
51  virtual void tick() override;
52 
53  static void gestureTaskCallback(DtSimMessage * msg, void * usrData);
54  virtual void processGestureTask(DtSimMessage * msg);
55 
57  virtual void taskComplete(bool success = true) override;
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() override;
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 const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
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 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...
virtual bool init() override
Calls setRadio()
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)