16 #ifndef SURGSIM_BLOCKS_VISUALIZECONSTRAINTS_H 17 #define SURGSIM_BLOCKS_VISUALIZECONSTRAINTS_H 38 class VectorFieldRepresentation;
43 SURGSIM_STATIC_REGISTRATION(VisualizeConstraintsBehavior);
59 const std::shared_ptr<Framework::Component>& vectorField);
61 typedef std::vector<std::pair<int, std::shared_ptr<Framework::Component>>>
FieldsType;
65 void setVectorFields(
const FieldsType& fields);
68 FieldsType getVectorFields()
const;
70 void update(
double dt)
override;
72 int getTargetManagerType()
const override;
77 bool doInitialize()
override;
79 bool doWakeUp()
override;
82 std::weak_ptr<SurgSim::Physics::PhysicsManager>
m_manager;
84 std::map<SurgSim::Physics::ConstraintGroupType, std::shared_ptr<SurgSim::Graphics::VectorFieldRepresentation>>
89 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
103 #endif // SURGSIM_BLOCKS_VISUALIZECONSTRAINTS_H Definition: CompoundShapeToGraphics.cpp:29
std::map< SurgSim::Physics::ConstraintGroupType, std::shared_ptr< SurgSim::Graphics::VectorFieldRepresentation > > m_graphics
Definition: VisualizeConstraints.h:85
SceneElement that generates the VisualizeConstraintBehavior and the appropriate graphics Vectorfield...
Definition: VisualizeConstraints.h:93
ConstraintGroupType
Definition: PhysicsManagerState.h:41
Behavior to visualize information about the constraints as they are in the physics manager this will ...
Definition: VisualizeConstraints.h:48
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Definition: VisualizeConstraints.h:89
Simple concrete implementation of a scene element that does not have any higher logic.
Definition: BasicSceneElement.h:29
boost::mutex m_graphicsMutex
Definition: VisualizeConstraints.h:87
std::weak_ptr< SurgSim::Physics::PhysicsManager > m_manager
Need reference to physics manager for introspection into the state.
Definition: VisualizeConstraints.h:82
std::vector< std::pair< int, std::shared_ptr< Framework::Component > > > FieldsType
Definition: VisualizeConstraints.h:61
#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