16 #ifndef SURGSIM_BLOCKS_TRANSFERPHYSICSTOPOINTCLOUDBEHAVIOR_H 17 #define SURGSIM_BLOCKS_TRANSFERPHYSICSTOPOINTCLOUDBEHAVIOR_H 19 #include "SurgSim/Framework/Behavior.h" 20 #include "SurgSim/Framework/Macros.h" 32 class PointCloudRepresentation;
37 class DeformableRepresentation;
42 SURGSIM_STATIC_REGISTRATION(TransferPhysicsToPointCloudBehavior);
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::Physics::DeformableRepresentation> 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::Physics::DeformableRepresentation> m_source;
80 std::shared_ptr<SurgSim::Graphics::PointCloudRepresentation> m_target;
86 #endif // SURGSIM_BLOCKS_TRANSFERPHYSICSTOPOINTCLOUDBEHAVIOR_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Behavior to copy positions of a PhysicsRepresentation to a PointCloud.
Definition: TransferPhysicsToPointCloudBehavior.h:45
Behaviors perform actions.
Definition: Behavior.h:40