Go to the documentation of this file.
16 #ifndef SURGSIM_BLOCKS_DEBUGDUMPBEHAVIOR_H
17 #define SURGSIM_BLOCKS_DEBUGDUMPBEHAVIOR_H
37 SURGSIM_STATIC_REGISTRATION(DebugDumpBehavior)
39 class DebugDumpBehavior :
public Framework::Behavior
59 void setInputComponent(std::shared_ptr<SurgSim::Framework::Component> inputComponent);
66 void update(
double dt)
override;
72 std::weak_ptr<SurgSim::Graphics::OsgManager>
m_manager;
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
bool doInitialize() override
Interface to be implemented by derived classes.
Definition: DebugDumpBehavior.cpp:136
Provides keyboard access to debugging functionality F1 - call the graphics manager dumpDebugInfo,...
Definition: DebugDumpBehavior.h:44
bool m_keyPressedLastUpdate
prevent a repeated keystroke
Definition: DebugDumpBehavior.h:74
bool doWakeUp() override
Interface to be implemented by derived classes.
Definition: DebugDumpBehavior.cpp:155
Definition: CompoundShapeToGraphics.cpp:29
DebugDumpBehavior(const std::string &name)
Constructor.
Definition: DebugDumpBehavior.cpp:39
SURGSIM_CLASSNAME(SurgSim::Blocks::DebugDumpBehavior)
virtual ~DebugDumpBehavior()
Definition: DebugDumpBehavior.cpp:47
void update(double dt) override
Update the behavior.
Definition: DebugDumpBehavior.cpp:65
std::shared_ptr< SurgSim::Input::InputComponent > getInputComponent() const
Definition: DebugDumpBehavior.cpp:60
void setInputComponent(std::shared_ptr< SurgSim::Framework::Component > inputComponent)
Sets the InputComponent, needs to provide keystrokes.
Definition: DebugDumpBehavior.cpp:52