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 Attributes
makVrf::DtEnvironmentalStateComponentImplementation 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::DtEnvironmentalStateComponentImplementation:
Inheritance graph
[legend]

Public Member Functions

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

Static Public Member Functions

static void addAdditionalTableColumns (Legion::SimulationDatabase *db)
 
- Static Public Member Functions inherited from makVrf::DtDoubleBufferedStateComponent< DtEnvironmentalStateComponent >
static void registerLegionComponent (Legion::SimulationDatabase *)
 
static void addAdditionalTableColumns (Legion::SimulationDatabase *)
 

Protected Attributes

DtEnvironmentalStateComponentCurrentFrame myCurrentFrameState
 
DtEnvironmentalStateComponentNextFrame myNextFrameState
 
LOM::WriteEnvironmentProcessRepository myWriteEnvironmentProcessRepository
 
bool myFoundComponent
 
bool myCheckedForVrfStateComponent
 
boost::signals2::scoped_connection myVrfStateComponentChangedConnection
 
- 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::DtEnvironmentalStateComponentImplementation::DtEnvironmentalStateComponentImplementation ( DtStateData *  sd)

Constructs an implementation backed by the given state data.

Parameters
sdPointer to the owning state data object.
virtual makVrf::DtEnvironmentalStateComponentImplementation::~DtEnvironmentalStateComponentImplementation ( )
overridevirtual

Destructor.

Member Function Documentation

bool makVrf::DtEnvironmentalStateComponentImplementation::isDoubleBuffered ( )
inline

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

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

Returns a const pointer to the current-frame state interface.

Reimplemented from makVrf::DtStateComponent.

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

Returns a writable pointer to the next-frame state interface.

Reimplemented from makVrf::DtStateComponent.

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

Returns a const pointer to the next-frame state interface.

Reimplemented from makVrf::DtStateComponent.

virtual bool makVrf::DtEnvironmentalStateComponentImplementation::forceAdvance ( )
overridevirtual

If we haven't found the component, force the advance to find it.

Reimplemented from makVrf::DtDoubleBufferedStateComponent< DtEnvironmentalStateComponent >.

static void makVrf::DtEnvironmentalStateComponentImplementation::addAdditionalTableColumns ( Legion::SimulationDatabase *  db)
static

Registers any additional database columns required by VRF environmental objects.

Parameters
dbThe simulation database to add columns to.
virtual void makVrf::DtEnvironmentalStateComponentImplementation::updateDataStorage ( )
inlineoverridevirtual

Advances the double-buffer and propagates next-frame data to the current frame.

Implements makVrf::DtDoubleBufferedStateComponent< DtEnvironmentalStateComponent >.

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

Updates the state data pointer on both frame states.

Parameters
sdThe new state data pointer.

Implements makVrf::DtDoubleBufferedStateComponent< DtEnvironmentalStateComponent >.

virtual void makVrf::DtEnvironmentalStateComponentImplementation::convertToRemote ( )
overridevirtual

Change the object from remote (not-writable)

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtEnvironmentalStateComponentImplementation::convertToLocal ( )
overridevirtual

Change to local.

Reimplemented from makVrf::DtStateComponent.

virtual Legion::WriteStateInstance makVrf::DtEnvironmentalStateComponentImplementation::writeStateInstance ( )
inlineoverridevirtual

Returns the write state instance for the underlying environment process repository.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtEnvironmentalStateComponentImplementation::addAdditionalStateComponents ( )
overridevirtual

Override to create any additional state sub-components needed by this component.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtEnvironmentalStateComponentImplementation::firstFrameAdvance ( )
overridevirtual

Overridden to get read frame from legion.

Reimplemented from makVrf::DtStateComponent.

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

Called before this component is deleted; notifies both frame states.

Reimplemented from makVrf::DtStateComponent.

References makVrf::DtStateComponent::aboutToBeDeleted().

virtual void makVrf::DtEnvironmentalStateComponentImplementation::initializeFromParameters ( const DtVrfObjectParameters *  )
overridevirtual

Initializes this component from the given VRF object parameters. Only called when parameters are available.

Parameters
paramsPointer to the object parameters to initialize from.

Reimplemented from makVrf::DtStateComponent.

Member Data Documentation

DtEnvironmentalStateComponentCurrentFrame makVrf::DtEnvironmentalStateComponentImplementation::myCurrentFrameState
protected

The current-frame state for read access.

DtEnvironmentalStateComponentNextFrame makVrf::DtEnvironmentalStateComponentImplementation::myNextFrameState
protected

The next-frame state for write access.

LOM::WriteEnvironmentProcessRepository makVrf::DtEnvironmentalStateComponentImplementation::myWriteEnvironmentProcessRepository
protected

Write-access repository for the underlying Legion environment process.

bool makVrf::DtEnvironmentalStateComponentImplementation::myFoundComponent
protected

True once the read component has been successfully located.

bool makVrf::DtEnvironmentalStateComponentImplementation::myCheckedForVrfStateComponent
protected

True once a check for the VRF state component has been performed.

boost::signals2::scoped_connection makVrf::DtEnvironmentalStateComponentImplementation::myVrfStateComponentChangedConnection
protected

Connection to the VRF state component's extended-data-modified signal.


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)