16 #ifndef SURGSIM_TESTING_VISUALTESTCOMMON_MOVINGSQUAREGLUTWINDOW_H 17 #define SURGSIM_TESTING_VISUALTESTCOMMON_MOVINGSQUAREGLUTWINDOW_H 19 #include <boost/thread.hpp> 75 #endif // SURGSIM_TESTING_VISUALTESTCOMMON_MOVINGSQUAREGLUTWINDOW_H std::shared_ptr< GlutSquare > m_square
Square that is moved with device input.
Definition: MovingSquareGlutWindow.h:64
const std::string m_toolDeviceName
Name of the tool device.
Definition: MovingSquareGlutWindow.h:50
std::shared_ptr< GlutSphere > m_toolSphere
Sphere of the tool.
Definition: MovingSquareGlutWindow.h:61
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:52
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
virtual 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:66
boost::thread m_renderThread
Render thread which runs the Glut main loop.
Definition: MovingSquareGlutWindow.h:47
std::shared_ptr< GlutCamera > m_camera
Camera which controls the view of the scene.
Definition: MovingSquareGlutWindow.h:55
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:58
virtual 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