16 #ifndef SURGSIM_BLOCKS_DEBUGDUMPBEHAVIOR_H 17 #define SURGSIM_BLOCKS_DEBUGDUMPBEHAVIOR_H 37 SURGSIM_STATIC_REGISTRATION(DebugDumpBehavior)
51 explicit DebugDumpBehavior(
const std::string& name);
53 virtual ~DebugDumpBehavior();
59 void setInputComponent(std::shared_ptr<SurgSim::Framework::Component> inputComponent);
62 std::shared_ptr<SurgSim::Input::InputComponent> getInputComponent()
const;
66 void update(
double dt)
override;
68 bool doInitialize()
override;
70 bool doWakeUp()
override;
72 std::weak_ptr<SurgSim::Graphics::OsgManager>
m_manager;
Definition: CompoundShapeToGraphics.cpp:29
bool m_keyPressedLastUpdate
prevent a repeated keystroke
Definition: DebugDumpBehavior.h:74
Provides keyboard access to debugging functionality F1 - call the graphics manager dumpDebugInfo...
Definition: DebugDumpBehavior.h:44
#define SURGSIM_CLASSNAME(ClassName)
Declare the class name of a class with the appropriate function header, do not use quotes...
Definition: Macros.h:21
std::shared_ptr< SurgSim::Input::InputComponent > m_inputComponent
The input component for reading.
Definition: DebugDumpBehavior.h:73
std::weak_ptr< SurgSim::Graphics::OsgManager > m_manager
Reference to the graphics manager.
Definition: DebugDumpBehavior.h:72
Behaviors perform actions.
Definition: Behavior.h:40