![]() |
VR-Forces Developer's Guide
|
DtLookAtActuator provides a simple model of a head.
End User Description: The look at actuator is derived from the actuator component that provides the ability to turn or elevate the head
Uses Descriptor Type: DtLookAtActuatorDescriptor

Public Member Functions | |
| DtLookAtActuator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtLookAtActuator () override |
| virtual const char * | type () const override |
| virtual void | tick () override |
| virtual bool | init () override |
Public Member Functions inherited from DtActuatorComponent | |
| virtual | ~DtActuatorComponent () override |
| virtual DtSimRadio * | radio () |
| virtual bool | tickWhileDestroyed () const override |
Public Member Functions inherited from DtSimComponent | |
| DtSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simServices, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtSimComponent () override |
| virtual void | setParentSystem (DtComponentSystem *system) |
| DtComponentSystem * | parentSystem () const |
| virtual bool | postAddComponentsInit () |
| virtual void | registerAttributeFunctions () |
| virtual void | preFirstTickInit () |
| virtual void | postTick () |
| virtual void | timedTick () |
| virtual void | setMinTickPeriod (double minTickPeriod, double minTickPeriodVariance) |
| virtual void | setupFirstTickTime () |
| virtual void | setEntity (DtLocalObject *entity) |
| virtual DtSimComponent * | nextComponent () |
| virtual DtSimComponent * | prevComponent () |
| virtual void | setListItem (DtListItem *item) |
| virtual DtListItem * | listItem () |
| virtual void | putData (std::string &fp, int indentLevel=0) override |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
| virtual void | addInputPort (DtInputPort *port) |
| virtual void | removeInputPort (DtInputPort *port) |
| virtual DtInputPort * | lookupInputPort (const DtString &portName) |
| virtual DtList | inputPortList () const |
| virtual void | addOutputPort (DtOutputPort *port) |
| virtual void | removeOutputPort (DtOutputPort *port) |
| virtual DtOutputPort * | lookupOutputPort (const DtString &portName) |
| virtual DtList | outputPortList () const |
| virtual void | addInputPortGroup (DtInputPortGroup *group) |
| virtual void | removeInputPortGroup (DtInputPortGroup *group) |
| virtual DtInputPortGroup * | lookupInputPortGroup (const DtString &groupName) |
| virtual DtList | inputPortGroupList () const |
| virtual void | addOutputPortGroup (DtOutputPortGroup *group) |
| virtual void | removeOutputPortGroup (DtOutputPortGroup *group) |
| virtual DtOutputPortGroup * | lookupOutputPortGroup (const DtString &groupName) |
| virtual DtList | outputPortGroupList () const |
| virtual int | priority () const |
| virtual void | setPriority (int priority) |
| double | dT () const |
| virtual void | setDT (double deltaT) |
| virtual void | setComponentDescriptor (DtComponentDescriptor *componentDescriptor) |
| virtual const DtComponentDescriptor * | componentDescriptor () const |
| DtVrfProcessStateRepositoryManager * | psrManager () |
| virtual const DtSymbolString & | componentFullName () const |
| DtPhysicalWorld * | physicalWorld () |
| const DtPhysicalWorld * | physicalWorld () const |
| const DtAttachedTerrain * | terrainAttachedTo () const |
| DtLocalObject * | entity () |
| const DtLocalObject * | entity () const |
| DtSimulationServices * | simulationServices () |
| const DtSimulationServices * | simulationServices () const |
| const Coordinate_System * | coordinateSystem () const |
| virtual void | isClutterChanged () |
| virtual bool | taskVisualizationsActive () const |
| virtual bool | taskVisualizationsEnabled () const |
| virtual void | onRestore () |
| makVrf::DtTaskVisualizationMap & | taskVisualizations () |
| virtual void | updateImgui () |
| virtual bool | debugActive () const |
| virtual void | enable () |
| virtual void | disable () |
| virtual bool | isEnabled () |
| virtual void | setIsEnabled (bool yesNo) |
| virtual DtOutputStream & | objectConsoleDebug (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleVerbose (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleInfo (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleWarn (const DtString &channel="") const |
| virtual DtOutputStream & | objectConsoleError (const DtString &channel="") const |
| virtual int | notifyLevel () const |
| virtual DtSimResourceManager & | resourceManager () |
| virtual const DtSimResourceManager & | resourceManager () const |
| VRF4API_METHOD const DtSimulationServices * | simManager () const |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) const |
| virtual | ~DtReaderWriter () |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| DtLookAtActuator::DtLookAtActuator | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
| name | Reader writer name of this component. |
| owner | The DtLocalObject 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). |
|
overridevirtual |
destructor
|
protected |
default constructor; not implemented
|
protected |
copy constructor; not implemented
|
overridevirtual |
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. Warning: this function should always return the same pointer and it should be valid forever. This means the data should be static.
Implements DtSimComponent.
|
overridevirtual |
Update the head azimuth and elevation.
Reimplemented from DtSimComponent.
|
static |
| name | Reader writer name of this component. |
| owner | The DtLocalObject 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). |
|
overridevirtual |
Initialize part type, ports and PSR.
Reimplemented from DtActuatorComponent.
|
overrideprotectedvirtual |
Overridden to create #myLookAtWeaponControlPortGroup.
Reimplemented from DtSimComponent.
|
overrideprotectedvirtual |
Overridden to create local ports.
Reimplemented from DtSimComponent.
Positions the head to correct elevation and rotation.
|
protectedvirtual |
Elevates the head to the correct elevation.
|
protectedvirtual |
Rotates the head to look at the given elevation and azimuth, using the rotation rates and min/max values.
|
protectedvirtual |
Given current port settings, get the elevation and azimuth to position the head.
|
protectedvirtual |
Elevation angle of art part to local point from head position.
|
protectedvirtual |
Azimuth angle to local point from head position.
|
protectedvirtual |
Returns the next step in the nod elevation.
|
protectedvirtual |
Returns the next step in the shake azimuth.
|
protectedvirtual |
Returns the elevation rate.
|
protectedvirtual |
Returns the azimuth rate()
|
protected |
assignment operator; not implemented
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Input Port Group Name: look-at-control
Input Port Group Description:
.
|
protected |
Input Port Name: look-at-point
Input Port Description: The point at which to look at.
Input Port Range:
Input Group Parent: look-at-control
.
|
protected |
Input Port Name: look-at-angle
Input Port Description: Indicates that looking should be done using the fixed azimuth and elevation, not at a specified point.
Input Port Range:
Input Group Parent: look-at-control
.
|
protected |
Input Port Name: look-at-azimuth
Input Port Description: The azimuth at which to look at.
Input Port Range:
Input Group Parent: look-at-control
.
|
protected |
Input Port Name: look-at-elevation
Input Port Description: The elevation at which to look at.
Input Port Range:
Input Group Parent: look-at-control
.
|
protected |
Input Port Name: nod-or-shake Input Port Description: Integer value that determines nod (1) or shake (2) of head based on rates supplied.
Input Port Range:
Input Group Parent:
.
|
protected |
Input Port Name: nod-or-shake-rates Input Port Description: Vector that defines rates for nod or shake as x (min range), y (max range), z (rate)
Input Port Range:
Input Group Parent:
.
|
protected |
Input Port Name: reset
Input Port Description: Reset head immediately to 0 elevation and azimuth.
Input Port Range:
Input Group Parent:
.
|
protected |
Member to allow for access to platform specific data.