#include <TerrainVisual.h>
Inherits Snapshot, and SubsystemInterface.
Inherited by W3DTerrainVisual.
Public Types | |
| enum | { NumSkyboxTextures = 5 } |
Public Member Functions | |
| TerrainVisual () | |
| virtual | ~TerrainVisual () |
| virtual void | init (void) |
| virtual void | reset (void) |
| virtual void | update (void) |
| virtual Bool | load (AsciiString filename) |
| virtual void | getTerrainColorAt (Real x, Real y, RGBColor *pColor)=0 |
| get color of texture on the terrain at location specified | |
| virtual TerrainType * | getTerrainTile (Real x, Real y)=0 |
| 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)=0 |
| virtual void | setWaterGridHeightClamps (const WaterHandle *waterTable, Real minZ, Real maxZ)=0 |
| 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)=0 |
| adjust fallof parameters for grid change method | |
| virtual void | setWaterTransform (const WaterHandle *waterTable, Real angle, Real x, Real y, Real z)=0 |
| set the water table position and orientation in world space | |
| virtual void | setWaterTransform (const Matrix3D *transform)=0 |
| virtual void | getWaterTransform (const WaterHandle *waterTable, Matrix3D *transform)=0 |
| get water transform parameters | |
| virtual void | setWaterGridResolution (const WaterHandle *waterTable, Real gridCellsX, Real gridCellsY, Real cellSize)=0 |
| water grid resolution spacing | |
| virtual void | getWaterGridResolution (const WaterHandle *waterTable, Real *gridCellsX, Real *gridCellsY, Real *cellSize)=0 |
| virtual void | changeWaterHeight (Real x, Real y, Real delta)=0 |
| adjust the water grid in world coords by the delta | |
| virtual void | addWaterVelocity (Real worldX, Real worldY, Real velocity, Real preferredHeight)=0 |
| adjust the velocity at a water grid point corresponding to the world x,y | |
| virtual Bool | getWaterGridHeight (Real worldX, Real worldY, Real *height)=0 |
| get height of water grid at specified position | |
| virtual void | setTerrainTracksDetail (void)=0 |
| set detail of terrain tracks. | |
| virtual void | setShoreLineDetail (void)=0 |
| virtual void | addFactionBib (Object *factionBuilding, Bool highlight, Real extra=0)=0 |
| Add a bib for an object at location. | |
| virtual void | removeFactionBib (Object *factionBuilding)=0 |
| Remove a bib. | |
| virtual void | addFactionBibDrawable (Drawable *factionBuilding, Bool highlight, Real extra=0)=0 |
| Add a bib for a drawable at location. | |
| virtual void | removeFactionBibDrawable (Drawable *factionBuilding)=0 |
| Remove a bib. | |
| virtual void | removeAllBibs (void)=0 |
| virtual void | removeBibHighlighting (void)=0 |
| virtual void | removeTreesAndPropsForConstruction (const Coord3D *pos, const GeometryInfo &geom, Real angle)=0 |
| virtual void | addProp (const ThingTemplate *tt, const Coord3D *pos, Real angle)=0 |
| virtual void | setRawMapHeight (const ICoord2D *gridPos, Int height)=0 |
| virtual Int | getRawMapHeight (const ICoord2D *gridPos)=0 |
| virtual WorldHeightMap * | getLogicHeightMap (void) |
| virtual WorldHeightMap * | getClientHeightMap (void) |
| virtual void | replaceSkyboxTextures (const AsciiString *oldTexName[NumSkyboxTextures], const AsciiString *newTexName[NumSkyboxTextures])=0 |
| Replace the skybox texture. | |
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 | |
| AsciiString | m_filenameString |
| file with terrain data | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Device independent implementation for visual terrain
Definition at line 210 of file TerrainVisual.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NumSkyboxTextures | |
Definition at line 216 of file TerrainVisual.h.
| TerrainVisual::TerrainVisual | ( | ) |
Definition at line 52 of file TerrainVisual.cpp.
|
virtual |
Definition at line 59 of file TerrainVisual.cpp.
|
pure virtual |
Add a bib for an object at location.
Implemented in W3DTerrainVisual.
|
pure virtual |
Add a bib for a drawable at location.
Implemented in W3DTerrainVisual.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
adjust the velocity at a water grid point corresponding to the world x,y
Implemented in W3DTerrainVisual.
adjust the water grid in world coords by the delta
Implemented in W3DTerrainVisual.
|
protectedvirtual |
Implements Snapshot.
Reimplemented in W3DTerrainVisual.
Definition at line 109 of file TerrainVisual.cpp.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
inlinevirtual |
Reimplemented in W3DTerrainVisual.
Definition at line 302 of file TerrainVisual.h.
|
inlinevirtual |
Reimplemented in W3DTerrainVisual.
Definition at line 301 of file TerrainVisual.h.
Implemented in W3DTerrainVisual.
get color of texture on the terrain at location specified
Implemented in W3DTerrainVisual.
|
pure virtual |
get the terrain tile type at the world location in the (x,y) plane ignoring Z
Implemented in W3DTerrainVisual.
|
pure virtual |
get height of water grid at specified position
Implemented in W3DTerrainVisual.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
get water transform parameters
Implemented in W3DTerrainVisual.
|
virtual |
initialize the device independent functionality of the visual terrain
Implements SubsystemInterface.
Reimplemented in W3DTerrainVisual.
Definition at line 67 of file TerrainVisual.cpp.
|
inlinevirtual |
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 in W3DTerrainVisual.
Definition at line 235 of file TerrainVisual.h.
|
virtual |
device independent implementation for common terrain visual systems
Reimplemented in W3DTerrainVisual.
Definition at line 93 of file TerrainVisual.cpp.
|
protectedvirtual |
Load post process
Implements Snapshot.
Reimplemented in W3DTerrainVisual.
Definition at line 132 of file TerrainVisual.cpp.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
Remove a bib.
Implemented in W3DTerrainVisual.
|
pure virtual |
Remove a bib.
Implemented in W3DTerrainVisual.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
Replace the skybox texture.
Implemented in W3DTerrainVisual.
|
virtual |
Reset
Implements SubsystemInterface.
Reimplemented in W3DTerrainVisual.
Definition at line 75 of file TerrainVisual.cpp.
Implemented in W3DTerrainVisual.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
set detail of terrain tracks.
Implemented in W3DTerrainVisual.
|
pure virtual |
adjust fallof parameters for grid change method
Implemented in W3DTerrainVisual.
|
pure virtual |
set min/max height values allowed in water grid pointed to by waterTable
Implemented in W3DTerrainVisual.
|
pure virtual |
water grid resolution spacing
Implemented in W3DTerrainVisual.
|
pure virtual |
Implemented in W3DTerrainVisual.
|
pure virtual |
set the water table position and orientation in world space
Implemented in W3DTerrainVisual.
|
virtual |
Implements SubsystemInterface.
Reimplemented in W3DTerrainVisual.
Definition at line 85 of file TerrainVisual.cpp.
|
protectedvirtual |
Xfer Version Info: 1: Initial version
Implements Snapshot.
Reimplemented in W3DTerrainVisual.
Definition at line 119 of file TerrainVisual.cpp.
|
protected |
file with terrain data
Definition at line 319 of file TerrainVisual.h.