VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rangeRingController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
15 
20 {
21 public:
23  DtRangeRingController(const DtString & name, DtLocalObject* owner,
24  DtSimulationServices * simManager, DtComponentDescriptor* desc = NULL,
25  DtReaderWriterRegistry * parentRegistry = 0);
26 
28  virtual ~DtRangeRingController();
29 
30 private:
33 
36 
37 public:
38  virtual const char* type() const;
39 
41  virtual bool init();
42 
44  virtual void preFirstTickInit();
45 
47  virtual DtRangeRingControllerPSR* createPSR();
48 
52  static void setRangeRingsCallback(DtSimMessage * msg, void *component);
53  virtual void processSetRangeRings(DtSimMessage* msg);
55 
57  static DtSimComponent* creator(const DtString & name, DtLocalObject* owner,
58  DtSimulationServices * simManager, DtComponentDescriptor* desc,
59  DtReaderWriterRegistry * parentRegistry);
60 
61 protected:
62 
65  virtual const DtString& rangeRingName() const;
66 
68  virtual void updateRangeRings(unsigned num, double spacing);
69 
70 
72 
73 };
74 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
DtRangeRingCOntrollerPSR is a process state repository which holds state variables for the DtRangeRin...
Definition: rangeRingControllerPSR.h:19
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
This controller allows a sim object to add configurable range rings. These are in addition to any sen...
Definition: rangeRingController.h:19
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtRangeRingControllerPSR * myProcessState
Definition: rangeRingController.h:71
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)