VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtArticulatedPartStateComponentImplementation Class Reference

4) Define the state component that will contain the wrappers to the next and current frame states that reference the data storage that is created when this class is created.

Inheritance diagram for makVrf::DtArticulatedPartStateComponentImplementation:
Inheritance graph
[legend]

Public Member Functions

 DtArticulatedPartStateComponentImplementation (DtStateData *sd)
 
bool isDoubleBuffered ()
 
virtual const
DtFrameStateInterface * 
currentFrameState () const override
 
virtual DtFrameStateInterface * nextFrameState () override
 
virtual const
DtFrameStateInterface * 
nextFrameState () const override
 
virtual void setCoordinateSystem (const Coordinate_System *) override
 
virtual void updateDataStorage () override
 
virtual void updateStateData (DtStateData *sd) override
 
virtual void setPublishingOnLegionNetwork (bool b) override
 
virtual void initializeFromParameters (const DtVrfObjectParameters *params) override
 
virtual void aboutToBeDeleted () override
 
- Public Member Functions inherited from makVrf::DtDoubleBufferedStateComponent< DtArticulatedPartStateComponent >
 DtDoubleBufferedStateComponent (DtStateData *sd)
 
virtual void setId (UInt64 id) override
 
virtual void setStateData (DtStateData *sd) override
 
virtual bool isDoubleBuffered () const override
 
virtual bool forceAdvance () override
 
virtual void advanceFrame () override
 
- Public Member Functions inherited from makVrf::DtStateComponent
 DtStateComponent (DtStateData *)
 
virtual ~DtStateComponent ()
 
virtual StateComponentType typeWithCreator () const =0
 
virtual StateComponentType componentType () const =0
 
bool publishingOnLegionNetwork () const
 
virtual void setIsRemoteComponent (bool b)
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
bool isRemoteComponent () const
 
virtual void completeSetup ()
 
virtual UInt64 id () const
 
bool advancedFrame () const
 
virtual void firstFrameAdvance ()
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
const DtStateData * stateData () const
 
bool cleared () const
 
DtStateData * stateData ()
 
const Coordinate_System * coordinateSystem () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
virtual void addAdditionalStateComponents ()
 
virtual void removeAdditionalStateComponents ()
 
virtual const char * stringType () const =0
 

Static Public Member Functions

static void SetAddMissingParameterToAllParts (bool)
 
static bool AddMissingParameterToAllParts ()
 
- Static Public Member Functions inherited from makVrf::DtDoubleBufferedStateComponent< DtArticulatedPartStateComponent >
static void registerLegionComponent (Legion::SimulationDatabase *)
 
static void addAdditionalTableColumns (Legion::SimulationDatabase *)
 

Protected Member Functions

virtual void createPartsFromDescriptors (const std::list< DtSimArtPartDescriptor * > &descriptors, const std::list< DtSimArtPartDescriptor * > &partDefaultsFromActuators)
 

Protected Attributes

DtArticulatedPartStateComponentCurrentFrame myCurrentFrameState
 
DtArticulatedPartStateComponentNextFrame myNextFrameState
 
- Protected Attributes inherited from makVrf::DtStateComponent
UInt64 myId
 
DtStateData * myStateData
 
const Coordinate_System * myCoordinateSystem
 
bool myIsRemoteComponent
 
bool myCleared
 
bool myPublishingOnLegionNetwork
 
bool myAdvancedFrame
 

Additional Inherited Members

- Public Types inherited from makVrf::DtStateComponent
enum  StateComponentTypeEnum {
  Undefined = -1, SimulatedObjectStateComponent = 0, EntityStateComponent = SimulatedObjectStateComponent, EnvironmentalStateComponent = SimulatedObjectStateComponent,
  AggregateStateComponent = SimulatedObjectStateComponent, MetocServiceStateComponent = SimulatedObjectStateComponent, AerodromeStateComponent = SimulatedObjectStateComponent, SpotReportStateComponent = SimulatedObjectStateComponent,
  OrbatStateComponent = SimulatedObjectStateComponent, LocationStateComponent = 1, EntityLocationStateComponent = LocationStateComponent, EnvironmentalLocationStateComponent = LocationStateComponent,
  StaticLocationStateComponent = LocationStateComponent, HumanStateComponent = 2, ArticulatedPartStateComponent = 3, VrfStateComponent = 4,
  StatePropertiesStateComponent = 5, VrfGeometryStateComponent = 6, SubordinateManagerStateComponent = 7, RangeItemsStateComponent = 8,
  CloudLayerStateComponent = 9, TimeAndDateStateComponent = 10, WeatherStateComponent = 11, LaserDesignatorStateComponent = 12,
  EmitterSystemStateComponent = 13, IffStateComponent = 14, ActiveSonarStateComponent = 15, UnderwaterAcousticsStateComponent = 16,
  SensorFieldOfViewStateComponent = 17, RadioTransmitterStateComponent = 18, TaskVisualizationStateComponent = 19, TacticalSmokeStateComponent = 20,
  DynamicTerrainStateComponent = 21, RadioReceiverStateComponent = 22, WindCorridorStateComponent = 23, AirTurbulenceStateComponent = 24,
  NavAidRadioTransmitterStateComponent = 25, AisDataStateComponent = 26, AircraftLightingStateComponent = 27, LandSurfaceStateComponent = 28,
  WaterSurfaceStateComponent = 29, TroposphereStateComponent = 30, SubsurfaceStateComponent = 31, GroundVehicleLightingStateComponent = 32,
  LaserLightStateComponent = 33, SearchLightStateComponent = 34, UserStateComponent = 64
}
 
