VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
globalEnvironmentActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
14 
17 
23 {
24 private:
26 
31 
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtGlobalEnvironmentActuator();
44 
47  virtual bool init();
48 
49  virtual void tick();
50 
53  virtual const char* type() const;
54 
58  static DtSimComponent * creator(const DtString& name,
59  DtVrfObject* owner,
60  DtSimManager* simManager,
61  DtComponentDescriptor* desc = 0,
62  DtReaderWriterRegistry* parentRegistry = 0);
63 
64 protected:
66  virtual void updateTimeOfDay();
67 
73  virtual bool timeWithinPeriod(double testTime, double startPeriod, double endPeriod) const;
74 
80  virtual double percentThoughTimePeriod(double testTime, double startPeriod, double endPeriod) const;
81 
82 protected:
85 };
86 
#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 DtGlobalEnvironmentActuatorDescriptor * myGlobalEnvironmentDescriptor
Definition: globalEnvironmentActuator.h:84
DtGlobalEnvironmentStateRepository * myGlobalEnvironmentSR
Definition: globalEnvironmentActuator.h:83
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
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
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
An actuator that manages the changes in the global environment, such as advancing the time of day...
Definition: globalEnvironmentActuator.h:22
Instances of DtGlobalEnvironmentActuatorDescriptor are used to specify the parameters for a DtGlobalE...
Definition: globalEnvironmentActuatorDescriptor.h:23
This repository holds all information that is common to all the forms of all objects within VR-Forces...
Definition: globalEnvironmentStateRepository.h:22
virtual void tick()
This gives the thread of control to the component.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual const char * type() const =0
Returns a string identifies the class type of component.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)