#include <W3DTerrainVisual.h>
Inherits TerrainVisual.
Public Member Functions | |
| W3DTerrainVisual () | |
| virtual | ~W3DTerrainVisual () |
| virtual void | init (void) |
| virtual void | reset (void) |
| virtual void | update (void) |
| virtual Bool | load (AsciiString filename) |
| void | getTerrainColorAt (Real x, Real y, RGBColor *pColor) |
| get color of texture on the terrain at location specified | |
| TerrainType * | getTerrainTile (Real x, Real y) |
| get the terrain tile type at the world location in the (x,y) plane ignoring Z | |
| virtual Bool | intersectTerrain (Coord3D *rayStart, Coord3D *rayEnd, Coord3D *result) |
| virtual void | enableWaterGrid (Bool enable) |
| enable/disable the water grid | |
| virtual void | setWaterGridHeightClamps (const WaterHandle *waterTable, Real minZ, Real maxZ) |
| set min/max height values allowed in water grid pointed to by waterTable | |
| virtual void | setWaterAttenuationFactors (const WaterHandle *waterTable, Real a, Real b, Real c, Real range) |
| adjust fallof parameters for grid change method | |
| virtual void | setWaterTransform (const WaterHandle *waterTable, Real angle, Real x, Real y, Real z) |
| set the water table position and orientation in world space | |
| virtual void | setWaterTransform (const Matrix3D *transform) |
| virtual void | getWaterTransform (const WaterHandle *waterTable, Matrix3D *transform) |
| virtual void | setWaterGridResolution (const WaterHandle *waterTable, Real gridCellsX, Real gridCellsY, Real cellSize) |
| water grid resolution spacing | |
| virtual void | getWaterGridResolution (const WaterHandle *waterTable, Real *gridCellsX, Real *gridCellsY, Real *cellSize) |
| virtual void | changeWaterHeight (Real x, Real y, Real delta) |
| adjust the water grid in world coords by the delta | |
| virtual void | addWaterVelocity (Real worldX, Real worldY, Real velocity, Real preferredHeight) |
| adjust the velocity at a water grid point corresponding to the world x,y | |
| virtual Bool | getWaterGridHeight (Real worldX, Real worldY, Real *height) |
| get height of water grid at specified position | |
| virtual void | setTerrainTracksDetail (void) |
| set detail of terrain tracks. | |
| virtual void | setShoreLineDetail (void) |
| void | addFactionBib (Object *factionBuilding, Bool highlight, Real extra=0) |
| Add a bib at location. | |
| void | removeFactionBib (Object *factionBuilding) |
| Remove a bib. | |
| void | addFactionBibDrawable (Drawable *factionBuilding, Bool highlight, Real extra=0) |
| Add a bib at location. | |
| void | removeFactionBibDrawable (Drawable *factionBuilding) |
| Remove a bib. | |
| virtual void | removeAllBibs (void) |
| virtual void | removeBibHighlighting (void) |
| virtual void | addProp (const ThingTemplate *tt, const Coord3D *pos, Real angle) |
| virtual void | removeTreesAndPropsForConstruction (const Coord3D *pos, const GeometryInfo &geom, Real angle) |
| virtual void | setRawMapHeight (const ICoord2D *gridPos, Int height) |
| virtual Int | getRawMapHeight (const ICoord2D *gridPos) |
| virtual void | replaceSkyboxTextures (const AsciiString *oldTexName[NumSkyboxTextures], const AsciiString *newTexName[NumSkyboxTextures]) |
| Replace the skybox texture. | |
| WorldHeightMap * | getLogicHeightMap (void) |
| WorldHeightMap * | getClientHeightMap (void) |
Public Member Functions inherited from TerrainVisual | |
| TerrainVisual () | |
| virtual | ~TerrainVisual () |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Member Functions | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Attributes | |
| BaseHeightMapRenderObjClass * | m_terrainRenderObject |
| W3D render object for terrain. | |
| WaterRenderObjClass * | m_waterRenderObject |
| W3D render object for water plane. | |
| WorldHeightMap * | m_logicHeightMap |
| height map used for render obj building | |
| Bool | m_isWaterGridRenderingEnabled |
| AsciiString | m_currentSkyboxTexNames [NumSkyboxTextures] |
| store current texture names applied to skybox. | |
| AsciiString | m_initialSkyboxTexNames [NumSkyboxTextures] |
| store starting texture/default skybox textures. | |
Protected Attributes inherited from TerrainVisual | |
| AsciiString | m_filenameString |
| file with terrain data | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Additional Inherited Members | |
Public Types inherited from TerrainVisual | |
| enum | { NumSkyboxTextures = 5 } |
W3D impelmentation of visual terrain details singleton
Definition at line 53 of file W3DTerrainVisual.h.
| W3DTerrainVisual::W3DTerrainVisual | ( | ) |
Definition at line 161 of file W3DTerrainVisual.cpp.
|
virtual |
Definition at line 188 of file W3DTerrainVisual.cpp.
|
virtual |
Add a bib at location.
Implements TerrainVisual.
Definition at line 1022 of file W3DTerrainVisual.cpp.
|
virtual |
Add a bib at location.
Implements TerrainVisual.
Definition at line 980 of file W3DTerrainVisual.cpp.
|
virtual |
Implements TerrainVisual.
Definition at line 1111 of file W3DTerrainVisual.cpp.
|
virtual |
adjust the velocity at a water grid point corresponding to the world x,y
Implements TerrainVisual.
Definition at line 907 of file W3DTerrainVisual.cpp.
adjust the water grid in world coords by the delta
adjust the water grid in world coords by the delta
Implements TerrainVisual.
Definition at line 897 of file W3DTerrainVisual.cpp.
|
protectedvirtual |
|
virtual |
enable/disable the water grid
Implements TerrainVisual.
Definition at line 718 of file W3DTerrainVisual.cpp.
|
inlinevirtual |
Reimplemented from TerrainVisual.
Definition at line 144 of file W3DTerrainVisual.h.
|
inlinevirtual |
Reimplemented from TerrainVisual.
Definition at line 143 of file W3DTerrainVisual.h.
Implements TerrainVisual.
Definition at line 965 of file W3DTerrainVisual.cpp.
get color of texture on the terrain at location specified
Implements TerrainVisual.
Definition at line 771 of file W3DTerrainVisual.cpp.
|
virtual |
get the terrain tile type at the world location in the (x,y) plane ignoring Z
Implements TerrainVisual.
Definition at line 786 of file W3DTerrainVisual.cpp.
get height of water grid at specified position
Implements TerrainVisual.
Definition at line 918 of file W3DTerrainVisual.cpp.
|
virtual |
get water grid resolution spacing
Implements TerrainVisual.
Definition at line 885 of file W3DTerrainVisual.cpp.
|
virtual |
get the water transform matrix
Implements TerrainVisual.
Definition at line 862 of file W3DTerrainVisual.cpp.
|
virtual |
|
virtual |
intersect the ray with the terrain, if a hit occurs TRUE is returned and the result point on the terrain is returned in "result"
Reimplemented from TerrainVisual.
Definition at line 734 of file W3DTerrainVisual.cpp.
|
virtual |
load method for W3D visual terrain
Reimplemented from TerrainVisual.
Definition at line 550 of file W3DTerrainVisual.cpp.
|
protectedvirtual |
Load post process
Reimplemented from TerrainVisual.
Definition at line 1303 of file W3DTerrainVisual.cpp.
|
virtual |
Implements TerrainVisual.
Definition at line 1082 of file W3DTerrainVisual.cpp.
|
virtual |
Implements TerrainVisual.
Definition at line 1091 of file W3DTerrainVisual.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements TerrainVisual.
Definition at line 1100 of file W3DTerrainVisual.cpp.
|
virtual |
Replace the skybox texture.
Implements TerrainVisual.
Definition at line 1159 of file W3DTerrainVisual.cpp.
|
virtual |
Implements TerrainVisual.
Definition at line 933 of file W3DTerrainVisual.cpp.
|
virtual |
Implements TerrainVisual.
Definition at line 1150 of file W3DTerrainVisual.cpp.
|
virtual |
set detail of terrain tracks.
Implements TerrainVisual.
Definition at line 1142 of file W3DTerrainVisual.cpp.
|
virtual |
adjust fallof parameters for grid change method
adjust fallof parameters for grid change method
Implements TerrainVisual.
Definition at line 827 of file W3DTerrainVisual.cpp.
|
virtual |
set min/max height values allowed in water grid pointed to by waterTable
set min/max height values allowed in water grid pointed to by waterTable
Implements TerrainVisual.
Definition at line 815 of file W3DTerrainVisual.cpp.
|
virtual |
water grid resolution spacing
water grid resolution spacing
Implements TerrainVisual.
Definition at line 873 of file W3DTerrainVisual.cpp.
|
virtual |
set water table transform by matrix
Implements TerrainVisual.
Definition at line 851 of file W3DTerrainVisual.cpp.
|
virtual |
set the water table position and orientation in world space
set the water table position and orientation in world space
Implements TerrainVisual.
Definition at line 839 of file W3DTerrainVisual.cpp.
|
virtual |
|
protectedvirtual |
Xfer Version Info: 1: Initial version 2: Add height map heights. 3: Add client side trees & props. jba.
Reimplemented from TerrainVisual.
Definition at line 1198 of file W3DTerrainVisual.cpp.
|
protected |
store current texture names applied to skybox.
Definition at line 194 of file W3DTerrainVisual.h.
|
protected |
store starting texture/default skybox textures.
Definition at line 195 of file W3DTerrainVisual.h.
|
protected |
Definition at line 192 of file W3DTerrainVisual.h.
|
protected |
height map used for render obj building
Definition at line 186 of file W3DTerrainVisual.h.
|
protected |
W3D render object for terrain.
Definition at line 183 of file W3DTerrainVisual.h.
|
protected |
W3D render object for water plane.
Definition at line 184 of file W3DTerrainVisual.h.