Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
NevadaTerrain Class Reference
Inheritance diagram for NevadaTerrain:
vtTerrain CultureExtension

Public Member Functions

void CreateCustomCulture ()
 
void SetWaterHeight (float fWaterHeight)
 
void SetWaterOn (bool on)
 
void CreateWater ()
 
void CreateDetailTextures ()
 
void CreatePast ()
 
void CreatePresent ()
 
void CreateFuture ()
 
- Public Member Functions inherited from vtTerrain
void SetParamFile (const char *fname)
 
bool LoadParams ()
 
vtString GetParamFile ()
 
void SetParams (const TParams &Params)
 
TParamsGetParams ()
 
void SetName (const vtString &str)
 
vtString GetName ()
 
void SetLocalGrid (vtElevationGrid *pGrid, bool bPreserve)
 
void SetTin (vtTin3d *pTin)
 
vtTin3dGetTin ()
 
bool GetGeoExtentsFromMetadata ()
 
void SetBothSides (bool bFlag)
 pass true to draw the underside of the terrain as well
 
void CreateStep0 ()
 
bool CreateStep1 ()
 
bool CreateStep2 (vtTransform *pSunLight, vtLightSource *pLightSource)
 
bool CreateStep3 ()
 
bool CreateStep4 ()
 
bool CreateStep5 ()
 
vtString GetLastError ()
 
void SetProgressCallback (ProgFuncPtrType progress_callback=NULL)
 
bool ProgressCallback (int i)
 
void SetTextureColors (ColorMap *colors)
 Set the colors to be used in a derived texture. More...
 
ColorMapGetTextureColors ()
 
void SetTextureContours (float fInterval, float fSize)
 Sets the texture colors to be a set of black contour stripes. More...
 
virtual void PaintDib (bool progress_callback(int)=NULL)
 
bool IsCreated ()
 Return true if the terrain has been created.
 
void Enable (bool bVisible)
 Set the enabled state of the terrain (whether it is shown or not).
 
vtTransformLoadModel (const char *filename, bool bAllowCache=true)
 Load an external geometry file. More...
 
void addNode (osg::Node *pNode)
 Add a model (or any node) to the terrain. More...
 
void removeNode (osg::Node *pNode)
 Remove a node from the terrain's scene graph. More...
 
void PlantModel (vtTransform *model)
 Place a model on the terrain. More...
 
void PlantModelAtPoint (vtTransform *model, const DPoint2 &pos)
 Place a model on the terrain at a specific point. More...
 
bool PointIsInTerrain (const DPoint2 &p)
 Test whether a given point is within the current terrain. More...
 
void SetGlobalProjection ()
 
bool AddFence (vtFence3d *f)
 
void AddFencepoint (vtFence3d *f, const DPoint2 &epos)
 
void RedrawFence (vtFence3d *f)
 
void AddRoute (vtRoute *f)
 
void add_routepoint_earth (vtRoute *f, const DPoint2 &epos, const char *structname)
 
void RedrawRoute (vtRoute *f)
 
void SaveRoute ()
 
vtRouteGetLastRoute ()
 
vtRouteMapGetRouteMap ()
 
LayerSetGetLayers ()
 Get at the container for all the layers.
 
void RemoveLayer (vtLayer *lay, bool progress_callback(int)=NULL)
 
vtLayerLoadLayer (const char *fname)
 
bool AddPlant (const DPoint2 &pos, int iSpecies, float fSize)
 
int DeleteSelectedPlants ()
 
void SetPlantList (vtSpeciesList3d *pPlantList)
 
vtSpeciesList3dGetPlantList ()
 
vtPlantInstanceArray3dGetPlantInstances ()
 Get the plant array for this terrain. You can modify it directly.
 
bool AddNodeToVegGrid (osg::Node *pNode)
 
vtStructureLayerGetStructureLayer ()
 
void SetStructureLayer (vtStructureLayer *slay)
 
vtStructureLayerNewStructureLayer ()
 
vtStructureLayerLoadStructuresFromXML (const vtString &strFilename)
 
void CreateStructures (vtStructureArray3d *structures)
 
bool CreateStructure (vtStructureArray3d *structures, int index)
 
int DeleteSelectedStructures ()
 
void DeleteLayer (uint index)
 
bool FindClosestStructure (const DPoint2 &point, double epsilon, int &structure, double &closest, float fMaxInstRadius, float fLinearWidthBuffer)
 
bool AddNodeToStructGrid (osg::Node *pNode)
 
void RemoveNodeFromStructGrid (osg::Node *pNode)
 
vtLodGridGetStructureGrid ()
 
