#include <DemeterTerrain.h>
Public Member Functions | |
| DTErr | Init (const vtElevationGrid *pGrid, float fZScale) |
| void | DoRender () |
| void | DoCulling (const vtCamera *pCam) |
| void | GetWorldLocation (int iX, int iZ, FPoint3 &p, bool bTrue=false) const |
Public Member Functions inherited from vtDynTerrainGeom | |
| virtual void | Init2 () |
| DTErr | BasicInit (const vtElevationGrid *pGrid) |
| virtual void | SetVerticalExag (float fExag) |
| virtual float | GetVerticalExag () const =0 |
| virtual void | SetPolygonTarget (int iPolygonCount) |
| int | GetPolygonTarget () |
| int | GetNumDrawnTriangles () |
| void | SetDetailMaterial (vtMaterial *pApp, float fTiling, float fDistance) |
| void | EnableDetail (bool bOn) |
| bool | GetDetail () |
| void | SetupTexGen (float fTiling) |
| void | DisableTexGen () |
| void | DoCalcBoundBox (FBox3 &box) |
| void | DoCull (const vtCamera *pCam) |
| bool | FindAltitudeOnEarth (const DPoint2 &p, float &fAltitude, bool bTrue=false) const |
| bool | FindAltitudeAtPoint (const FPoint3 &p3, float &fAltitude, bool bTrue=false, int iCultureFlags=0, FPoint3 *vNormal=NULL) const |
| virtual void | SetElevation (int i, int j, float fValue, bool bTrue=false) |
| void | SetCull (bool bOnOff) |
| void | CullOnce () |
| void | PreRender () const |
| void | PostRender () const |
Public Member Functions inherited from vtDynGeom | |
| int | IsVisible (const FSphere &sphere) const |
| int | IsVisible (const FPoint3 &point0, const FPoint3 &point1, const FPoint3 &point2, const float fTolerance=0.0f) const |
| int | IsVisible (const FPoint3 &point, float radius) |
| bool | IsVisible (const FPoint3 &point) const |
| void | ApplyMaterial (vtMaterial *mat) |
Public Member Functions inherited from vtGeode | |
| vtGeode * | CloneGeode () |
| void | CloneFromGeode (const vtGeode *rhs) |
| void | AddMesh (vtMesh *pMesh, int iMatIdx) |
| void | RemoveMesh (vtMesh *pMesh) |
| void | AddTextMesh (vtTextMesh *pMesh, int iMatIdx) |
| uint | GetNumMeshes () const |
| vtMesh * | GetMesh (int i) const |
| vtTextMesh * | GetTextMesh (int i) const |
| virtual void | SetMaterials (const class vtMaterialArray *mats) |
| const vtMaterialArray * | GetMaterials () const |
| vtMaterial * | GetMaterial (int idx) |
| void | SetMeshMatIndex (vtMesh *pMesh, int iMatIdx) |
Public Member Functions inherited from NodeExtension | |
| void | SetEnabled (bool bOn) |
| bool | GetEnabled () const |
| void | SetCastShadow (bool b) |
| Set this node to cast a shadow, if it is under a vtShadow node. Default is false. | |
| bool | GetCastShadow () |
| Get whether this node casts a shadow. | |
| void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) |
| Get the Bounding Sphere of the node. | |
| void | SetOsgNode (osg::Node *n) |
Public Member Functions inherited from vtHeightFieldGrid3d | |
| void | Initialize (const LinearUnits units, const DRECT &earthextents, float fMinHeight, float fMaxHeight, int cols, int rows) |
| virtual void | SetEarthExtents (const DRECT &ext) |
| bool | CastRayToSurface (const FPoint3 &point, const FPoint3 &dir, FPoint3 &result) const |
| bool | LineOfSight (const FPoint3 &point1, const FPoint3 &point2) const |
| DPoint2 | GetSpacing () const |
| FPoint2 | GetWorldSpacing () const |
| void | GetDimensions (int &nColumns, int &nRows) const |
| int | NumColumns () |
| int | NumRows () |
| void | EarthToGrid (const DPoint2 &epos, IPoint2 &ipos) |
| void | WorldToGrid (const FPoint3 &pos, IPoint2 &ipos) |
| float | GetInterpolatedElevation (double findex_x, double findex_y) const |
| int | FindNumUnknown () |
| virtual float | GetElevation (int iX, int iZ, bool bTrue=false) const =0 |
| bool | ColorDibFromElevation (vtBitmapBase *pBM, const ColorMap *cmap, int iGranularity, const RGBAi &nodata, bool progress_callback(int)=NULL) |
| bool | ColorDibFromTable (vtBitmapBase *pBM, std::vector< RGBi > &table, float fMin, float fMax, const RGBAi &nodata, bool progress_callback(int)=NULL) |
| void | ShadeDibFromElevation (vtBitmapBase *pBM, const FPoint3 &light_dir, float fLightFactor, float fAmbient=0.1f, float fGamma=1.0f, bool bTrue=false, bool progress_callback(int)=NULL) |
| void | ShadeQuick (vtBitmapBase *pBM, float light_factor, bool bTrue=false, bool progress_callback(int)=NULL) |
| void | ShadowCastDib (vtBitmapBase *pBM, const FPoint3 &ight_dir, float fLightFactor, float fAmbient, bool progress_callback(int)=NULL) |
Public Member Functions inherited from vtHeightField3d | |
| void | Initialize (const LinearUnits units, const DRECT &earthextents, float fMinHeight, float fMaxHeight) |
| int | PointIsAboveTerrain (const FPoint3 &p) const |
| bool | ConvertEarthToSurfacePoint (const DPoint2 &epos, FPoint3 &p3, int iCultureFlags=0, bool bTrue=false) |
| bool | ContainsWorldPoint (float x, float z) |
| void | GetCenter (FPoint3 ¢er) |
| void | SetCulture (CultureExtension *ext) |
Public Member Functions inherited from vtHeightField | |
| void | Initialize (const DRECT &extents, float fMinHeight, float fMaxHeight) |
| bool | ContainsEarthPoint (const DPoint2 &p, bool bInclusive=false) const |
| DRECT & | GetEarthExtents () |
| const DRECT & | GetEarthExtents () const |
| void | GetHeightExtents (float &fMinHeight, float &fMaxHeight) const |
Protected Member Functions | |
| void | RenderSurface () |
| void | RenderPass () |
| void | LoadSingleMaterial () |
Additional Inherited Members | |
Public Attributes inherited from vtDynTerrainGeom | |
| int | m_iTotalTriangles |
| int | m_iDrawnTriangles |
Protected Attributes inherited from vtDynTerrainGeom | |
| float * | m_fXLookup |
| float * | m_fZLookup |
| int | m_iPolygonTarget |
| bool | m_bCulleveryframe |
| bool | m_bCullonce |
| float | m_fDetailTiling |
| float | m_fDetailDistance |
| bool | m_bDetailTexture |
| vtMaterial * | m_pDetailMat |
This class wraps the Demeter CLOD terrain rendering algorithm for use in the vtlib library.
This implementation is unfinished and disabled.
1.8.4