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 | Protected Member Functions | Protected Attributes | Friends
makVrf::DtEnvironmentalStateComponentCurrentFrame Class Reference

3) Define the current frame class. This will be used for read access.

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

Public Member Functions

 DtEnvironmentalStateComponentCurrentFrame (DtStateData *)
 
virtual ~DtEnvironmentalStateComponentCurrentFrame () override
 
const
DtEnvironmentalStateComponentData & 
frameState () const
 
virtual const bool & isLocal () const override
 
virtual const bool & checkForNameReservation () const override
 
virtual const DtString & globalId () const override
 
virtual const DtUUID & uuid () const override
 
virtual const DtString & markingText () const override
 
virtual const DtString & sidc () const override
 
virtual const DtForceType forceType () const override
 
virtual const DtEntityType entityType () const override
 
virtual const DtEntityType objectType () const override
 
virtual const DtEntityIdentifier & entityId () const override
 
virtual const UInt32 appearanceBits () const override
 
virtual const int tickPeriod () const override
 
virtual const int color () const override
 
virtual const DtString userData () const override
 
virtual const double & physicalLineHeight () const override
 
virtual const double & physicalLineWidth () const override
 
virtual const double & ceilingHeight () const override
 
virtual double intelAreaModifierForForce (int forceType) const override
 
virtual const unsigned long long userLongLongData () const override
 
virtual const unsigned long long orbatId () const override
 
virtual const DtSimulationAddress simEngineAddress () const override
 
virtual const int penStyle () const override
 
virtual const int fillStyle () const override
 
virtual const int lineWidth () const override
 
bool readComponentValid () const
 
bool findReadComponent ()
 
virtual int recordCount () const override
 
virtual std::vector< UInt64 > records () const override
 
virtual UInt64 instanceHandle () const override
 
bool checkForUpdatedItems ()
 
- Public Member Functions inherited from makVrf::DtEnvironmentalStateComponent
 DtEnvironmentalStateComponent (DtStateData *storage)
 
virtual void addRecord (Legion::WriteStateInstance)
 
virtual void removeRecord (Legion::WriteStateInstance)
 
- Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
 DtSimulatedObjectStateComponent (DtStateData *)
 
virtual bool mainComponentOnLegion () const
 
- Public Member Functions inherited from makVrf::DtFrameStateInterface
 DtFrameStateInterface (DtStateData *)
 
virtual ~DtFrameStateInterface ()
 
void setIsWritable (bool b)
 
bool isWritable () const
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
void setLegionGlobalId (UInt64 d)
 
virtual bool isModified () const
 
virtual void clearModified ()
 
virtual void markModified ()
 
virtual
DtStateComponent::StateComponentType 
type () const
 
virtual
DtStateComponent::StateComponentType 
componentType () const =0
 
virtual const char * stringType () const =0
 
void setId (UInt64 id)
 
virtual UInt64 id () const
 
virtual void updateStateData (DtStateData *sd)
 
virtual Legion::ReadStateInstance readStateInstance () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
void emitComponentUpdated ()
 
void setMarkedForRemoval (bool b)
 
bool markedForRemoval () const
 
bool cleared () const
 
bool advancedFrame () const
 
virtual void frameAdvanced ()
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
virtual void aboutToBeDeleted ()
 

Protected Member Functions

const DtUUID _uuid () const
 
const DtString _markingText () const
 
const DtEntityIdentifier _entityId () const
 
void completeSetup ()
 
void updateVrfStateComponentParameters ()
 
void updatePhysicalLineHeightInformation ()
 
void updateCeilingInformation ()
 
void updatePhysicalLineWidthInformation ()
 
void handleDataUpdated (const std::vector< UInt32 > &attributesUpdated)
 
bool checkUUIDChanged ()
 
bool checkForceChanged ()
 
bool checkMarkingTextChanged ()
 
bool checkEntityIdChanged ()
 
void advanceFrame (const DtEnvironmentalStateComponentData &data)
 
- Protected Member Functions inherited from makVrf::DtFrameStateInterface
virtual void makeWritable ()
 
virtual void makeReadOnly ()
 

Protected Attributes

boost::signals2::scoped_connection myVrfStateComponentChangedConnection
 
