VR-Forces 5.0.3 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 
41 
44  virtual const char* type() const;
45 
46  virtual void processSetTacticalGraphicFormattingData(DtSimMessage * msg);
47  virtual void processSetForce(DtSimMessage * msg);
48  virtual void processSetInvisible(DtSimMessage * msg);
49  virtual void processSetVertices(DtSimMessage * msg);
50  virtual void processSetStateProperties(DtSimMessage * msg);
51  virtual void processSetLocation(DtSimMessage * msg);
52 
55  virtual bool tickWhileDestroyed() const { return true; }
56 
57 public:
58  static void setTacticalGraphicFormattingDataCallback(DtSimMessage * msg, void * usrData);
59  static void setForceCallback(DtSimMessage * msg, void * usrData);
60  static void setInvisibleCallback(DtSimMessage * msg, void * usrData);
61  static void setVerticesCallback(DtSimMessage * msg, void * usrData);
62  static void setStatePropertiesCallback(DtSimMessage * msg, void * usr);
63  static void setLocationCallback(DtSimMessage * msg, void * usr);
64 
68  static DtSimComponent * creator(const DtString& name,
69  DtLocalObject* owner,
70  DtSimulationServices* simManager,
71  DtComponentDescriptor* desc = 0,
72  DtReaderWriterRegistry* parentRegistry = 0);
73 
74  virtual bool init();
75 
76 protected:
80 
83 
87 
88 protected:
90  virtual void initializeSetsToRegister();
91 
92 protected:
94 };
95 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
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.
virtual bool tickWhileDestroyed() const
Even though environmentals cannot currently be destroyed, keep as true in case they can in the future...
Definition: tacticalGraphicSetController.h:55
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
DtTacticalGraphicLocalObjectFacade myTacticalGraphicLocalObjectFacade
Definition: tacticalGraphicSetController.h:93
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)