Class for SoTVizViewer navigation tools management. More...
#include <TerrainViz/viewer/SoTVizNavigationTools.h>
Public Member Functions | |
SoTVizNavigationTools (SbVec2s viewport) | |
virtual | ~SoTVizNavigationTools () |
virtual void | addTool (SoTVizNavigationToolBase *tool) |
virtual void | removeTool (SoTVizNavigationToolBase *tool) |
virtual int | getNumTools () const |
virtual SoTVizNavigationToolBase * | getTool (int index) const |
The SoTVizNavigationTools class manages navigation tools (derived from SoTVizNavigationToolBase) which are displayed in SoTVizViewer. New interface elements can be added or removed. Those tools are notified of the current value of certain viewer parameters such as orientation, elevation, speed, and position.
SoTVizNavigationToolBase, SoTVizViewer
SoTVizNavigationTools::SoTVizNavigationTools | ( | SbVec2s | viewport | ) |
Constructor.
Needs the window size in pixels to enable tool picking.
virtual SoTVizNavigationTools::~SoTVizNavigationTools | ( | ) | [virtual] |
Destructor.
virtual void SoTVizNavigationTools::addTool | ( | SoTVizNavigationToolBase * | tool | ) | [virtual] |
Adds a tool.
virtual int SoTVizNavigationTools::getNumTools | ( | ) | const [virtual] |
Returns the number of tools used.
virtual SoTVizNavigationToolBase* SoTVizNavigationTools::getTool | ( | int | index | ) | const [virtual] |
Returns a pointer to a tool given its index.
virtual void SoTVizNavigationTools::removeTool | ( | SoTVizNavigationToolBase * | tool | ) | [virtual] |
Removes a tool.