9 #include "imstkCollidingObject.h" 15 class AbstractDynamicalModel;
31 virtual void setPhysicsGeometry(std::shared_ptr<Geometry> geometry) {
m_physicsGeometry = geometry; }
52 virtual void setDynamicalModel(std::shared_ptr<AbstractDynamicalModel> dynaModel) {
m_dynamicalModel = dynaModel; }
78 void reset()
override;
84 void initGraphEdges(std::shared_ptr<TaskNode> source, std::shared_ptr<TaskNode> sink)
override;
void reset() override
Reset the dynamic object by reseting the respective DynamicalModel and Geometry.
void postModifiedAll() override
Posts modified for all geometries.
std::shared_ptr< GeometryMap > getPhysicsToCollidingMap() const
Set/Get the Physics-to-Collision map.
Base class for scene objects that move and/or deform.
size_t getNumOfDOF() const
Returns the number of degree of freedom.
virtual std::shared_ptr< AbstractDynamicalModel > getDynamicalModel() const
Set/Get dynamical model.
virtual void updatePhysicsGeometry()
Update only the physics geometry and apply collision map.
bool initialize() override
Initialize the scene object.
std::shared_ptr< AbstractDynamicalModel > m_dynamicalModel
Dynamical model.
std::shared_ptr< GeometryMap > getPhysicsToVisualMap() const
Set/Get the Physics-to-Visual map.
std::shared_ptr< GeometryMap > m_physicsToVisualGeomMap
Maps from Physics to visual geometry.
void updateGeometries() final
Update the physics geometry and the apply the maps (if defined)
std::shared_ptr< Geometry > getPhysicsGeometry() const
Set/Get the geometry used for Physics computations.
std::shared_ptr< GeometryMap > m_physicsToCollidingGeomMap
Maps from Physics to collision geometry.
A SceneObject with a geometry for collision.
std::shared_ptr< Geometry > m_physicsGeometry
Geometry used for Physics.
void initGraphEdges()
Initializes the edges of the SceneObject's computational graph.