16 #ifndef SURGSIM_PHYSICS_DEFORMABLECOLLISIONREPRESENTATION_H 17 #define SURGSIM_PHYSICS_DEFORMABLECOLLISIONREPRESENTATION_H 22 #include "SurgSim/Collision/Representation.h" 23 #include "SurgSim/Framework/ObjectFactory.h" 35 class DeformableRepresentation;
37 SURGSIM_STATIC_REGISTRATION(DeformableCollisionRepresentation);
58 void setShape(std::shared_ptr<SurgSim::Math::Shape> shape);
60 std::shared_ptr<Math::Shape> getShape()
const override;
64 void setDeformableRepresentation(std::shared_ptr<SurgSim::Physics::DeformableRepresentation> representation);
67 const std::shared_ptr<SurgSim::Physics::DeformableRepresentation> getDeformableRepresentation()
const;
69 void setCollisionDetectionType(Collision::CollisionDetectionType type)
override;
71 void setSelfCollisionDetectionType(Collision::CollisionDetectionType type)
override;
73 int getShapeType()
const override;
75 void updateDcdData()
override;
77 void updateCcdData(
double interval)
override;
79 void updateShapeData()
override;
81 Math::Aabbd getBoundingBox()
const override;
84 bool doInitialize()
override;
85 bool doWakeUp()
override;
88 std::shared_ptr<SurgSim::Math::Shape> m_shape, m_previousShape;
95 std::weak_ptr<SurgSim::Physics::DeformableRepresentation> m_deformable;
98 double m_previousOldVolume;
99 double m_aabbThreshold;
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
The type of collision detection.
Definition: Representation.h:60