00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Frederic FRATANI (MMM yyyy) 00022 ** Modified by : Christophe OGNIER (MMM yyyy) 00023 **=======================================================================*/ 00024 00025 00026 00027 #ifndef SOTVIZALTIMETERSPEEDOMETER_H 00028 #define SOTVIZALTIMETERSPEEDOMETER_H 00029 00030 #include <TerrainViz/viewer/SoTVizNavigationToolBase.h> 00031 #include <Inventor/nodes/SoText3.h> 00032 class SoDEPRECATED SoTVizAltimeterSpeedometer : public SoTVizNavigationToolBase 00057 { 00058 public: 00059 00060 00064 SoTVizAltimeterSpeedometer (); 00065 00069 virtual ~SoTVizAltimeterSpeedometer (); 00070 00080 virtual void loadFile (const char* fileName); 00081 00082 enum predefinedTerrainAltimeterSpeedometer { 00086 TERRAINALTISPEED_DEFAULT 00087 }; 00088 00092 virtual void loadPredefined (predefinedTerrainAltimeterSpeedometer tool); 00093 00098 virtual void notifyElevation (float newRelativeElevation, float newGroundElevation, SoTVizCameraManager::lengthUnits newLengthUnit); 00099 00104 virtual void notifySpeed (float newSpeed, SoTVizViewer::speedUnits newSpeedUnit); 00105 00106 private: 00107 00108 virtual void processSpecificInteraction (SbVec2s mouseLocation, SoPickedPoint* pickPoint); 00109 00110 SoText3* m_relativeElevationString; 00111 SoText3* m_groundElevationString; 00112 SoText3* m_speedString; 00113 char m_textStrings[3][10]; 00114 00115 // m_textString [0] : relative elevation 00116 // m_textString [1] : ground elevation 00117 // m_textString [2] : speed 00118 }; 00119 00120 inline void 00121 SoTVizAltimeterSpeedometer::processSpecificInteraction (SbVec2s, SoPickedPoint*) 00122 {} 00123 00124 #endif // SOTVIZALTIMETERSPEEDOMETER_H 00125 00126 00127