using StateComponentType = unsigned int
 
- Public Attributes inherited from makVrf::DtStateComponent
boost::signals2::signal< void(DtStateComponent *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(DtStateComponent *)> signal_componentModified
 

Constructor & Destructor Documentation

makVrf::DtArticulatedPartStateComponentImplementation::DtArticulatedPartStateComponentImplementation ( DtStateData *  sd)

Constructs the implementation and initializes the next and current frame state components.

Parameters
sdPointer to the owning state data storage.

Member Function Documentation

bool makVrf::DtArticulatedPartStateComponentImplementation::isDoubleBuffered ( )
inline

Returns true, indicating this component uses double-buffered state storage.

virtual const DtFrameStateInterface* makVrf::DtArticulatedPartStateComponentImplementation::currentFrameState ( ) const
inlineoverridevirtual

Returns a const pointer to the current (read) frame state interface.

Reimplemented from makVrf::DtStateComponent.

virtual DtFrameStateInterface* makVrf::DtArticulatedPartStateComponentImplementation::nextFrameState ( )
inlineoverridevirtual

Returns a mutable pointer to the next (write) frame state interface.

Reimplemented from makVrf::DtStateComponent.

virtual const DtFrameStateInterface* makVrf::DtArticulatedPartStateComponentImplementation::nextFrameState ( ) const
inlineoverridevirtual

Returns a const pointer to the next (write) frame state interface.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::setCoordinateSystem ( const Coordinate_System *  )
overridevirtual

Sets the coordinate system used for transforming articulated part positions.

Parameters
csPointer to the coordinate system.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::updateDataStorage ( )
overridevirtual

Advances the current frame buffer with the latest next-frame data.

Implements makVrf::DtDoubleBufferedStateComponent< DtArticulatedPartStateComponent >.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::updateStateData ( DtStateData *  sd)
inlineoverridevirtual

Updates the state data pointer in both the current and next frame state components.

Parameters
sdPointer to the new state data storage.

Implements makVrf::DtDoubleBufferedStateComponent< DtArticulatedPartStateComponent >.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::setPublishingOnLegionNetwork ( bool  b)
overridevirtual

Sets whether articulated part state should be published on the LEGION network.

Parameters
bTrue to enable LEGION network publishing.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::initializeFromParameters ( const DtVrfObjectParameters *  params)
overridevirtual

Initializes articulated parts from the entity's object parameters (e.g., descriptor lists).

Parameters
paramsPointer to the VR-Forces object parameters.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::aboutToBeDeleted ( )
inlineoverridevirtual

Notifies both frame state components that the owning entity is about to be deleted.

Reimplemented from makVrf::DtStateComponent.

References makVrf::DtStateComponent::aboutToBeDeleted().

static void makVrf::DtArticulatedPartStateComponentImplementation::SetAddMissingParameterToAllParts ( bool  )
static

Sets whether a missing parameter metric is added to all unmetriced articulated parts. By default, only parented parts without metrics receive a parameter; enabling this applies to all. Must be called before parts are created.

static bool makVrf::DtArticulatedPartStateComponentImplementation::AddMissingParameterToAllParts ( )
static

Returns true if missing parameter metrics are added to all unmetriced articulated parts.

virtual void makVrf::DtArticulatedPartStateComponentImplementation::createPartsFromDescriptors ( const std::list< DtSimArtPartDescriptor * > &  descriptors,
const std::list< DtSimArtPartDescriptor * > &  partDefaultsFromActuators 
)
protectedvirtual

Creates the articulated parts for an entity from articulated part descriptors.

Member Data Documentation

DtArticulatedPartStateComponentCurrentFrame makVrf::DtArticulatedPartStateComponentImplementation::myCurrentFrameState
protected

Current (read) frame state for the articulated parts.

DtArticulatedPartStateComponentNextFrame makVrf::DtArticulatedPartStateComponentImplementation::myNextFrameState
protected

Next (write) frame state for the articulated parts.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)