![]() |
VR-Forces 4.8 Class Documentation
|
This class will wrap a DtControlObjectPublisher to allow for easier creation of a publisher that is compatible with VR-Forces. More...

Public Types | |
| typedef DtControlObjectRepository *(* | MyStateRepCreator )() |
Public Member Functions | |
| DtVrfControlObjectPublisher (const DtEntityType &type, DtExerciseConn *conn, const DtGlobalObjectDesignator &glId=DtVrfObjectIdGenerator::nullId(), const DtEntityIdentifier &entId=DtEntityIdentifier::nullId(), DtRwProperties *stateProps=0, DtRwProperties *paramProps=0) | |
| Create a new instance of the VRF Control Object Publisher which will, in turn, create the DtControlObjectPublisher, given a object id (DIS) or name (HLA). More... | |
| DtVrfControlObjectPublisher (const DtEntityType &type, DtExerciseConn *conn, const DtGlobalObjectDesignator &glId=DtVrfObjectIdGenerator::nullId(), const DtEntityIdentifier &entId=DtEntityIdentifier::nullId(), const DtRwProperties &stateProps=DtRwProperties::emptyProperties(), const DtRwProperties ¶mProps=DtRwProperties::emptyProperties()) | |
| Create a new instance of the VRF Control Object Publisher which will, in turn, create the DtControlObjectPublisher, given a object id (DIS) or name (HLA). More... | |
| virtual | ~DtVrfControlObjectPublisher () |
| Destructor. Also destroys publisher. More... | |
| virtual void | tick () |
| Class method taken from publisher class for control objects at VR-Link level. More... | |
| virtual DtCtrlPublisherDecoder * | decoder () |
| Returns a pointer to the Decoder being used to decode PDUs/updates that we send back into the asSeenByRemote state rep. More... | |
| virtual DtCtrlPublisherEncoder * | encoder () |
| Returns a pointer to the Encoder being used to encode current state into a PDU/update. More... | |
| DtStateRepository * | sr () |
| Returns the state repository. More... | |
| const DtString & | name () const |
| Returns the name of the object. More... | |
| virtual const DtObjectId & | id () const |
| Get the control object's identifier. More... | |
| virtual const DtObjectId & | localId () const |
| Get the control object's localId - same as id for DIS. More... | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the global object designator - same as id for DIS. More... | |
| virtual void | forceUpdate () |
| Force a state update to be sent during the next call to tick, even if nothing would normally cause a send. More... | |
| virtual DtControlObjectPublisher * | controlObjectPublisher () |
| Returns a pointer to myPublisher (the DtControlObjectPublisher) More... | |
| virtual void | setSendVrfObjectDataRecord (bool shouldSend) |
| Sets whether a separate VrfObjectData record should be sent to convey additional VRF object information. More... | |
| virtual void | setExtendedData (const DtString &key, const DtString &value) |
| virtual void | clearExtendedData () |
| virtual void | removeExtendedData (const DtString &key) |
| virtual DtString | extendedData (const DtString &key) const |
| virtual DtControlObjectRepository * | controlObjectProcessStateRep () |
| virtual DtControlObjectRepository * | controlObjectStateRep () |
| virtual DtControlObjectRepository * | cosr () |
Static Public Member Functions | |
| static void | setInitializer (DtExtendedAttributesInitializerPtr init) |
| Sets the extended attributes initializer used by all publishers of this type. More... | |
| static DtExtendedAttributesInitializerPtr | initializer () |
| Returns the extended attributes initializer used by all publishers of this type. More... | |
| static void | setObjectClassChooser (DtObjectClassChooserPtr chooser) |
| Sets the object class chooser used by all publishers of this type. More... | |
| static DtObjectClassChooserPtr | objectClassChooser () |
| Returns the object class chooser used by all publishers of this type. More... | |
Protected Member Functions | |
| DtVrfControlObjectPublisher () | |
| Alternate constructor that performs no initialization. More... | |
| void | initialize (const DtEntityType &type, DtExerciseConn *conn, const DtGlobalObjectDesignator &glId, const DtEntityIdentifier &entId) |
| Called by the constructor to initialize the publisher. More... | |
Protected Attributes | |
| DtControlObjectPublisher * | myPublisher |
| makVrfVrlinkExtToolkit::DtExtendedAttributesObjectPublisher * | myExtAttrPublisher |
Static Protected Attributes | |
| static DtObjectClassChooserPtr | theObjectClassChooser |
| static DtExtendedAttributesInitializerPtr | theInitializer |
Private Member Functions | |
| DtVrfControlObjectPublisher (const DtVrfControlObjectPublisher &) | |
| Unimplemented. More... | |
| DtVrfControlObjectPublisher & | operator= (const DtVrfControlObjectPublisher &) |
| Unimplemented. More... | |
This class will wrap a DtControlObjectPublisher to allow for easier creation of a publisher that is compatible with VR-Forces.
If you want to create and publish control objects that can be used by VR-Forces, you can use a publisher of this class to facilitate in that creation
| typedef DtControlObjectRepository*(* DtVrfControlObjectPublisher::MyStateRepCreator)() |
| DtVrfControlObjectPublisher::DtVrfControlObjectPublisher | ( | const DtEntityType & | type, |
| DtExerciseConn * | conn, | ||
| const DtGlobalObjectDesignator & | glId = DtVrfObjectIdGenerator::nullId(), |
||
| const DtEntityIdentifier & | entId = DtEntityIdentifier::nullId(), |
||
| DtRwProperties * | stateProps = 0, |
||
| DtRwProperties * | paramProps = 0 |
||
| ) |
Create a new instance of the VRF Control Object Publisher which will, in turn, create the DtControlObjectPublisher, given a object id (DIS) or name (HLA).
This class will use the default factory as supplied in the DtVrfObjectIdGenerator class.
The state repository will initially be set to the DtContrObjectStateRepository class. You can change it in the global DtVrfControlObjectPublisher class before calling this creator.
If supplied, initializes the state repository to publish extended attributes from the supplied state properties.
| DtVrfControlObjectPublisher::DtVrfControlObjectPublisher | ( | const DtEntityType & | type, |
| DtExerciseConn * | conn, | ||
| const DtGlobalObjectDesignator & | glId = DtVrfObjectIdGenerator::nullId(), |
||
| const DtEntityIdentifier & | entId = DtEntityIdentifier::nullId(), |
||
| const DtRwProperties & | stateProps = DtRwProperties::emptyProperties(), |
||
| const DtRwProperties & | paramProps = DtRwProperties::emptyProperties() |
||
| ) |
Create a new instance of the VRF Control Object Publisher which will, in turn, create the DtControlObjectPublisher, given a object id (DIS) or name (HLA).
This class will use the default factory as supplied in the DtVrfObjectIdGenerator class.
The state repository will initially be set to the DtContrObjectStateRepository class. You can change it in the global DtVrfControlObjectPublisher class before calling this creator.
If supplied, initializes the state repository with the provided state properties.
|
virtual |
Destructor. Also destroys publisher.
|
protected |
Alternate constructor that performs no initialization.
Can be used in subclasses to override how initialization is performed. If this constructor is used, the initialize function (or a equivalent replacement) must be called before this class will publish anything.
|
private |
Unimplemented.
|
virtual |
Extended record data is a key/value pair. The value and key is always a string representation and is up to the developer to determine the format of the value. The values are set through the publisher.
|
virtual |
|
virtual |
|
virtual |
Class method taken from publisher class for control objects at VR-Link level.
This will simply call down to the publisher's tick method. This function should be called once per frame for each control object object. It determines if any data needs to be sent to the other exercise participants, and sends that data.
|
virtual |
Returns a pointer to the DtControlObjectRepository - through which you can set or inspect current state information.
|
virtual |
|
virtual |
|
virtual |
Returns a pointer to the Decoder being used to decode PDUs/updates that we send back into the asSeenByRemote state rep.
|
virtual |
Returns a pointer to the Encoder being used to encode current state into a PDU/update.
|
inline |
Returns the state repository.
|
inline |
Returns the name of the object.
|
virtual |
Get the control object's identifier.
|
virtual |
Get the control object's localId - same as id for DIS.
|
virtual |
Get the global object designator - same as id for DIS.
|
virtual |
Force a state update to be sent during the next call to tick, even if nothing would normally cause a send.
|
virtual |
Returns a pointer to myPublisher (the DtControlObjectPublisher)
|
virtual |
Sets whether a separate VrfObjectData record should be sent to convey additional VRF object information.
|
static |
Sets the extended attributes initializer used by all publishers of this type.
|
static |
Returns the extended attributes initializer used by all publishers of this type.
|
static |
Sets the object class chooser used by all publishers of this type.
|
static |
Returns the object class chooser used by all publishers of this type.
|
protected |
Called by the constructor to initialize the publisher.
|
private |
Unimplemented.
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |