|
| TerrainNodeT () |
| The constructor. More...
|
|
| TerrainNodeT (const BoundingBox3dT &BB_, const TerrainT &Terrain_, unsigned long TerrainShareID_, const std::string &MaterialName_, const float LightMapPatchSize) |
| Constructor for creating a TerrainNodeT from parameters. More...
|
|
| ~TerrainNodeT () |
| The destructor. More...
|
|
void | WriteTo (std::ostream &OutFile, aux::PoolT &Pool) const |
|
const BoundingBox3T< double > & | GetBoundingBox () const |
| Returns the bounding box of the contents of this scene node. More...
|
|
bool | IsOpaque () const |
| TODO / FIXME: This method is a hot-fix for getting the render order with translucent Bezier Patches right. More...
|
|
void | DrawAmbientContrib (const Vector3dT &ViewerPos) const |
| Draws the contents of this scene node. More...
|
|
void | DrawStencilShadowVolumes (const Vector3dT &LightPos, const float LightRadius) const |
|
void | DrawLightSourceContrib (const Vector3dT &ViewerPos, const Vector3dT &LightPos) const |
|
void | DrawTranslucentContrib (const Vector3dT &ViewerPos) const |
|
virtual | ~GenericNodeT () |
| The virtual destructor, so that derived classes can safely be deleted via a GenericNodeT (base class) pointer. More...
|
|
virtual void | InitDefaultLightMaps (const float LightMapPatchSize) |
| If this NodeT uses lightmaps, this methods initializes default (full-bright) lightmaps for it at the proper size. More...
|
|
virtual void | CreatePatchMeshes (ArrayT< PatchMeshT > &PatchMeshes, ArrayT< ArrayT< ArrayT< Vector3dT > > > &SampleCoords, const float LightMapPatchSize) const |
| Creates the patch meshes for this NodeT for the purpose of radiosity computations (CaLight). More...
|
|
virtual void | BackToLightMap (const PatchMeshT &PatchMesh, const float LightMapPatchSize) |
| Takes the patches of the given patch mesh back into the lightmap of this node. More...
|
|
|
static TerrainNodeT * | CreateFromFile_cw (std::istream &InFile, aux::PoolT &Pool, LightMapManT &LMM, SHLMapManT &SMM, const ArrayT< const TerrainT * > &ShTe) |
| Named constructor. More...
|
|
static GenericNodeT * | CreateFromFile_cw (std::istream &InFile, aux::PoolT &Pool, LightMapManT &LMM, SHLMapManT &SMM, PlantDescrManT &PDM, const ArrayT< const TerrainT * > &ShTe, ModelManagerT &ModelMan) |
| Reads a GenericNodeT from InFile. More...
|
|
TerrainNodeT::TerrainNodeT |
( |
| ) |
|
TerrainNodeT::TerrainNodeT |
( |
const BoundingBox3dT & |
BB_, |
|
|
const TerrainT & |
Terrain_, |
|
|
unsigned long |
TerrainShareID_, |
|
|
const std::string & |
MaterialName_, |
|
|
const float |
LightMapPatchSize |
|
) |
| |
Constructor for creating a TerrainNodeT from parameters.
- Parameters
-
BB_ | The bounding box of the terrain node. |
Terrain_ | The TerrainT instance to create the TerrainNodeT from. |
TerrainShareID_ | Used for sharing common TerrainT instances across several TerrainNodeT's. (TODO: Needs better documentation!) |
MaterialName_ | Name of the material that is applied to this terrain. |
LightMapPatchSize | The size of the lightmap patches. |
TerrainNodeT::~TerrainNodeT |
( |
| ) |
|
void TerrainNodeT::DrawAmbientContrib |
( |
const Vector3dT & |
ViewerPos | ) |
const |
|
virtual |
const BoundingBox3T< double > & TerrainNodeT::GetBoundingBox |
( |
| ) |
const |
|
virtual |
bool TerrainNodeT::IsOpaque |
( |
| ) |
const |
|
virtual |
TODO / FIXME: This method is a hot-fix for getting the render order with translucent Bezier Patches right.
It should be removed again and the whole system should be replaced with something as in the Q3 renderer!
Reimplemented from cf::SceneGraph::GenericNodeT.
The documentation for this class was generated from the following files: