VR-Forces 4.10 Class Documentation
 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 
13 
14 class DtSimMessage;
16 
20 {
21 public:
24  DtSimManager * simManager, DtComponentDescriptor* desc = NULL,
25  DtReaderWriterRegistry * parentRegistry = 0);
26 
29 
30 private:
33 
36 
37 public:
38  virtual const char* type() const;
39 
41  static DtSimComponent* creator(const DtString & name, DtVrfObject* owner,
42  DtSimManager * simManager, DtComponentDescriptor* desc,
43  DtReaderWriterRegistry * parentRegistry);
44 
45  static void setActivationCallback(DtSimMessage *msg, void * usrData);
46  virtual void processSetActivationCallback(DtSimMessage *msg);
47 
48 protected:
50  virtual bool init();
51 
53  virtual void tick();
54 
56  virtual void updateBasedOnActivationState();
57 
59  virtual void preFirstTickInit();
60 
61 protected:
64 };
65 
DtVrfOverlayObjectStateRepository * myOverlayStateRepository
Definition: environmentalActivationController.h:62
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
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:42
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Definition: vrfOverlayObjectStateRepository.h:29
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
double myLastTimeOfDay
Definition: environmentalActivationController.h:63
This controller will handle the activation of an environmental either by a set command or by sim time...
Definition: environmentalActivationController.h:19

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)