16 #ifndef SURGSIM_BLOCKS_COMPOUNDSHAPETOGRAPHICS_H 17 #define SURGSIM_BLOCKS_COMPOUNDSHAPETOGRAPHICS_H 23 #include "SurgSim/Framework/Behavior.h" 48 SURGSIM_STATIC_REGISTRATION(CompoundShapeToGraphics);
64 void update(
double dt)
override;
66 int getTargetManagerType()
const override;
68 bool doInitialize()
override;
70 bool doWakeUp()
override;
74 void setShape(
const std::shared_ptr<Math::Shape>& shape);
79 void setSource(
const std::shared_ptr<Framework::Component>& component);
85 void setTargets(
const std::vector<std::shared_ptr<Framework::Component>> components);
91 void addTarget(
const std::shared_ptr<Framework::Component>& component);
94 std::vector<std::shared_ptr<Framework::Component>> getTargets()
const;
97 std::shared_ptr<Math::CompoundShape> getShape()
const;
100 std::shared_ptr<Framework::Component> getSource()
const;
105 std::shared_ptr<Math::CompoundShape> m_shape;
108 std::shared_ptr<Framework::Component> m_source;
111 std::vector<std::pair<std::shared_ptr<Graphics::Representation>,
Math::RigidTransform3d>> m_representations;
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Keep a set of Graphics representations in sync with a CompoundShape, the shape can either be set dire...
Definition: CompoundShapeToGraphics.h:53
Behaviors perform actions.
Definition: Behavior.h:40