Public Member Functions

xl7::direct3d::scene::Node Class Reference

#include <Node.h>

List of all members.

Public Member Functions

 Node (void)
virtual ~Node (void)
const SceneGraphGetSceneGraph () const
const NodeGetParentNode () const
SceneGraphGetSceneGraph ()
NodeGetParentNode ()
const ml7::Matrix4x4GetProjection () const
const ml7::Matrix4x4GetView () const
const ml7::Matrix4x4GetTransform () const
textures::BaseTextureGetTexture (unsigned stage) const
const materials::MaterialGetMaterial () const
const lights::LightGetLight () const
void SetProjection (const ml7::Matrix4x4 *projection)
void SetView (const ml7::Matrix4x4 *view)
void SetTransform (const ml7::Matrix4x4 *transform)
void SetTexture (unsigned stage, textures::BaseTexture *texture)
void SetMaterial (const materials::Material *material)
void SetLight (const lights::Light *light)
unsigned GetMaxTextures () const
const ml7::Matrix4x4GetDerivedProjection () const
const ml7::Matrix4x4GetDerivedView () const
const ml7::Matrix4x4GetDerivedTransform () const
textures::BaseTextureGetDerivedTexture (unsigned stage) const
const materials::MaterialGetDerivedMaterial () const
const lights::LightGetDerivedLight () const
const meshes::MeshGetMesh () const
unsigned GetMeshStartIndex () const
unsigned GetMeshIndexCount () const
void SetMesh (const meshes::Mesh *mesh)
void SetMeshStartIndex (unsigned mesh_start_index)
void SetMeshIndexCount (unsigned mesh_index_count)
unsigned GetNodeCount () const
NodeGetNodeAt (unsigned index) const
bool ContainsNode (const Node *node) const
void AddNode (Node *node)
void RemoveNode (Node *node)

Constructor & Destructor Documentation

xl7::direct3d::scene::Node::Node ( void   ) 

Default constructor.

xl7::direct3d::scene::Node::~Node ( void   )  [virtual]

Destructor.


Member Function Documentation

void xl7::direct3d::scene::Node::AddNode ( Node node  ) 

Adds the given node as child node.

bool xl7::direct3d::scene::Node::ContainsNode ( const Node node  )  const

Checks whether the given node is a child node.

const lights::Light* xl7::direct3d::scene::Node::GetDerivedLight (  )  const [inline]

Returns the derived light.

const materials::Material* xl7::direct3d::scene::Node::GetDerivedMaterial (  )  const [inline]

Returns the derived material.

const ml7::Matrix4x4* xl7::direct3d::scene::Node::GetDerivedProjection (  )  const [inline]

Returns the derived projection matrix.

textures::BaseTexture * xl7::direct3d::scene::Node::GetDerivedTexture ( unsigned  stage  )  const

Returns the derived texture of the given stage.

const ml7::Matrix4x4* xl7::direct3d::scene::Node::GetDerivedTransform (  )  const [inline]

The derived world transform matrix.

const ml7::Matrix4x4* xl7::direct3d::scene::Node::GetDerivedView (  )  const [inline]

Returns the derived view matrix.

const lights::Light* xl7::direct3d::scene::Node::GetLight (  )  const [inline]

Returns the light (or NULL).

const materials::Material* xl7::direct3d::scene::Node::GetMaterial (  )  const [inline]

Returns the material (or NULL).

unsigned xl7::direct3d::scene::Node::GetMaxTextures (  )  const [inline]

Returns the maximum number of texture stages.

const meshes::Mesh* xl7::direct3d::scene::Node::GetMesh (  )  const [inline]

Returns the mesh (or NULL).

unsigned xl7::direct3d::scene::Node::GetMeshIndexCount (  )  const [inline]

Returns the number of indices of the mesh section.

unsigned xl7::direct3d::scene::Node::GetMeshStartIndex (  )  const [inline]

Returns the first index of the mesh section.

Node * xl7::direct3d::scene::Node::GetNodeAt ( unsigned  index  )  const

Returns the child node with the given index.

unsigned xl7::direct3d::scene::Node::GetNodeCount (  )  const

Returns the number of child nodes.

Node* xl7::direct3d::scene::Node::GetParentNode (  )  [inline]

Returns the parent node. (Or null, if this node yet has to be added to a parent node or is the scene's root node itself.)

const Node* xl7::direct3d::scene::Node::GetParentNode (  )  const [inline]

Returns the parent node. (Or null, if this node yet has to be added to a parent node or is the scene's root node itself.)

const ml7::Matrix4x4* xl7::direct3d::scene::Node::GetProjection (  )  const [inline]

Returns the projection matrix (or NULL).

const SceneGraph* xl7::direct3d::scene::Node::GetSceneGraph (  )  const [inline]

Returns the superior scene graph. (Or null, if this node yet has to be added to a scene gtaph or to a parent node which on its part is a component of a scene graph.)

SceneGraph* xl7::direct3d::scene::Node::GetSceneGraph (  )  [inline]

Returns the superior scene graph. (Or null, if this node yet has to be added to a scene graph or to a parent node which on its part is a component of a scene graph.)

textures::BaseTexture * xl7::direct3d::scene::Node::GetTexture ( unsigned  stage  )  const

Returns the texture of the given stage.

const ml7::Matrix4x4* xl7::direct3d::scene::Node::GetTransform (  )  const [inline]

Returns the world transform matrix (or NULL).

const ml7::Matrix4x4* xl7::direct3d::scene::Node::GetView (  )  const [inline]

Returns the view matrix (or NULL).

void xl7::direct3d::scene::Node::RemoveNode ( Node node  ) 

Removes the given child node.

void xl7::direct3d::scene::Node::SetLight ( const lights::Light light  )  [inline]

Sets the light (or NULL).

void xl7::direct3d::scene::Node::SetMaterial ( const materials::Material material  )  [inline]

Sets the material (or NULL).

void xl7::direct3d::scene::Node::SetMesh ( const meshes::Mesh mesh  )  [inline]

Sets the mesh (or NULL).

void xl7::direct3d::scene::Node::SetMeshIndexCount ( unsigned  mesh_index_count  )  [inline]

Sets the number of indices of the mesh section.

void xl7::direct3d::scene::Node::SetMeshStartIndex ( unsigned  mesh_start_index  )  [inline]

Sets the first index of the mesh section.

void xl7::direct3d::scene::Node::SetProjection ( const ml7::Matrix4x4 projection  )  [inline]

Sets the projection matrix (or NULL).

void xl7::direct3d::scene::Node::SetTexture ( unsigned  stage,
textures::BaseTexture texture 
)

Sets the texture of the given stage.

void xl7::direct3d::scene::Node::SetTransform ( const ml7::Matrix4x4 transform  )  [inline]

Sets the world transform matrix (or NULL).

void xl7::direct3d::scene::Node::SetView ( const ml7::Matrix4x4 view  )  [inline]

Sets the view matrix (or NULL).


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines