![]() |
VR-Forces Developer's Guide
|
1) Define the interface class that will be used to represent the next and current frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)

Public Member Functions | |
| DtVrfGeometryStateComponent (DtStateData *storage) | |
| virtual const DtSimBoundingGeometry & | localBoundingGeometry () const |
| virtual const DtSimBoundingGeometry & | worldBoundingGeometry () const |
| virtual void | setToObjectGeometry (DtVrfObjectGeometry &) const |
| virtual double | distSquaredTo (const DtVector &testPoint) const |
| virtual bool | localGetClosestVertex (const DtVector &point, DtVector &vertex) const |
| virtual bool | localGetClosestLine (const DtVector &point, DtVector &linePt1, DtVector &linePt2) const |
| virtual double | worldDistSquaredTo (const DtVector &testPoint) const |
| virtual bool | worldGetClosestVertex (const DtVector &point, DtVector &vertex) const |
| virtual bool | worldGetClosestLine (const DtVector &point, DtVector &linePt1, DtVector &linePt2) const |
| virtual void | setLocalVertices (const DtList &vertices, DtVector &newGeometricCenter) |
| virtual void | setLocalVertices (const std::vector< DtVector > &vertices, DtVector &newGeometricCenter) |
| virtual void | setLocalVertices (const DtLocalVertexList &vertices, DtVector &newGeometricCenter) |
| virtual void | setWorldVertices (const std::vector< DtVector > &vertices, DtVector &newGeometricCenter) |
| virtual void | setWorldVertices (const DtVertexList &vertices, DtVector &newGeometricCenter) |
| virtual void | setWorldVertices (const DtList &vertices, DtVector &newGeometricCenter) |
| virtual void | setObjectVertices (const std::vector< DtVector > &vertices) |
| virtual void | setObjectVertices (const DtList &vertices) |
| virtual void | addLocalVertex (const DtVector &vertex) |
| virtual void | addLocalVertex (const DtVector &vertex, DtVector &newGeometricCenter) |
| virtual void | addWorldVertex (const DtVector &vertex, DtVector &newGeometricCenter) |
| virtual const DtString & | markingText () const |
| virtual void | setMaximumVertices (unsigned maxVertices) |
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 () |
Public Attributes | |
| boost::signals2::signal< void(const DtFrameStateInterface *)> | signal_objectVerticesChanged {} |
Public Attributes inherited from makVrf::DtFrameStateInterface | |
| boost::signals2::signal< void(DtFrameStateInterface *)> | signal_stateComponentAboutToBeDeleted |
| boost::signals2::signal< void(const DtFrameStateInterface *)> | signal_componentModified |
Additional Inherited Members | |
Protected Member Functions inherited from makVrf::DtFrameStateInterface | |
| virtual void | makeWritable () |
| virtual void | makeReadOnly () |
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 |
|
inline |
Constructs the geometry state component interface bound to the given state data.
| storage | The state data storage associated with this component. |
|
inlinevirtual |
Returns the bounding geometry of this object in local coordinates.
|
inlinevirtual |
Returns the bounding geometry of this object in world coordinates.
|
inlinevirtual |
Copies this component's object geometry into the provided geometry object.
| o | Object geometry structure to populate. |
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Returns the squared distance from a given point in local coordinates, to the object. If the object has more than two vertices (that is, more than one line segment), it acts on the closest line segment.
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Determines the closest vertex in the object's geometry to a given point, in local coordinates.
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Determines the closest line segment in the object's geometry to a given
point, in local coordinates. Sets linePt1 and linePt2 to be the vertices of the line closest to the point in this object's geometry.
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Returns the squared distance from a given point in world coordinates, to the object. If the object has more than two vertices (that is, more than one line segment), it acts on the closest line segment.
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Determines the closest vertex in the object's geometry to a given point, in world coordinates.
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Determines the closest line segment in the object's geometry to a given
point, in world coordinates. Sets linePt1 and linePt2 to be the vertices of the line closest to the point in this object's geometry.
Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the local-coordinate vertices from a DtList and returns the updated geometric center.
| vertices | List of vertex positions in local coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the local-coordinate vertices from a vector and returns the updated geometric center.
| vertices | Vector of vertex positions in local coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the local-coordinate vertices from a DtLocalVertexList and returns the updated geometric center.
| vertices | Local vertex list to assign. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the world-coordinate vertices from a vector and returns the updated geometric center.
| vertices | Vector of vertex positions in world coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the world-coordinate vertices from a DtVertexList and returns the updated geometric center.
| vertices | Vertex list in world coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the world-coordinate vertices from a DtList and returns the updated geometric center.
| vertices | List of vertex positions in world coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the object-relative reference vertices from a vector.
| vertices | Vector of vertex positions in object space. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Sets the object-relative reference vertices from a DtList.
| vertices | List of vertex positions in object space. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Appends a vertex in local coordinates without updating the geometric center.
| vertex | Vertex position in local coordinates. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Appends a vertex in local coordinates and updates the geometric center.
| vertex | Vertex position in local coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Appends a vertex in world coordinates and updates the geometric center.
| vertex | Vertex position in world coordinates. |
| newGeometricCenter | Receives the updated geometric center position. |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
virtual |
Returns the marking text of the owning state data entity.
|
inlinevirtual |
Sets the maximum number of vertices allowed for this geometry component. If an attempt is made to set vertices beyond this maximum, the extra vertices will be ignored and a warning will be logged.
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
mutable |
Signal sent when object vertices have changed for this component.