16 #ifndef SURGSIM_PHYSICS_RIGIDCOLLISIONREPRESENTATION_H 17 #define SURGSIM_PHYSICS_RIGIDCOLLISIONREPRESENTATION_H 21 #include "SurgSim/Collision/Representation.h" 22 #include "SurgSim/Framework/ObjectFactory.h" 28 class RigidRepresentationBase;
30 SURGSIM_STATIC_REGISTRATION(RigidCollisionRepresentation);
58 std::shared_ptr<Math::Shape>
getShape()
const override;
65 void setShape(std::shared_ptr<SurgSim::Math::Shape> shape);
81 std::weak_ptr<SurgSim::Physics::RigidRepresentationBase> m_physicsRepresentation;
82 std::shared_ptr<SurgSim::Math::Shape> m_shape;
90 #endif // SURGSIM_PHYSICS_RIGIDCOLLISIONREPRESENTATION_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
std::shared_ptr< Math::Shape > getShape() const override
Get the shape.
Definition: RigidCollisionRepresentation.cpp:97
void setRigidRepresentation(std::shared_ptr< SurgSim::Physics::RigidRepresentationBase > representation)
Set rigid representation.
Definition: RigidCollisionRepresentation.cpp:81
void setShape(std::shared_ptr< SurgSim::Math::Shape > shape)
Set the shape The default is to use the shape of the Rigid Representation, this will override that sh...
Definition: RigidCollisionRepresentation.cpp:103
SurgSim::Math::RigidTransform3d getPose() const override
Get the pose of the representation in world coordinates.
Definition: RigidCollisionRepresentation.cpp:119
void updateCcdData(double timeOfImpact) override
Update the data (the motionShape) in preparation for a CCD contact calcul ation.
Definition: RigidCollisionRepresentation.cpp:169
bool doInitialize() override
Interface to be implemented by derived classes.
Definition: RigidCollisionRepresentation.cpp:44
std::shared_ptr< SurgSim::Physics::RigidRepresentationBase > getRigidRepresentation()
Gets physics representation.
Definition: RigidCollisionRepresentation.cpp:87
Collision Representation class that wraps a RigidRepresentation, this can be used to strictly tie the...
Definition: RigidCollisionRepresentation.h:35
Math::Aabbd getBoundingBox() const override
Definition: RigidCollisionRepresentation.cpp:235
int getShapeType() const override
Get the shape type id.
Definition: RigidCollisionRepresentation.cpp:92
The type of collision detection.
Definition: Representation.h:60
RigidCollisionRepresentation(const std::string &name)
Constructor.
Definition: RigidCollisionRepresentation.cpp:32
void updateShapeData() override
Update the basic Shape's state from the physics state, so that the bounding box can correctly be dete...
Definition: RigidCollisionRepresentation.cpp:128
bool doWakeUp() override
Interface to be implemented by derived classes.
Definition: RigidCollisionRepresentation.cpp:57
virtual ~RigidCollisionRepresentation()
Destructor.
Definition: RigidCollisionRepresentation.cpp:40