int DoStructurePaging ()
 
vtPagedStructureLodGridGetStructureLodGrid ()
 
float GetStructurePageOutDistance ()
 
void SetStructurePageOutDistance (float f)
 
int GetStructurePageMax ()
 
void ExtendStructure (vtStructure *s)
 
void SetStructureExtension (vtStructureExtension *se=NULL)
 
void SetAbstractLayer (vtAbstractLayer *alay)
 
vtAbstractLayerGetAbstractLayer ()
 
void RemoveFeatureGeometries (vtAbstractLayer *alay)
 
int DeleteSelectedFeatures ()
 
void SetFeatureLoader (vtFeatureLoader *loader)
 
vtTransformGetScaledFeatures ()
 
vtRoadMap3dGetRoadMap ()
 
void AddEngine (vtEngine *pE)
 
void ActivateEngines (bool bActive)
 
vtEngineGetEngineGroup ()
 
FPoint3 GetCenter ()
 
float GetRadius ()
 
void SetFeatureVisible (TFType ftype, bool bOn)
 
bool GetFeatureVisible (TFType ftype)
 
void SetLODDistance (TFType ftype, float fDistance)
 
float GetLODDistance (TFType ftype)
 
void SetVerticalExag (float fExag)
 
float GetVerticalExag () const
 
vtDynTerrainGeomGetDynTerrain ()
 
const vtDynTerrainGeomGetDynTerrain () const
 
vtTiledGeomGetTiledGeom ()
 
vtGroupGetTopGroup ()
 
vtGroupGetTerrainGroup ()
 
vtHeightField3dGetHeightField ()
 
vtHeightFieldGrid3dGetHeightFieldGrid3d ()
 
vtProjectionGetProjection ()
 
virtual bool FindAltitudeOnCulture (const FPoint3 &p3, float &fAltitude, bool bTrue, int iCultureFlags) const
 
int GetShadowTextureUnit ()
 
float AddSurfaceLineToMesh (vtGeomFactory *pMF, const DLine2 &line, float fOffset, bool bInterp=true, bool bCurve=false, bool bTrue=false)
 
void SetCamLocation (FMatrix4 &mat)
 
FMatrix4GetCamLocation ()
 
vtLocationSaverGetLocSaver ()
 
void Visited (bool bVisited)
 
bool IsVisited ()
 
vtAnimContainerGetAnimContainer ()
 Access the animation paths associated with this terrain.
 
void SetWaterLevel (float fElev)
 
void SetFog (bool fog)
 
bool GetFog ()
 
void SetFogColor (const RGBf &color)
 
void SetFogDistance (float fMeters)
 
void SetBgColor (const RGBf &color)
 
RGBf GetBgColor ()
 
void SetShadows (bool shadows)
 
bool GetShadows ()
 
void SetShadowOptions (const vtShadowOptions &opt)
 
void GetShadowOptions (vtShadowOptions &opt)
 
void ForceShadowUpdate ()
 
vtTime GetInitialTime ()
 
void TranslateToGMT (vtTime &time)
 
void TranslateFromGMT (vtTime &time)
 
DPoint2 GetCenterGeoLocation ()
 
vtGroupGetOverlay ()
 
void ActivateScenario (int iScenario)
 
vtElevationGridGetInitialGrid ()
 
void UpdateElevation ()
 
void RedrapeCulture (const DRECT &area)
 
void RecreateTextures (vtTransform *pSunLight, bool progress_callback(int)=NULL)
 
osg::Image * GetTextureImage ()
 
vtMultiTextureAddMultiTextureOverlay (vtImage *pImage, const DRECT &extents, int TextureMode)
 
osg::Node * GetTerrainSurfaceNode ()
 

Public Attributes

vtGroupm_pPast
 
vtGroupm_pPresent
 
vtGroupm_pFuture
 
vtLodGridm_pTreeGrid
 
vtMovGeodem_pWaterShape
 
vtMovGeodem_pWaterShape2
 
ImagePtr m_pDetailTexture
 
ImagePtr m_pDetailTexture2
 
vtMaterialm_pDetailMat
 
vtMaterialm_pDetailMat2
 
vtMaterialArraym_pMats
 
FPoint3 man_location
 
float m_fGround
 
float m_fHigh
 
float m_fLow
 
- Public Attributes inherited from vtTerrain
ProgFuncPtrType m_progress_callback
 
vtStructureExtensionm_pStructureExtension
 
vtContentManager3d m_Content
 
DLine2 m_Corners_geo
 

Additional Inherited Members

