16 #ifndef SURGSIM_BLOCKS_TRANSFERPARTICLESTOPOINTCLOUDBEHAVIOR_H 17 #define SURGSIM_BLOCKS_TRANSFERPARTICLESTOPOINTCLOUDBEHAVIOR_H 32 class PointCloudRepresentation;
42 SURGSIM_STATIC_REGISTRATION(TransferParticlesToPointCloudBehavior);
56 void setSource(
const std::shared_ptr<SurgSim::Framework::Component>& source);
60 void setTarget(
const std::shared_ptr<SurgSim::Framework::Component>& target);
64 std::shared_ptr<SurgSim::Particles::Representation> getSource()
const;
68 std::shared_ptr<SurgSim::Graphics::PointCloudRepresentation> getTarget()
const;
70 void update(
double dt)
override;
73 bool doInitialize()
override;
74 bool doWakeUp()
override;
77 std::shared_ptr<SurgSim::Particles::Representation>
m_source;
80 std::shared_ptr<SurgSim::Graphics::PointCloudRepresentation>
m_target;
86 #endif // SURGSIM_BLOCKS_TRANSFERPARTICLESTOPOINTCLOUDBEHAVIOR_H std::shared_ptr< SurgSim::Graphics::PointCloudRepresentation > m_target
The Graphics PointCloud Representation to which the vertices's positions are set. ...
Definition: TransferParticlesToPointCloudBehavior.h:80
Definition: CompoundShapeToGraphics.cpp:29
Behavior to copy positions of a Particles::Representation to a PointCloud.
Definition: TransferParticlesToPointCloudBehavior.h:45
The Representation class defines the base class for all Particle System.
Definition: Representation.h:40
std::shared_ptr< SurgSim::Particles::Representation > m_source
The Particles::Representation from which the positions come.
Definition: TransferParticlesToPointCloudBehavior.h:77
#define SURGSIM_CLASSNAME(ClassName)
Declare the class name of a class with the appropriate function header, do not use quotes...
Definition: Macros.h:21
Behaviors perform actions.
Definition: Behavior.h:40
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51