Class for displaying motion information. More...
#include <TerrainViz/viewer/SoTVizAltimeterSpeedometer.h>
Public Types | |
enum | predefinedTerrainAltimeterSpeedometer { TERRAINALTISPEED_DEFAULT } |
Public Member Functions | |
SoTVizAltimeterSpeedometer () | |
virtual | ~SoTVizAltimeterSpeedometer () |
virtual void | loadFile (const char *fileName) |
virtual void | loadPredefined (predefinedTerrainAltimeterSpeedometer tool) |
virtual void | notifyElevation (float newRelativeElevation, float newGroundElevation, SoTVizCameraManager::lengthUnits newLengthUnit) |
virtual void | notifySpeed (float newSpeed, SoTVizViewer::speedUnits newSpeedUnit) |
This class is used to display the camera height, terrain height, and speed in SoTVizViewer.
The altimeter speedometer model is loaded from an .iv file using the loadFile method.
SoTVizNavigationToolBase, SoTVizNavigationTool, SoTVizViewer
SoTVizAltimeterSpeedometer::SoTVizAltimeterSpeedometer | ( | ) |
Constructor.
virtual SoTVizAltimeterSpeedometer::~SoTVizAltimeterSpeedometer | ( | ) | [virtual] |
Destructor.
virtual void SoTVizAltimeterSpeedometer::loadFile | ( | const char * | fileName | ) | [virtual] |
Loads the .iv file representing the tool.
The model must have at least three SoText3 nodes with the names RelativeElevation, GroundElevation, and Speed. These nodes are used to display the camera height, terrain height, and speed respectively. The default altimeter speedometer .iv file is provided in the $OIVHOME/data/TerrainViz/viewer directory.
Implements SoTVizNavigationToolBase.
virtual void SoTVizAltimeterSpeedometer::loadPredefined | ( | predefinedTerrainAltimeterSpeedometer | tool | ) | [virtual] |
Loads a predefined tool.
virtual void SoTVizAltimeterSpeedometer::notifyElevation | ( | float | newRelativeElevation, | |
float | newGroundElevation, | |||
SoTVizCameraManager::lengthUnits | newLengthUnit | |||
) | [virtual] |
This method is called by SoTVizViewer to notify the tool about new relative elevation, ground elevation, and length unit values.
Reimplemented from SoTVizNavigationToolBase.
virtual void SoTVizAltimeterSpeedometer::notifySpeed | ( | float | newSpeed, | |
SoTVizViewer::speedUnits | newSpeedUnit | |||
) | [virtual] |
This method is called by SoTVizViewer to notify the tool about new camera speed and speed unit values.
Reimplemented from SoTVizNavigationToolBase.