std::shared_ptr< SurgSim::Framework::Component > getTarget()
Get the target removing particles from.
Definition: Sink.cpp:51
int getTargetManagerType() const override
Specifies which manger will handle this behavior.
Definition: Sink.cpp:100
void update(double dt) override
Update the behavior.
Definition: Sink.cpp:87
Sink(const std::string &name)
Constructor.
Definition: Sink.cpp:35
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Definition: Sink.h:87
std::shared_ptr< SurgSim::Particles::Representation > m_target
Definition: Sink.h:85
std::shared_ptr< SurgSim::Collision::Representation > m_collisionRepresentation
Definition: Sink.h:83
std::shared_ptr< SurgSim::Framework::Component > getCollisionRepresentation()
Get the collision representation for this Sink Particles that collide with this collision representat...
Definition: Sink.cpp:62
SURGSIM_CLASSNAME(SurgSim::Particles::Sink)
bool doInitialize() override
Interface to be implemented by derived classes.
Definition: Sink.cpp:67
bool doWakeUp() override
Interface to be implemented by derived classes.
Definition: Sink.cpp:72
Sink removes particles from a ParticleSystem.
Definition: Sink.h:48
void setTarget(const std::shared_ptr< SurgSim::Framework::Component > &target)
Set the target to remove particles from.
Definition: Sink.cpp:45
DataStructures::Vertices< ParticleData > Particles
Definition: Particles.h:53
void setCollisionRepresentation(const std::shared_ptr< SurgSim::Framework::Component > &representation)
Set the collision representation for this Sink Particles that collide with this collision representat...
Definition: Sink.cpp:56