VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localEntitySetController.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "vrfmodel/setController.h"
14 
16 
17 class DtSimMessage;
18 class DtVrfObject;
19 
30 {
31 public:
32 
36  DtVrfObject* owner,
37  DtSimManager* simManager,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  virtual ~DtLocalEntitySetController();
43 
45  virtual bool init();
46 
49  virtual const char* type() const;
50 
54  virtual void processSetStateProperties( DtSimMessage* msg );
55 
56  virtual void processSetForce( DtSimMessage* msg );
57  virtual void processSetAppearance( DtSimMessage* msg );
58  virtual void processSetCapabilities( DtSimMessage* msg );
59  virtual void processSetAltitude( DtSimMessage* msg );
60  virtual void processSetResource( DtSimMessage* msg );
61  virtual void processSetSOR( DtSimMessage* msg );
62  virtual void processSetSpeed( DtSimMessage* msg );
63  virtual void processSetCurrentSpeed( DtSimMessage* msg );
64  virtual void processSetEngagementRules( DtSimMessage* msg );
65  virtual void processSetRestore( DtSimMessage* msg );
66  virtual void processSetConcealed( DtSimMessage* msg );
67  virtual void processSetInvisible( DtSimMessage* msg );
68  virtual void processSetAiEnabled( DtSimMessage* msg );
69  virtual void processSetEngagementZones( DtSimMessage* msg );
70  virtual void processSetHideOccupants( DtSimMessage* msg );
71  virtual void processSetSkillLevel( DtSimMessage* msg );
72  virtual void processSetTargetPriorityList( DtSimMessage* msg );
73  virtual void processSetUndetectable( DtSimMessage* msg );
74  virtual void processSetUrgency( DtSimMessage* msg );
75 
82  virtual void processSetLocation(DtSimMessage* msg);
83 
84  virtual void processSetSuperior(DtSimMessage* msg);
85 
88  virtual void setLocation(DtVector geocentricLocation);
89 
91  virtual void setLocation(DtVector geocentricLocation, bool& dataAvailable);
92 
99  virtual void processSetHeading(DtSimMessage* msg);
100 
102  virtual void setHeading(DtReal heading);
103 
106  virtual void tick();
107 
111  virtual bool tickWhileDestroyed() const { return true; }
112 
120  virtual bool createPSR();
121 
122 public:
128  static void setStatePropertiesCallback( DtSimMessage* msg, void* usr );
129 
130  static void setHeadingCallback( DtSimMessage* msg, void* usrData );
131  static void setForceCallback( DtSimMessage* msg, void* usrData );
132  static void setLocationCallback( DtSimMessage* msg, void* usrData );
133  static void setSuperiorCallback( DtSimMessage* msg, void* usrData );
134  static void setAppearanceCallback( DtSimMessage* msg, void* usrData );
135  static void setCapabilitiesCallback( DtSimMessage* msg, void* usrData );
136  static void setAltitudeCallback( DtSimMessage* msg, void* usrData );
137  static void setResourceCallback( DtSimMessage* msg, void* usrData );
138  static void setSORCallback( DtSimMessage* msg, void* usrData );
139  static void setSpeedCallback( DtSimMessage* msg, void* usrData );
140  static void setCurrentSpeedCallback( DtSimMessage* msg, void* usrData );
141  static void setEngagementRulesCallback( DtSimMessage* msg, void* usrData );
142  static void setRestoreCallback( DtSimMessage* msg, void* usrData );
143  static void setConcealedCallback( DtSimMessage* msg, void* usrData );
144  static void setInvisibleCallback( DtSimMessage* msg, void* usrData );
145  static void setAiEnabledCallback( DtSimMessage* msg, void* usrData );
146  static void setEngagementZonesCallback( DtSimMessage* msg, void* usrData );
147  static void setHideOccupantsCallback( DtSimMessage *msg, void* usrData );
148  static void setSkillLevelCallback( DtSimMessage* msg, void* usrData );
149  static void setTargetPriorityListCallback( DtSimMessage* msg, void* usrData );
150  static void setUndetectableCallback( DtSimMessage* msg, void* usrData );
151  static void setUrgencyCallback( DtSimMessage* msg, void* usrData );
152 
156  static DtSimComponent* creator( const DtString& name, DtVrfObject* owner, DtSimManager* simManager,
157  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0 );
158 
159 protected:
160 
164 
167 
170 
171 protected:
172 
174  virtual void initializeSetsToRegister();
175 
176 protected:
179 
183 };
184 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtLocalEntitySetControllerPSR * myProcessState
Container for state data associated with this component.
Definition: localEntitySetController.h:182
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
class DtLocalEntitySetControllerPSR:
Definition: localEntitySetControllerPSR.h:23
virtual bool init()
Calls setRadio()
const DtSetController & operator=(const DtSetController &orig)
assignment operator; not implemented
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
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
DtVrfObject * myLocalEntity
Cached pointer to parent object.
Definition: localEntitySetController.h:178
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
virtual bool tickWhileDestroyed() const
Tick while destroyed so that sets that do some processing during tick can be resolved while the entit...
Definition: localEntitySetController.h:111
This class will define a basic set controller that will allow for adding sets of that can be register...
Definition: setController.h:21
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
void processSetLocation(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
These functions handle the standard sets that can affect the time estimates.
void processSetCurrentSpeed(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:29

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)