VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacticalGraphicSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 
13 #pragma once
14 
16 #include "vrfmodel/setController.h"
18 
19 class DtSimMessage;
21 
28 {
29 
30 public:
31 
35  DtLocalObject* owner,
36  DtSimulationServices* simManager,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
41  virtual ~DtTacticalGraphicSetController() override;
42 
45  virtual const char* type() const override;
46 
47  virtual void processSetTacticalGraphicFormattingData(DtSimMessage * msg);
48  virtual void processSetForce(DtSimMessage * msg);
49  virtual void processSetInvisible(DtSimMessage * msg);
50  virtual void processSetObjectAttached(DtSimMessage * msg);
51  virtual void processSetVertices(DtSimMessage * msg);
52  virtual void processSetStateProperties(DtSimMessage * msg);
53  virtual void processSetLocation(DtSimMessage * msg);
54  virtual void processSetSidc(DtSimMessage* msg);
55 
58  virtual bool tickWhileDestroyed() const override { return true; }
59 
60 public:
61  static void setTacticalGraphicFormattingDataCallback(DtSimMessage * msg, void * usrData);
62  static void setForceCallback(DtSimMessage * msg, void * usrData);
63  static void setInvisibleCallback(DtSimMessage * msg, void * usrData);
64  static void setObjectAttachedCallback(DtSimMessage * msg, void * usrData);
65  static void setVerticesCallback(DtSimMessage * msg, void * usrData);
66  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
67  static void setLocationCallback(DtSimMessage * msg, void * usr);
68  static void setSidcCallback(DtSimMessage* msg, void* usrData);
69 
73  static DtSimComponent * creator(const DtString& name,
74  DtLocalObject* owner,
75  DtSimulationServices* simManager,
76  DtComponentDescriptor* desc = 0,
77  DtReaderWriterRegistry* parentRegistry = 0);
78 
79  virtual bool init() override;
80 
82  virtual void setLocation(DtVector geocentricLocation, int flag, double altAboveTerrain, bool& dataAvailable);
83 
84 protected:
88 
91 
95 
103  virtual bool createPSR();
104 
105  virtual void tick();
106 
107 protected:
109  virtual void initializeSetsToRegister();
110 
111 protected:
114  DtLocalEntitySetControllerPSR* myProcessState = nullptr;
115 
117  bool myWarnedLocationOnce = false;
118 };
119 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
class DtLocalEntitySetControllerPSR:
Definition: localEntitySetControllerPSR.h:24
const DtSetController & operator=(const DtSetController &orig)
assignment operator; not implemented
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls setRadio()
DtTacticalGraphicLocalObjectFacade myTacticalGraphicLocalObjectFacade
Definition: tacticalGraphicSetController.h:116
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
This class will define a basic set controller that will allow for adding sets of that can be register...
Definition: setController.h:21
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtTacticalGraphicSetController is a controller that handles all DtSetDataRequest messages for an envi...
Definition: tacticalGraphicSetController.h:27
void processSetLocation(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
virtual bool tickWhileDestroyed() const override
Even though environmentals cannot currently be destroyed, keep as true in case they can in the future...
Definition: tacticalGraphicSetController.h:58
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)