16 #ifndef SURGSIM_TESTING_VISUALTESTCOMMON_MOVINGSQUAREGLUTWINDOW_H 17 #define SURGSIM_TESTING_VISUALTESTCOMMON_MOVINGSQUAREGLUTWINDOW_H 19 #include <boost/thread.hpp> 74 #endif // SURGSIM_TESTING_VISUALTESTCOMMON_MOVINGSQUAREGLUTWINDOW_H std::shared_ptr< GlutSquare > m_square
Square that is moved with device input.
Definition: MovingSquareGlutWindow.h:63
const std::string m_toolDeviceName
Name of the tool device.
Definition: MovingSquareGlutWindow.h:49
std::shared_ptr< GlutSphere > m_toolSphere
Sphere of the tool.
Definition: MovingSquareGlutWindow.h:60
void updateTool(const SurgSim::DataStructures::DataGroup &inputData)
Updates the tool based on the device input.
Definition: MovingSquareGlutWindow.cpp:74
const std::string m_squareDeviceName
Name of the square device.
Definition: MovingSquareGlutWindow.h:51
void handleInput(const std::string &device, const SurgSim::DataStructures::DataGroup &inputData) override
Notifies the consumer that the application input coming from the device has been updated.
Definition: MovingSquareGlutWindow.cpp:58
A collection of NamedData objects.
Definition: DataGroup.h:68
boost::thread m_renderThread
Render thread which runs the Glut main loop.
Definition: MovingSquareGlutWindow.h:46
std::shared_ptr< GlutCamera > m_camera
Camera which controls the view of the scene.
Definition: MovingSquareGlutWindow.h:54
MovingSquareGlutWindow(const std::string &toolDeviceName, const std::string &squareDeviceName)
Constructor.
Definition: MovingSquareGlutWindow.cpp:23
void updateSquare(const SurgSim::DataStructures::DataGroup &inputData)
Updates the square based on the device input.
Definition: MovingSquareGlutWindow.cpp:136
A simple listener to display the simple scene composed of a square and tool for the example applicati...
Definition: MovingSquareGlutWindow.h:30
std::shared_ptr< GlutGroup > m_tool
Tool composed of a sphere and axes that are moved with device input.
Definition: MovingSquareGlutWindow.h:57
void initializeInput(const std::string &device, const SurgSim::DataStructures::DataGroup &inputData) override
Set the initial input data group.
Definition: MovingSquareGlutWindow.cpp:54
~MovingSquareGlutWindow()
Destructor.
Definition: MovingSquareGlutWindow.cpp:46