- Protected Member Functions inherited from vtTerrain
bool CreateFromTIN ()
 
bool CreateFromGrid ()
 
bool CreateFromTiles ()
 
bool CreateFromExternal ()
 
void _CreateCulture ()
 
void _CreateVegetation ()
 
void _CreateStructures ()
 
void _CreateRoads ()
 
void _SetupVegGrid (float fLODDistance)
 
void _SetupStructGrid (float fLODDistance)
 
void _CreateAbstractLayers ()
 
void _CreateImageLayers ()
 
void _CreateTextures (const FPoint3 &light_dir, bool progress_callback(int)=NULL)
 
void _CreateDetailTexture ()
 
bool _CreateDynamicTerrain ()
 
void _CreateErrorMessage (DTErr error, vtElevationGrid *pGrid)
 
void _SetErrorMessage (const vtString &msg)
 
void CreateArtificialHorizon (float fAltitude, bool bWater, bool bHorizon, bool bCenter)
 
void _ApplyPreLight (vtHeightFieldGrid3d *pLocalGrid, vtBitmapBase *dib, const FPoint3 &light_dir, bool progress_callback(int)=NULL)
 
void _ComputeCenterLocation ()
 
void GetTerrainBounds ()
 
void EnforcePageOut ()
 
void ConnectFogShadow (bool bFog, bool bShadow)
 
- Protected Attributes inherited from vtTerrain
vtGroupPtr m_pContainerGroup
 
vtGroupPtr m_pTerrainGroup
 
vtGroupPtr m_pUnshadowedGroup
 
vtDynTerrainGeomPtr m_pDynGeom
 
vtTransformPtr m_pDynGeomScale
 
float m_fVerticalExag
 
vtTin3dPtr m_pTin
 
vtTiledGeomPtr m_pTiledGeom
 
osg::ref_ptr
< vtExternalHeightField3d
m_pExternalHeightField
 
TParams m_Params
 
vtHeightField3dm_pHeightField
 
bool m_bPreserveInputGrid
 
FMatrix4 m_CamLocation
 
bool m_bVisited
 
vtLocationSaver m_LocSaver
 
vtAnimContainer m_AnimContainer
 
vtFogPtr m_pFog
 
vtShadowPtr m_pShadow
 
vtMovGeodePtr m_pHorizonGeom
 
vtMovGeodePtr m_pOceanGeom
 
bool m_bFog
 
RGBf m_fog_color
 
RGBf m_background_color
 
bool m_bShadows
 
vtTin3dPtr m_pWaterTin3d
 
LayerSet m_Layers
 
vtStructureLayerm_pActiveStructLayer
 
vtLodGridm_pStructGrid
 
vtPagedStructureLodGridm_pPagedStructGrid
 
int m_iPagingStructureMax
 
float m_fPagingStructureDist
 
vtMaterialArrayPtr m_pTerrMats
 
vtMaterialArrayPtr m_pDetailMats
 
vtMaterialArrayPtr m_pEphemMats
 
int m_idx_water
 
int m_idx_horizon
 
bool m_bBothSides
 
vtAbstractLayerm_pActiveAbstractLayer
 
vtTransformm_pScaledFeatures
 
vtFeatureLoaderm_pFeatureLoader
 
vtGroupm_pRoadGroup
 
vtRoadMap3dPtr m_pRoadMap
 
vtPlantInstanceArray3d m_PIA
 
vtSpeciesList3dm_pPlantList
 
vtGroupm_pVegGroup
 
vtSimpleLodGridm_pVegGrid
 
vtRouteMap m_Routes
 
ImagePtr m_pUnshadedImage
 
ImagePtr m_pSingleImage
 
auto_ptr< ColorMapm_pTextureColors
 
bool m_bTextureInitialized
 
vtTextureUnitManager m_TextureUnits
 
int m_iShadowTextureUnit
 
vtLightSourcem_pLightSource
 
FSphere m_bound_sphere
 
RGBf m_ocean_color
 
vtString m_strParamFile
 
vtEnginePtr m_pEngineGroup
 
auto_ptr< vtElevationGridm_pElevGrid
 
DPoint2 m_CenterGeoLocation
 
int m_iDifferenceFromGMT
 
vtString m_strErrorMsg
 
vtGroupm_pOverlay
 
vtProjection m_proj
 
bool m_bIsCreated
 

Member Function Documentation

void NevadaTerrain::CreateCustomCulture ( )
virtual

The base CreateCustomCulture does nothing; this virtual method is meant to be overridden by your terrain subclass to add its own culture.

Reimplemented from vtTerrain.


The documentation for this class was generated from the following files: