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;
20 
27 {
28 
29 public:
30 
34  DtLocalObject* owner,
35  DtSimulationServices* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
40  virtual ~DtTacticalGraphicSetController() override;
41 
44  virtual const char* type() const override;
45 
46  virtual void processSetTacticalGraphicFormattingData(DtSimMessage * msg);
47  virtual void processSetForce(DtSimMessage * msg);
48  virtual void processSetInvisible(DtSimMessage * msg);
49  virtual void processSetObjectAttached(DtSimMessage * msg);
50  virtual void processSetVertices(DtSimMessage * msg);
51  virtual void processSetStateProperties(DtSimMessage * msg);
52  virtual void processSetLocation(DtSimMessage * msg);
53 
56  virtual bool tickWhileDestroyed() const override { return true; }
57 
58 public:
59  static void setTacticalGraphicFormattingDataCallback(DtSimMessage * msg, void * usrData);
60  static void setForceCallback(DtSimMessage * msg, void * usrData);
61  static void setInvisibleCallback(DtSimMessage * msg, void * usrData);
62  static void setObjectAttachedCallback(DtSimMessage * msg, void * usrData);
63  static void setVerticesCallback(DtSimMessage * msg, void * usrData);
64  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
65  static void setLocationCallback(DtSimMessage * msg, void * usr);
66 
70  static DtSimComponent * creator(const DtString& name,
71  DtLocalObject* owner,
72  DtSimulationServices* simManager,
73  DtComponentDescriptor* desc = 0,
74  DtReaderWriterRegistry* parentRegistry = 0);
75 
76  virtual bool init() override;
77 
78 protected:
82 
85 
89 
90 protected:
92  virtual void initializeSetsToRegister();
93 
94 protected:
96 };
97 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.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:95
File: simMsg.h.
Definition: simMessage.h:35
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:96
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:26
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:56
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)