14 #include <vl/hostStructs.h>
49 virtual const char*
type()
const;
75 virtual void positionHead(
double elevation,
double azimuith);
78 virtual void elevateHead(
double elevation);
82 virtual void rotateHead(
double azimuth);
85 virtual void getElevationAndAzimuth(
double& elevation,
double& azimuth);
88 virtual double elevationAngleToLocalPoint(
const DtVector& localPoint,
bool& failed);
91 virtual double azimuthAngleToLocalPoint(
const DtVector&,
bool& failed);
94 virtual void nodHead();
97 virtual void shakeHead();
100 virtual double elevationRate();
103 virtual double azimuthRate();
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtAnalogInputPort * myLookAtElevationPort
Input Port Name: look-at-elevation Input Port Description: The elevation at which to look at...
Definition: lookAtActuator.h:149
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtInputPortGroup * myLookAtControlPortGroup
Input Port Group Name: look-at-control Input Port Group Description: .
Definition: lookAtActuator.h:124
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
DtVectorInputPort * myNodOrShakeRatesPort
Input Port Name: nod-or-shake-rates Input Port Description: Vector that defines rates for nod or shak...
Definition: lookAtActuator.h:163
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
DtVectorInputPort * myLookAtPointPort
Input Port Name: look-at-point Input Port Description: The point at which to look at...
Definition: lookAtActuator.h:130
DtLookAtActuatorDescruptor; a descriptor for the DtLookAtActuator component.
Definition: lookAtActuatorDescriptor.h:19
double myNodOrShakeDirection
Definition: lookAtActuator.h:117
DtAnalogInputPort * myLookAtAzimuthPort
Input Port Name: look-at-azimuth Input Port Description: The azimuth at which to look at...
Definition: lookAtActuator.h:143
DtArtPartType myHeadArtPart
Definition: lookAtActuator.h:119
DtAnalogInputPort * myNodOrShakePort
Input Port Name: nod-or-shake Input Port Description: Integer value that determines nod (1) or shake ...
Definition: lookAtActuator.h:156
virtual void tick()
This gives the thread of control to the component.
DtLookAtActuatorDescriptor * myLookAtDescriptor
Definition: lookAtActuator.h:118
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:29
DtLookAtActuator provides a simple model of a head.
Definition: lookAtActuator.h:30
virtual bool createPorts()
Called by init.
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtBooleanInputPort * myLookAtAnglePort
Input Port Name: look-at-angle Input Port Description: Indicates that looking should be done using th...
Definition: lookAtActuator.h:137
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtArticulatedPartStateRepository * myHead
Definition: lookAtActuator.h:120
DtBooleanInputPort * myResetHeadPort
Input Port Name: reset Input Port Description: Reset head immediately to 0 elevation and azimuth...
Definition: lookAtActuator.h:169
virtual const char * type() const =0
Returns a string identifies the class type of component.