VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtGlobalEnvironmentActuatorDescriptor Class Reference

Instances of DtGlobalEnvironmentActuatorDescriptor are used to specify the parameters for a DtGlobalEnvironmentActuator component. More...

Inheritance diagram for DtGlobalEnvironmentActuatorDescriptor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtGlobalEnvironmentActuatorDescriptor (const DtString &componentName, DtReaderWriterRegistry *parentRegistry=0)
 real constructor
 DtGlobalEnvironmentActuatorDescriptor (const DtGlobalEnvironmentActuatorDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
virtual ~DtGlobalEnvironmentActuatorDescriptor ()
DtGlobalEnvironmentActuatorDescriptoroperator= (const DtGlobalEnvironmentActuatorDescriptor &orig)
 assignment
virtual DtString type () const
 Returns the type of component this descriptor describes.
virtual DtComponentDescriptorclone (DtReaderWriterRegistry *parentRegistry=0) const
virtual void setSunriseTime (double value)
virtual double sunriseTime () const
virtual void setSunsetTime (double value)
virtual double sunsetTime () const
virtual void setDaylightIllumination (double value)
virtual double daylightIllumination () const
virtual void setNightIllumination (double value)
virtual double nightIllumination () const
virtual void setDayNightTransitionTime (double value)
virtual double dayNightTransitionTime () const
virtual double sunriseStartTime () const
 Applies the myDayNightTransitionTime to mySunriseTime to calculate the start and end of the sunrise time.
virtual double sunriseEndTime () const
 Applies the myDayNightTransitionTime to mySunriseTime to calculate the start and end of the sunrise time.
virtual double sunsetStartTime () const
 Applies the myDayNightTransitionTime to mySunsetTime to calculate the start and end of the sunset time.
virtual double sunsetEndTime () const
 Applies the myDayNightTransitionTime to mySunsetTime to calculate the start and end of the sunset time.

Static Public Member Functions

static DtComponentDescriptorcreator ()
 

Protected Member Functions

 DtGlobalEnvironmentActuatorDescriptor ()
 default constructor; not implemented

Protected Attributes

parameters

These parameters are available for setting in the OPD files.

DtRwReal mySunriseTime
 Parameter Name: sunrise-time
Parameter Description: Time at which the daylight model changes from night to day.
DtRwReal mySunsetTime
 Parameter Name: sunset-time
Parameter Description: Time at which the daylight model changes from day to night.
DtRwReal myDaylightIllumination
 Parameter Name: daylight-illumination
Parameter Description: The percent illumination during the full daylight hours.
DtRwReal myNightIllumination
 Parameter Name: daylight-illumination
Parameter Description: The percent illumination during the full night hours.
DtRwReal myDayNightTransitionTime
 Parameter Name: day-night-transition-time
Parameter Description: The period of time, centered on sunrise and sunset times, where the illumination value will be transitioning from daylight to night, or vice versa.

Detailed Description

Instances of DtGlobalEnvironmentActuatorDescriptor are used to specify the parameters for a DtGlobalEnvironmentActuator component.


Constructor & Destructor Documentation

real constructor

copy constructor

default constructor; not implemented


Member Function Documentation

DtGlobalEnvironmentActuatorDescriptor& DtGlobalEnvironmentActuatorDescriptor::operator= ( const DtGlobalEnvironmentActuatorDescriptor orig)

assignment

Returns the type of component this descriptor describes.

Used to create the descriptor on read from an mtl file. Component descriptor type strings are defined in compDescTypes.h.

Returns:
DtGlobalEnvironmentActuatorDescriptorType

Reimplemented from DtActuatorComponentDescriptor.

Reimplemented from DtActuatorComponentDescriptor.

Returns:
Newly created instance of this class, with an empty DtReaderWriter name. Creation methods are registered with a DtComponentDescriptorFactory, so they can be created on demand as they are read in from a parameter database file.

Reimplemented from DtActuatorComponentDescriptor.

virtual void DtGlobalEnvironmentActuatorDescriptor::setSunriseTime ( double  value) [virtual]
See also:
mySunriseTime
virtual double DtGlobalEnvironmentActuatorDescriptor::sunriseTime ( ) const [virtual]
See also:
mySunriseTime
virtual void DtGlobalEnvironmentActuatorDescriptor::setSunsetTime ( double  value) [virtual]
See also:
mySunsetTime
virtual double DtGlobalEnvironmentActuatorDescriptor::sunsetTime ( ) const [virtual]
See also:
mySunsetTime
virtual void DtGlobalEnvironmentActuatorDescriptor::setDaylightIllumination ( double  value) [virtual]
virtual void DtGlobalEnvironmentActuatorDescriptor::setNightIllumination ( double  value) [virtual]
virtual void DtGlobalEnvironmentActuatorDescriptor::setDayNightTransitionTime ( double  value) [virtual]
virtual double DtGlobalEnvironmentActuatorDescriptor::sunriseStartTime ( ) const [virtual]

Applies the myDayNightTransitionTime to mySunriseTime to calculate the start and end of the sunrise time.

Value returned between 0 and 24*60*60.

virtual double DtGlobalEnvironmentActuatorDescriptor::sunriseEndTime ( ) const [virtual]

Applies the myDayNightTransitionTime to mySunriseTime to calculate the start and end of the sunrise time.

Value returned between 0 and 24*60*60.

virtual double DtGlobalEnvironmentActuatorDescriptor::sunsetStartTime ( ) const [virtual]

Applies the myDayNightTransitionTime to mySunsetTime to calculate the start and end of the sunset time.

Value returned between 0 and 24*60*60.

virtual double DtGlobalEnvironmentActuatorDescriptor::sunsetEndTime ( ) const [virtual]

Applies the myDayNightTransitionTime to mySunsetTime to calculate the start and end of the sunset time.

Value returned between 0 and 24*60*60.


Member Data Documentation

Parameter Name: sunrise-time
Parameter Description: Time at which the daylight model changes from night to day.


Parameter Default Value: 21600 (06:00) Parameter Units: seconds past midnight

Parameter Name: sunset-time
Parameter Description: Time at which the daylight model changes from day to night.


Parameter Default Value: 64800 (18:00) Parameter Units: seconds past midnight

Parameter Name: daylight-illumination
Parameter Description: The percent illumination during the full daylight hours.


Parameter Default Value: 1.0 Parameter Range: 0.0 - 1.0.

Parameter Name: daylight-illumination
Parameter Description: The percent illumination during the full night hours.


Parameter Default Value: 0.1 Parameter Range: 0.0 - 1.0.

Parameter Name: day-night-transition-time
Parameter Description: The period of time, centered on sunrise and sunset times, where the illumination value will be transitioning from daylight to night, or vice versa.


During this time period, the illumination level will be a linear progression between the night and daylight illumination levels.
Parameter Default Value: 7200 (2 hours) Parameter Units: seconds


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)