![]() |
VR-Forces 4.1.1 Class Documentation
|

Public Types | |
| enum | DtVcObjectAttachment { DtVcObjectNoAttach = 0, DtVcObjectNoAttachNoAttach = 1, DtVcObjectAttachedToEntity = 2, DtVcObjectAttachedToObject = 3, DtVcObjectAttachedToEntityNoAttach = 4, DtVcObjectAttachedToObjectNoAttach = 5, DtVcObjectAttachedToNoAttachEntity = 6, DtVcObjectAttachedToNoAttachObject = 7, DtVcObjectAttachedToEntityObject = 8, DtVcObjectAttachedToObjectEntity = 9, DtVcObjectAttachedToEntityEntity = 10, DtVcObjectAttachedToObjectObject = 11 } |
| enum | DtVcDrawingStyle { DtVcStyleNoFlashing = 0x00, DtVcStyleFlashing = 0x04, DtVcDrawingStyleEntry = 0x04 } |
Public Member Functions | |
| virtual const DtVcObjectAttachment | attachmentType () const |
| objects can be attach to 1 (text, sphere, cube, triangle, attribute group) or | |
| virtual void | attachTo (const DtNetInt8 pos[2]) |
| 2D placement of single position objects; uses a screen coordinate system of | |
| virtual void | attachTo (const DtNetInt8 pos1[2], const DtNetInt8 pos2[2]) |
| 2D placement of lines | |
| virtual void | attachTo (const DtVector &pos) |
| 3D placement of single position objects | |
| virtual void | attachTo (const DtNetU32 id) |
| virtual void | attachTo (const DtGlobalObjectDesignator &id) |
| virtual void | attachTo (const DtNetU32 id1, const DtNetU32 id2) |
| 3D placement of two position objects | |
| virtual void | attachTo (const DtGlobalObjectDesignator &id1, const DtGlobalObjectDesignator &id2) |
| virtual void | attachTo (const DtVector &pos1, const DtVector &pos2) |
| virtual void | attachTo (const DtGlobalObjectDesignator &id1, const DtNetU32 id2) |
| virtual void | attachTo (const DtNetU32 id1, const DtGlobalObjectDesignator &id2) |
| virtual void | attachTo (const DtGlobalObjectDesignator &id, const DtVector &pos) |
| virtual void | attachTo (const DtVector &pos, const DtGlobalObjectDesignator &id) |
| virtual void | attachTo (const DtNetU32 id, const DtVector &pos) |
| virtual void | attachTo (const DtVector &pos, const DtNetU32 id) |
| virtual void | setRelativeLocation (DtNetU8 percentage, int index=0) |
| relative location along the parent object if there is not parent object or the parent object is puntual this value is discarded The value is a percentage (0 - 100) messure from start point to end point Because a line or cylinder has two attachments, each of which could be another line or cylinder, the interface needs to support 2 relative locations. | |
| virtual const DtNetU8 | relativeLocation (int index=0) const |
| virtual void | setOffset (const DtVector &offsetVector) |
| offset from final position. | |
| virtual DtVector | offset () const |
| virtual const DtGlobalObjectDesignator | attachEntityId (int index) const |
| virtual const DtNetU32 | attachObjectId (int index) const |
| virtual DtVector | position (int index) const |
| virtual void | setColor (DtNetU8 color[4]) |
| virtual const DtNetU8 * | color () const |
| virtual void | setFlashing (bool onOff) |
| virtual const bool | flashing () const |
| virtual void | setFromString (const char *) |
| virtual const char * | string () const |
| virtual void | printData () const |
Public Member Functions inherited from DtStealthDrawControlPdu | |
| virtual const DtNetU32 | objectId () const |
| virtual void | setObjectId (DtNetU32 lid) |
| virtual void | setType (DtNetU32 type) |
| virtual DtNetU32 | type () const |
| virtual DtU32 | paramVersion () const |
Public Member Functions inherited from DtStealthControlPdu | |
| const DtGlobalObjectDesignator & | viewerId () const |
| const DtGlobalObjectDesignator & | senderId () const |
| DtViewerCommand | viewerCommand () const |
| unsigned long | ignoreFlags () const |
| bool | statusCommand () const |
| void | setViewerId (const DtGlobalObjectDesignator &id) |
| void | setSenderId (const DtGlobalObjectDesignator &id) |
| void | setIgnoreFlags (unsigned long flags) |
| void | setStatusCommand (bool b) |
Static Public Member Functions | |
| static const char * | typeString (DtVcObjectAttachment param) |
Static Public Member Functions inherited from DtStealthDrawControlPdu | |
| static const char * | typeString (int param) |
Static Public Member Functions inherited from DtStealthControlPdu | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static DtPdu * | createFromNet (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static DtU32 | drawControlParamVersion (const DtNetViewControlPdu *vc) |
| static void | addCallback (DtExerciseConn *conn, DtStealthControlInteractionCb cb, void *usr) |
| static void | removeCallback (DtExerciseConn *conn, DtStealthControlInteractionCb cb, void *usr) |
Protected Member Functions | |
| virtual void | setAttachmentType (DtVcObjectAttachment attachmentType) |
Protected Member Functions inherited from DtStealthDrawControlPdu | |
| virtual int | setInternalText (DtString str, size_t structSize) |
| virtual const DtString | internalText (int size, size_t structSize) const |
| virtual void | setParamVersion (DtU32 paramVersion) |
Protected Member Functions inherited from DtStealthControlPdu | |
| bool | isNumber (const char *str) |
| DtPduKind | internalGetPduKind () const |
| void | setViewerCommand (DtViewerCommand com) |
| DtStealthControlPdu () | |
Additional Inherited Members | |
Static Protected Member Functions inherited from DtStealthControlPdu | |
| static DtStealthControlPdu * | createViewControl (DtNetViewControlPdu *vc, DtBufferPtr buffer) |
| static DtStealthControlPdu * | createDrawControl (DtNetViewControlPdu *vc, DtBufferPtr buffer) |
| static DtStealthControlPdu * | createDrawControlV0 (DtNetViewControlPdu *vc, DtBufferPtr buffer) |
| static DtStealthControlPdu * | createDrawControlCurrent (DtNetViewControlPdu *vc, DtBufferPtr buffer) |
Protected Attributes inherited from DtStealthDrawControlPdu | |
| DtString | myTemporalText |
|
virtual |
objects can be attach to 1 (text, sphere, cube, triangle, attribute group) or
|
virtual |
2D placement of single position objects; uses a screen coordinate system of
|
virtual |
2D placement of lines
|
virtual |
3D placement of single position objects
|
virtual |
|
virtual |
|
virtual |
3D placement of two position objects
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
relative location along the parent object if there is not parent object or the parent object is puntual this value is discarded The value is a percentage (0 - 100) messure from start point to end point Because a line or cylinder has two attachments, each of which could be another line or cylinder, the interface needs to support 2 relative locations.
Note that Version 0 did NOT. Only one percentage could be specified, and it was used for both attachments when that case arose. The default values are left for backwards compatibility
|
virtual |
|
virtual |
offset from final position.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in DtSdcLinePdu.
|
virtual |
Reimplemented in DtSdcLinePdu.
|
virtual |
|
virtual |
|
virtual |
Reimplemented from DtStealthControlPdu.
Reimplemented in DtSdcAreaPduBase, DtSdcTrianglePduBase, DtSdcTextPduBase, DtSdcPolyObjectPduBase, and DtSdcAttributePduBase.
|
virtual |
Reimplemented from DtStealthControlPdu.
Reimplemented in DtSdcAreaPduBase, DtSdcTrianglePduBase, DtSdcTextPduBase, DtSdcPolyObjectPduBase, and DtSdcAttributePduBase.
|
virtual |
Reimplemented from DtStealthDrawControlPdu.
Reimplemented in DtSdcAreaPduBase, DtSdcTrianglePduBase, DtSdcTextPduBase, DtSdcPolyObjectPduBase, DtSdcLinePdu, and DtSdcAttributePduBase.
|
static |
|
protectedvirtual |