Go to the documentation of this file.
16 #ifndef SURGSIM_PARTICLES_PARTICLESCOLLISIONREPRESENTATION_H
17 #define SURGSIM_PARTICLES_PARTICLESCOLLISIONREPRESENTATION_H
40 SURGSIM_STATIC_REGISTRATION(ParticlesCollisionRepresentation);
56 const std::shared_ptr<SurgSim::Math::Shape>
getShape()
const override;
84 std::shared_ptr<SurgSim::Math::ParticlesShape>
m_shape;
93 #endif // SURGSIM_PARTICLES_PARTICLESCOLLISIONREPRESENTATION_H
std::shared_ptr< SurgSim::Math::ParticlesShape > m_shape
Shape used for collision detection.
Definition: ParticlesCollisionRepresentation.h:84
int getShapeType() const override
Get the shape type id.
Definition: ParticlesCollisionRepresentation.cpp:64
void setParticleRepresentation(std::shared_ptr< SurgSim::Particles::Representation > representation)
Sets the particle representation this collision representation is connected.
Definition: ParticlesCollisionRepresentation.cpp:74
ParticlesCollisionRepresentation(const std::string &name)
Constructor.
Definition: ParticlesCollisionRepresentation.cpp:32
void setParticleRadius(double radius)
Set the particles' radius.
Definition: ParticlesCollisionRepresentation.cpp:91
A Collision Representation that can be attached to a Particle Representation.
Definition: ParticlesCollisionRepresentation.h:43
bool doInitialize() override
Interface to be implemented by derived classes.
Definition: ParticlesCollisionRepresentation.cpp:43
const std::shared_ptr< SurgSim::Particles::Representation > getParticleRepresentation() const
Gets the particle representation this collision representation is connected.
Definition: ParticlesCollisionRepresentation.cpp:80
Definition: CompoundShapeToGraphics.cpp:29
double getParticleRadius() const
Get the radius of the particles.
Definition: ParticlesCollisionRepresentation.cpp:96
std::weak_ptr< SurgSim::Particles::Representation > m_particleRepresentation
Reference to the particle representation driving changes to this collision representation.
Definition: ParticlesCollisionRepresentation.h:87
The type of collision detection.
Definition: Representation.h:60
const std::shared_ptr< SurgSim::Math::Shape > getShape() const override
Get the shape.
Definition: ParticlesCollisionRepresentation.cpp:69
void updateShapeData() override
Update the basic Shape's state from the physics state, so that the bounding box can correctly be dete...
Definition: ParticlesCollisionRepresentation.cpp:101
SURGSIM_CLASSNAME(SurgSim::Particles::ParticlesCollisionRepresentation)
bool doWakeUp() override
Interface to be implemented by derived classes.
Definition: ParticlesCollisionRepresentation.cpp:48
DataStructures::Vertices< ParticleData > Particles
Definition: Particles.h:53
virtual ~ParticlesCollisionRepresentation()
Destructor.
Definition: ParticlesCollisionRepresentation.cpp:39