Cafu Engine
cf::SceneGraph::ModelNodeT Class Reference
Inheritance diagram for cf::SceneGraph::ModelNodeT:

Public Member Functions

 ModelNodeT (const CafuModelT *Model, const std::string &Label, const Vector3fT &Origin, const Vector3fT &Angles, float Scale=1.0f, int SeqNumber=0, float FrameOffset=0.0f, float FrameTimeScale=1.0f, bool Animate=false)
 Constructor for creating a ModelNodeT from parameters. More...
 
 ~ModelNodeT ()
 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...
 
- Public Member Functions inherited from cf::SceneGraph::GenericNodeT
virtual ~GenericNodeT ()
 The virtual destructor, so that derived classes can safely be deleted via a GenericNodeT (base class) pointer. More...
 
virtual void DrawStencilShadowVolumes (const Vector3dT &LightPos, const float LightRadius) const
 
virtual void DrawLightSourceContrib (const Vector3dT &ViewerPos, const Vector3dT &LightPos) const
 
virtual void DrawTranslucentContrib (const Vector3dT &ViewerPos) const
 
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 Public Member Functions

static ModelNodeTCreateFromFile_cw (std::istream &InFile, aux::PoolT &Pool, ModelManagerT &ModelMan)
 Named constructor. More...
 
- Static Public Member Functions inherited from cf::SceneGraph::GenericNodeT
static GenericNodeTCreateFromFile_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...
 

Constructor & Destructor Documentation

cf::SceneGraph::ModelNodeT::ModelNodeT ( const CafuModelT Model,
const std::string &  Label,
const Vector3fT Origin,
const Vector3fT Angles,
float  Scale = 1.0f,
int  SeqNumber = 0,
float  FrameOffset = 0.0f,
float  FrameTimeScale = 1.0f,
bool  Animate = false 
)

Constructor for creating a ModelNodeT from parameters.

cf::SceneGraph::ModelNodeT::~ModelNodeT ( )

The destructor.

Member Function Documentation

cf::SceneGraph::ModelNodeT * cf::SceneGraph::ModelNodeT::CreateFromFile_cw ( std::istream &  InFile,
aux::PoolT Pool,
ModelManagerT ModelMan 
)
static

Named constructor.

void cf::SceneGraph::ModelNodeT::DrawAmbientContrib ( const Vector3dT ViewerPos) const
virtual

Draws the contents of this scene node.

Parameters
ViewerPosPosition of the viewer.

Reimplemented from cf::SceneGraph::GenericNodeT.

const BoundingBox3T< double > & cf::SceneGraph::ModelNodeT::GetBoundingBox ( ) const
virtual

Returns the bounding box of the contents of this scene node.

Reimplemented from cf::SceneGraph::GenericNodeT.

bool cf::SceneGraph::ModelNodeT::IsOpaque ( ) const
inlinevirtual

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: