![]() |
VR-Forces 4.0.4 Class Documentation
|
An actuator that manages the changes in the global environment, such as advancing the time of day. More...

Public Member Functions | |
| DtGlobalEnvironmentActuator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtGlobalEnvironmentActuator () |
| destructor | |
| virtual bool | init () |
| to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports. | |
| virtual void | tick () |
| This gives the thread of control to the component. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| virtual void | updateTimeOfDay () |
| Updates the time of day in the objects state repository. | |
| virtual void | updateIllumination () |
| Calculates an illumination value based on the current time of day and sets this in the state repository. | |
| virtual bool | timeWithinPeriod (double testTime, double startPeriod, double endPeriod) const |
| virtual double | percentThoughTimePeriod (double testTime, double startPeriod, double endPeriod) const |
Protected Attributes | |
| DtGlobalEnvironmentStateRepository * | myGlobalEnvironmentSR |
| const DtGlobalEnvironmentActuatorDescriptor * | myGlobalEnvironmentDescriptor |
Private Member Functions | |
| DtGlobalEnvironmentActuator () | |
| Not Implemented. | |
| DtGlobalEnvironmentActuator (const DtGlobalEnvironmentActuator &orig) | |
| Not Implemented. | |
| const DtGlobalEnvironmentActuator & | operator= (const DtGlobalEnvironmentActuator &orig) |
| Not Implemented. | |
An actuator that manages the changes in the global environment, such as advancing the time of day.
This actuator must be placed on an object with a DtGlobalEnvironmentStateRepository. Uses Descriptor Type: DtGlobalEnvironmentActuatorDescriptor
| DtGlobalEnvironmentActuator::DtGlobalEnvironmentActuator | ( | ) | [private] |
Not Implemented.
| DtGlobalEnvironmentActuator::DtGlobalEnvironmentActuator | ( | const DtGlobalEnvironmentActuator & | orig | ) | [private] |
Not Implemented.
| DtGlobalEnvironmentActuator::DtGlobalEnvironmentActuator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtGlobalEnvironmentActuator::~DtGlobalEnvironmentActuator | ( | ) | [virtual] |
destructor
| const DtGlobalEnvironmentActuator& DtGlobalEnvironmentActuator::operator= | ( | const DtGlobalEnvironmentActuator & | orig | ) | [private] |
Not Implemented.
| virtual bool DtGlobalEnvironmentActuator::init | ( | ) | [virtual] |
to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.
Reimplemented from DtActuatorComponent.
| virtual void DtGlobalEnvironmentActuator::tick | ( | ) | [virtual] |
This gives the thread of control to the component.
The component is ticked once each simulation from by the component list it's on. This base class tick has no functionality.
Reimplemented from DtSimComponent.
| virtual DtString DtGlobalEnvironmentActuator::type | ( | ) | const [virtual] |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtSimComponent.
| static DtSimComponent* DtGlobalEnvironmentActuator::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual void DtGlobalEnvironmentActuator::updateTimeOfDay | ( | ) | [protected, virtual] |
Updates the time of day in the objects state repository.
| virtual void DtGlobalEnvironmentActuator::updateIllumination | ( | ) | [protected, virtual] |
Calculates an illumination value based on the current time of day and sets this in the state repository.
| virtual bool DtGlobalEnvironmentActuator::timeWithinPeriod | ( | double | testTime, |
| double | startPeriod, | ||
| double | endPeriod | ||
| ) | const [protected, virtual] |
| virtual double DtGlobalEnvironmentActuator::percentThoughTimePeriod | ( | double | testTime, |
| double | startPeriod, | ||
| double | endPeriod | ||
| ) | const [protected, virtual] |
const DtGlobalEnvironmentActuatorDescriptor* DtGlobalEnvironmentActuator::myGlobalEnvironmentDescriptor [protected] |