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 | Public Attributes
makVrf::DtVrfGeometryStateComponent Class Reference

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)

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

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
 

Constructor & Destructor Documentation

makVrf::DtVrfGeometryStateComponent::DtVrfGeometryStateComponent ( DtStateData *  storage)
inline

Constructs the geometry state component interface bound to the given state data.

Parameters
storageThe state data storage associated with this component.

Member Function Documentation

virtual const DtSimBoundingGeometry& makVrf::DtVrfGeometryStateComponent::localBoundingGeometry ( ) const
inlinevirtual

Returns the bounding geometry of this object in local coordinates.

Returns
Read-only reference to the local bounding geometry.
virtual const DtSimBoundingGeometry& makVrf::DtVrfGeometryStateComponent::worldBoundingGeometry ( ) const
inlinevirtual

Returns the bounding geometry of this object in world coordinates.

Returns
Read-only reference to the world bounding geometry.
virtual void makVrf::DtVrfGeometryStateComponent::setToObjectGeometry ( DtVrfObjectGeometry &  ) const
inlinevirtual

Copies this component's object geometry into the provided geometry object.

Parameters
oObject geometry structure to populate.

Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.

virtual double makVrf::DtVrfGeometryStateComponent::distSquaredTo ( const DtVector &  testPoint) const
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.

virtual bool makVrf::DtVrfGeometryStateComponent::localGetClosestVertex ( const DtVector &  point,
DtVector &  vertex 
) const
inlinevirtual

Determines the closest vertex in the object's geometry to a given point, in local coordinates.

Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.

virtual bool makVrf::DtVrfGeometryStateComponent::localGetClosestLine ( const DtVector &  point,
DtVector &  linePt1,
DtVector &  linePt2 
) const
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.

virtual double makVrf::DtVrfGeometryStateComponent::worldDistSquaredTo ( const DtVector &  testPoint) const
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.

virtual bool makVrf::DtVrfGeometryStateComponent::worldGetClosestVertex ( const DtVector &  point,
DtVector &  vertex 
) const
inlinevirtual

Determines the closest vertex in the object's geometry to a given point, in world coordinates.

Reimplemented in makVrf::DtVrfGeometryStateComponentCurrentFrame, and makVrf::DtVrfGeometryStateComponentNextFrame.

virtual bool makVrf::DtVrfGeometryStateComponent::worldGetClosestLine ( const DtVector &  point,
DtVector &  linePt1,
DtVector &  linePt2 
) const
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.

virtual void makVrf::DtVrfGeometryStateComponent::setLocalVertices ( const DtList &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual

Sets the local-coordinate vertices from a DtList and returns the updated geometric center.

Parameters
verticesList of vertex positions in local coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setLocalVertices ( const std::vector< DtVector > &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual

Sets the local-coordinate vertices from a vector and returns the updated geometric center.

Parameters
verticesVector of vertex positions in local coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setLocalVertices ( const DtLocalVertexList &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual

Sets the local-coordinate vertices from a DtLocalVertexList and returns the updated geometric center.

Parameters
verticesLocal vertex list to assign.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setWorldVertices ( const std::vector< DtVector > &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual

Sets the world-coordinate vertices from a vector and returns the updated geometric center.

Parameters
verticesVector of vertex positions in world coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setWorldVertices ( const DtVertexList &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual

Sets the world-coordinate vertices from a DtVertexList and returns the updated geometric center.

Parameters
verticesVertex list in world coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setWorldVertices ( const DtList &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual

Sets the world-coordinate vertices from a DtList and returns the updated geometric center.

Parameters
verticesList of vertex positions in world coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setObjectVertices ( const std::vector< DtVector > &  vertices)
inlinevirtual

Sets the object-relative reference vertices from a vector.

Parameters
verticesVector of vertex positions in object space.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::setObjectVertices ( const DtList &  vertices)
inlinevirtual

Sets the object-relative reference vertices from a DtList.

Parameters
verticesList of vertex positions in object space.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::addLocalVertex ( const DtVector &  vertex)
inlinevirtual

Appends a vertex in local coordinates without updating the geometric center.

Parameters
vertexVertex position in local coordinates.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::addLocalVertex ( const DtVector &  vertex,
DtVector &  newGeometricCenter 
)
inlinevirtual

Appends a vertex in local coordinates and updates the geometric center.

Parameters
vertexVertex position in local coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual void makVrf::DtVrfGeometryStateComponent::addWorldVertex ( const DtVector &  vertex,
DtVector &  newGeometricCenter 
)
inlinevirtual

Appends a vertex in world coordinates and updates the geometric center.

Parameters
vertexVertex position in world coordinates.
newGeometricCenterReceives the updated geometric center position.

Reimplemented in makVrf::DtVrfGeometryStateComponentNextFrame.

virtual const DtString& makVrf::DtVrfGeometryStateComponent::markingText ( ) const
virtual

Returns the marking text of the owning state data entity.

Returns
Read-only reference to the entity's marking text string.
virtual void makVrf::DtVrfGeometryStateComponent::setMaximumVertices ( unsigned  maxVertices)
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.

Member Data Documentation

boost::signals2::signal<void (const DtFrameStateInterface*)> makVrf::DtVrfGeometryStateComponent::signal_objectVerticesChanged {}
mutable

Signal sent when object vertices have changed for this 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)