22 class DtSimObjectBaseObjectStateRepository;
27 class DtArticulatedPartStateRepository;
63 virtual const char*
type()
const;
93 virtual void forward();
96 virtual void backward();
102 virtual void pause();
105 virtual void resume();
108 virtual bool isFullyTranslatedToMaximum()
const;
111 virtual bool isFullyTranslatedToMinimum()
const;
120 virtual int state()
const;
123 virtual bool paused()
const;
140 virtual double currentPosition();
143 virtual void setPositionAndRate(
double newPos,
double newRate);
147 virtual void updatePartState();
150 virtual void initializePartState();
156 virtual double rangeChangeRate()
const;
159 virtual double minRange()
const;
162 virtual double maxRange()
const;
DtTranslatablePartActuator is a simple actuator which controls the movement of an articulated part as...
Definition: translatablePartActuator.h:38
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:107
bool myHasDuplicatePSR
Definition: translatablePartActuator.h:187
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
const DtTranslatablePartActuatorDescriptor * myDescriptor
Definition: translatablePartActuator.h:184
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
Definition: bindableLuaComponent.h:53
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity's radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor's DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it's location, rotation and so forth. These are created in the entity's DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator's DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtObjectType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part's object type.
Definition: actuatorComponent.h:47
DtSwingingPartActuatorDescriptor is the descriptor for DtSwingingPartActuator components. It contains all parameters which can be specified in the OPD file for this component. For an example of using a swinging part actuator and how it is described in an OPD file see fixed-wing-fighter-jet.sysdef in the systems/movement folder.
Definition: translatablePartActuatorDescriptor.h:21
makVrf::DtArticulatedPartStateRepository * myArtPartStateRep
Definition: translatablePartActuator.h:182
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtTranslatablePartActuatorPSR * myProcessState
Definition: translatablePartActuator.h:186
TranslationDirection
Definition: translatablePartActuatorDescriptor.h:25
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:40
DtTranslatablePartActuatorDescriptor::TranslationDirection TranslationDirection
Definition: translatablePartActuator.h:43
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: translatablePartActuator.h:190
Definition: translatablePartActuatorPSR.h:21
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86