VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
environmentalActivationController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 
15 class DtSimMessage;
17 
21 {
22 public:
25  DtSimulationServices * simManager, DtComponentDescriptor* desc = NULL,
26  DtReaderWriterRegistry * parentRegistry = 0);
27 
30 
31 private:
34 
37 
38 public:
39  virtual const char* type() const;
40 
42  static DtSimComponent* creator(const DtString & name, DtLocalObject* owner,
43  DtSimulationServices * simManager, DtComponentDescriptor* desc,
44  DtReaderWriterRegistry * parentRegistry);
45 
46  static void setActivationCallback(DtSimMessage *msg, void * usrData);
47  virtual void processSetActivationCallback(DtSimMessage *msg);
48 
49 protected:
51  virtual bool init();
52 
54  virtual void tick();
55 
57  virtual void updateBasedOnActivationState();
58 
60  virtual void preFirstTickInit();
61 
62 protected:
66 };
67 
DtVrfOverlayObjectStateRepository * myOverlayStateRepository
Definition: environmentalActivationController.h:63
#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.
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
virtual bool init()
Calls setRadio()
DtTacticalGraphicLocalObjectFacade myTacticalGraphicLocalObjectFacade
Definition: environmentalActivationController.h:64
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 from ...
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Definition: vrfOverlayObjectStateRepository.h:30
double myLastTimeOfDay
Definition: environmentalActivationController.h:65
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
This controller will handle the activation of an environmental either by a set command or by sim time...
Definition: environmentalActivationController.h:20

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)