DtRwIntelCollectionArea * myIntelCollectionAreaInformation
 
LOM::ReadEnvironmentProcessRepository myReadEnvironmentProcessRepository
 
VRF::ReadVrfEnvironmentRecordRepository myReadVrfEnvironmentRecordRepository
 
unsigned int myCallbackHandle
 
unsigned int myDataCallbackHandle
 
UInt32 myCenterPointColumn
 
UInt32 myOrientationColumn
 
int myForceId
 
std::string myMarkingText
 
DtEnvironmentalStateComponentData myData
 
- Protected Attributes inherited from makVrf::DtEnvironmentalStateComponent
UInt32 myUUIDColumn
 
UInt32 myMarkingTextColumn
 
UInt32 myForceTypeColumn
 
UInt32 myEntityIdColumn
 
UInt32 myAppearanceBitsColumn
 
UInt32 myObjectTypeColumn
 
- Protected Attributes inherited from makVrf::DtFrameStateInterface
bool myIsModified
 
UInt64 myId
 
UInt64 myStateId
 
UInt64 myLegionId
 
bool myIsWritable
 
bool myCleared
 
bool myAdvancedFrame
 
bool myMarkedForRemoval = false
 
DtStateData * myStateData
 

Friends

class DtEnvironmentalStateComponentImplementation
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
static
DtStateComponent::StateComponentType 
ComponentType ()
 
static const char * StringType ()
 
- Public Attributes inherited from makVrf::DtSimulatedObjectStateComponent
boost::signals2::signal< void(const
DtUUID &, const DtUUID
&, makVrf::SimStateID)> 
signal_uuidChanged
 
boost::signals2::signal< void(const
DtString &, const DtString
&, makVrf::SimStateID)> 
signal_markingTextChanged
 
boost::signals2::signal< void(int
oldForce, int newForce,
makVrf::SimStateID)> 
signal_forceChanged
 
boost::signals2::signal< void(const
DtSimulationAddress
&oldAddress, const
DtSimulationAddress
&newAddress,
makVrf::SimStateID)> 
signal_simEngineAddressChanged
 
