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 curent 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)
 
- 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 charstringType () 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
 
DtStateDatamyStateData
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual const DtSimBoundingGeometry& makVrf::DtVrfGeometryStateComponent::localBoundingGeometry ( ) const
inlinevirtual
virtual const DtSimBoundingGeometry& makVrf::DtVrfGeometryStateComponent::worldBoundingGeometry ( ) const
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setToObjectGeometry ( DtVrfObjectGeometry ) const
inlinevirtual
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
virtual void makVrf::DtVrfGeometryStateComponent::setLocalVertices ( const std::vector< DtVector > &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setLocalVertices ( const DtLocalVertexList vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setWorldVertices ( const std::vector< DtVector > &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setWorldVertices ( const DtVertexList vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setWorldVertices ( const DtList &  vertices,
DtVector &  newGeometricCenter 
)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setObjectVertices ( const std::vector< DtVector > &  vertices)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::setObjectVertices ( const DtList &  vertices)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::addLocalVertex ( const DtVector &  vertex)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::addLocalVertex ( const DtVector &  vertex,
DtVector &  newGeometricCenter 
)
inlinevirtual
virtual void makVrf::DtVrfGeometryStateComponent::addWorldVertex ( const DtVector &  vertex,
DtVector &  newGeometricCenter 
)
inlinevirtual

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 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)