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-2018 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Julien SALLANNE (Apr 2009) 00022 **=======================================================================*/ 00023 00024 #ifndef _SO_GEOELEVATIONGRID_ 00025 #define _SO_GEOELEVATIONGRID_ 00026 00027 #include <Inventor/fields/SoSFVec3f.h> 00028 #include <Inventor/fields/SoSFInt32.h> 00029 #include <Inventor/fields/SoMFFloat.h> 00030 #include <Inventor/fields/SoSFFloat.h> 00031 #include <Inventor/fields/SoMFString.h> 00032 #include <Inventor/nodes/SoGeoProjection.h> 00033 #include <Inventor/nodes/SoIndexedFaceSet.h> 00034 00035 #include <Inventor/SbPImpl.h> 00036 00037 SO_PIMPL_PUBLIC_DECLARATION( SoGeoElevationGrid ) 00038 00039 00093 class SoGeoElevationGrid : public SoIndexedFaceSet 00094 { 00095 00096 SO_PIMPL_PUBLIC_HEADER( SoGeoElevationGrid ) 00097 SO_NODE_HEADER( SoGeoElevationGrid ); 00098 00099 public: 00100 // Fields 00106 SoSFFloat yScale; 00107 00112 SoSFVec3f geoGridOrigin; 00113 00128 SoMFString geoSystem; 00129 00135 SoMFFloat height; 00136 00140 SoSFInt32 xDimension; 00141 00148 SoSFFloat xSpacing; 00149 00153 SoSFInt32 zDimension; 00154 00162 SoSFFloat zSpacing; 00163 00167 SoGeoElevationGrid(); 00168 00169 private: 00170 // Implements actions 00171 virtual void GLRender( SoGLRenderAction* action ); 00172 00173 // Computes bounding box 00174 virtual void computeBBox( SoAction* action, SbBox3f& box, SbVec3f& center ); 00175 00176 private: 00177 00178 static void initClass(); 00179 static void exitClass(); 00180 00181 private: 00182 00183 virtual ~SoGeoElevationGrid(); 00184 00185 }; 00186 00187 #endif /* _SO_GEOELEVATIONGRID_ */ 00188 00189 00190