- Public Attributes inherited from makVrf::DtFrameStateInterface
boost::signals2::signal< void(DtFrameStateInterface *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_componentModified
 

Constructor & Destructor Documentation

makVrf::DtEnvironmentalStateComponentCurrentFrame::DtEnvironmentalStateComponentCurrentFrame ( DtStateData *  )

Constructs a current-frame component backed by the given state data.

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

Destructor; unregisters attribute-update callbacks.

Member Function Documentation

const DtEnvironmentalStateComponentData& makVrf::DtEnvironmentalStateComponentCurrentFrame::frameState ( ) const
inline

Current frame state only can access current frame buffers. This ensures thread safety.

virtual const bool& makVrf::DtEnvironmentalStateComponentCurrentFrame::isLocal ( ) const
overridevirtual
virtual const bool& makVrf::DtEnvironmentalStateComponentCurrentFrame::checkForNameReservation ( ) const
overridevirtual
virtual const DtString& makVrf::DtEnvironmentalStateComponentCurrentFrame::globalId ( ) const
overridevirtual
virtual const DtUUID& makVrf::DtEnvironmentalStateComponentCurrentFrame::uuid ( ) const
overridevirtual
virtual const DtString& makVrf::DtEnvironmentalStateComponentCurrentFrame::markingText ( ) const
overridevirtual
virtual const DtString& makVrf::DtEnvironmentalStateComponentCurrentFrame::sidc ( ) const
overridevirtual

Returns the visual Sidc code to be used.

virtual const DtForceType makVrf::DtEnvironmentalStateComponentCurrentFrame::forceType ( ) const
overridevirtual
virtual const DtEntityType makVrf::DtEnvironmentalStateComponentCurrentFrame::entityType ( ) const
inlineoverridevirtual
virtual const DtEntityType makVrf::DtEnvironmentalStateComponentCurrentFrame::objectType ( ) const
overridevirtual
virtual const DtEntityIdentifier& makVrf::DtEnvironmentalStateComponentCurrentFrame::entityId ( ) const
overridevirtual
virtual const UInt32 makVrf::DtEnvironmentalStateComponentCurrentFrame::appearanceBits ( ) const
overridevirtual
virtual const int makVrf::DtEnvironmentalStateComponentCurrentFrame::tickPeriod ( ) const
overridevirtual
virtual const int makVrf::DtEnvironmentalStateComponentCurrentFrame::color ( ) const
overridevirtual
virtual const DtString makVrf::DtEnvironmentalStateComponentCurrentFrame::userData ( ) const
overridevirtual
virtual const double& makVrf::DtEnvironmentalStateComponentCurrentFrame::physicalLineHeight ( ) const
overridevirtual
virtual const double& makVrf::DtEnvironmentalStateComponentCurrentFrame::physicalLineWidth ( ) const
overridevirtual
virtual const double& makVrf::DtEnvironmentalStateComponentCurrentFrame::ceilingHeight ( ) const
overridevirtual
virtual double makVrf::DtEnvironmentalStateComponentCurrentFrame::intelAreaModifierForForce ( int  forceType) const
overridevirtual

Gets/sets the tick period override; -1 uses the default.

Gets/sets the color of this environmental object. Gets/sets the user data string associated with this environmental object. Gets/sets the physical height of the line in meters. Gets/sets the physical width of the line in meters. Gets/sets the ceiling height in meters. Returns the pen/line style derived from appearance bits. Returns the fill style derived from appearance bits. Returns the line width derived from appearance bits. Returns the intelligence collection area modifier for the given force type.

Parameters
forceTypeThe force type identifier.
Returns
A modifier value scaling the intel collection area for the specified force.

Reimplemented from makVrf::DtEnvironmentalStateComponent.

virtual const unsigned long long makVrf::DtEnvironmentalStateComponentCurrentFrame::userLongLongData ( ) const
overridevirtual
virtual const unsigned long long makVrf::DtEnvironmentalStateComponentCurrentFrame::orbatId ( ) const
inlineoverridevirtual
virtual const DtSimulationAddress makVrf::DtEnvironmentalStateComponentCurrentFrame::simEngineAddress ( ) const
overridevirtual
virtual const int makVrf::DtEnvironmentalStateComponentCurrentFrame::penStyle ( ) const
overridevirtual
virtual const int makVrf::DtEnvironmentalStateComponentCurrentFrame::fillStyle ( ) const
overridevirtual
virtual const int makVrf::DtEnvironmentalStateComponentCurrentFrame::lineWidth ( ) const
overridevirtual
bool makVrf::DtEnvironmentalStateComponentCurrentFrame::readComponentValid ( ) const

Returns true if the underlying read component is valid and available.

bool makVrf::DtEnvironmentalStateComponentCurrentFrame::findReadComponent ( )

Searches for and connects to the read component in the current frame state.

Returns
True if the read component was found and connected successfully.
virtual int makVrf::DtEnvironmentalStateComponentCurrentFrame::recordCount ( ) const
overridevirtual

Returns the number of additional records attached to this environmental object.

Reimplemented from makVrf::DtEnvironmentalStateComponent.

virtual std::vector<UInt64> makVrf::DtEnvironmentalStateComponentCurrentFrame::records ( ) const
overridevirtual

Returns instance handles to all the records in this environmental.

Reimplemented from makVrf::DtEnvironmentalStateComponent.

virtual UInt64 makVrf::DtEnvironmentalStateComponentCurrentFrame::instanceHandle ( ) const
overridevirtual

The instance handle for the read (or write) environment process repository.

Reimplemented from makVrf::DtEnvironmentalStateComponent.

bool makVrf::DtEnvironmentalStateComponentCurrentFrame::checkForUpdatedItems ( )

Checks all tracked attributes for changes and fires corresponding signals.

Returns
True if any attribute changed.
const DtUUID makVrf::DtEnvironmentalStateComponentCurrentFrame::_uuid ( ) const
protected

Reads the UUID from the underlying Legion repository.

const DtString makVrf::DtEnvironmentalStateComponentCurrentFrame::_markingText ( ) const
protected

Reads the marking text from the underlying Legion repository.

const DtEntityIdentifier makVrf::DtEnvironmentalStateComponentCurrentFrame::_entityId ( ) const
protected

Reads the entity identifier from the underlying Legion repository.

void makVrf::DtEnvironmentalStateComponentCurrentFrame::completeSetup ( )
protected

Finalizes column index lookup and connects attribute-change callbacks.

void makVrf::DtEnvironmentalStateComponentCurrentFrame::updateVrfStateComponentParameters ( )
protected

Refreshes any parameters derived from the associated VRF state component.

void makVrf::DtEnvironmentalStateComponentCurrentFrame::updatePhysicalLineHeightInformation ( )
protected

Updates the physical line height from extended state data.

void makVrf::DtEnvironmentalStateComponentCurrentFrame::updateCeilingInformation ( )
protected

Updates the ceiling height from extended state data or vertex geometry.

void makVrf::DtEnvironmentalStateComponentCurrentFrame::updatePhysicalLineWidthInformation ( )
protected

Updates the physical line width from extended state data.

void makVrf::DtEnvironmentalStateComponentCurrentFrame::handleDataUpdated ( const std::vector< UInt32 > &  attributesUpdated)
protected

Handles attribute update callbacks from the Legion database.

Parameters
attributesUpdatedList of attribute column indices that changed.
bool makVrf::DtEnvironmentalStateComponentCurrentFrame::checkUUIDChanged ( )
protected

Checks if the UUID has changed and emits signal_uuidChanged if so.

Returns
True if the UUID changed.
bool makVrf::DtEnvironmentalStateComponentCurrentFrame::checkForceChanged ( )
protected

Checks if the force type has changed and emits signal_forceChanged if so.

Returns
True if the force type changed.
bool makVrf::DtEnvironmentalStateComponentCurrentFrame::checkMarkingTextChanged ( )
protected

Checks if the marking text has changed and emits signal_markingTextChanged if so.

Returns
True if the marking text changed.
bool makVrf::DtEnvironmentalStateComponentCurrentFrame::checkEntityIdChanged ( )
protected

Checks if the entity identifier has changed and updates cached data if so.

Returns
True if the entity identifier changed.
void makVrf::DtEnvironmentalStateComponentCurrentFrame::advanceFrame ( const DtEnvironmentalStateComponentData &  data)
inlineprotected

Advances the internal data cache to the given snapshot.

Parameters
dataThe new state data to cache.

Friends And Related Function Documentation

Member Data Documentation

boost::signals2::scoped_connection makVrf::DtEnvironmentalStateComponentCurrentFrame::myVrfStateComponentChangedConnection
protected

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

DtRwIntelCollectionArea* makVrf::DtEnvironmentalStateComponentCurrentFrame::myIntelCollectionAreaInformation
protected

Intel collection area information parsed from extended data.

LOM::ReadEnvironmentProcessRepository makVrf::DtEnvironmentalStateComponentCurrentFrame::myReadEnvironmentProcessRepository
protected

Read-access repository for the Legion environment process record.

VRF::ReadVrfEnvironmentRecordRepository makVrf::DtEnvironmentalStateComponentCurrentFrame::myReadVrfEnvironmentRecordRepository
protected

Read-access repository for the VRF-specific environment record.

unsigned int makVrf::DtEnvironmentalStateComponentCurrentFrame::myCallbackHandle
protected

Handle for the VRF environment record attribute-update callback.

unsigned int makVrf::DtEnvironmentalStateComponentCurrentFrame::myDataCallbackHandle
protected

Handle for the environment process attribute-update callback.

UInt32 makVrf::DtEnvironmentalStateComponentCurrentFrame::myCenterPointColumn
protected

Column index for the center-point position attribute.

UInt32 makVrf::DtEnvironmentalStateComponentCurrentFrame::myOrientationColumn
protected

Column index for the orientation attribute.

int makVrf::DtEnvironmentalStateComponentCurrentFrame::myForceId
protected

Cached force type identifier for change detection.

std::string makVrf::DtEnvironmentalStateComponentCurrentFrame::myMarkingText
protected

Cached marking text string for change detection.

DtEnvironmentalStateComponentData makVrf::DtEnvironmentalStateComponentCurrentFrame::myData
protected

Cached state data for this current-frame component.


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)