![]() |
VR-Forces 5.0.3 Developer's Guide
|
1) Define the interface class that will be used to represent the next and curent 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 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 | addLocalVertex (const DtVector &vertex) |
| virtual void | addLocalVertex (const DtVector &vertex, DtVector &newGeometricCenter) |
| virtual void | addWorldVertex (const DtVector &vertex, DtVector &newGeometricCenter) |
Public Member Functions inherited from makVrf::DtFrameStateInterface | |
| DtFrameStateInterface (const DtStateData *) | |
| virtual | ~DtFrameStateInterface () |
| void | setIsWritable (bool b) |
| bool | isWritable () const |
| UInt64 | stateId () const |
| UInt64 | legionGlobalId () const |
| void | setLegionGlobalId (UInt64 d) |
| bool | isModified () const |
| void | clearModified () |
| void | markModified () |
| virtual DtStateComponent::StateComponentType | type () const |
| virtual DtStateComponent::StateComponentType | componentType () 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 () |
| 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 |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
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 |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.
|
mutable |
Signal sent when object vertices have changed for this component.