OctTreeComponent Class Reference

Component wrapper of Irrlicht's SceneManager function addOctTreeSceneNode(...). More...

Inheritance diagram for OctTreeComponent:

Inheritance graph
[legend]
Collaboration diagram for OctTreeComponent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 OctTreeComponent (Entity *parent, s32 minPolysPerNode=256)
 Constructor (default).
 OctTreeComponent (Entity *parent, const std::string &fileName, s32 minPolysPerNode=256)
 Constructor.
 OctTreeComponent (Entity *parent, IMesh *mesh, s32 minPolysPerNode=256)
 Constructor.
 OctTreeComponent (Entity *parent, IAnimatedMesh *mesh, s32 minPolysPerNode=512)
 Constructor.
 ~OctTreeComponent ()
 Deconstructor.
void setMesh (const std::string &fileName)
 Loads and sets a new mesh to display. fileName Filename of the mesh to load.
void setMesh (IMesh *mesh)
 Sets a new mesh to display.
void onMesh (void *p)
 Responds to changes of the mesh attached to this component.

Static Public Member Functions

static bool parseXML (IXMLReader *file, Entity *entity)
 Parses for a OctTreeComponent.


Detailed Description

Component wrapper of Irrlicht's SceneManager function addOctTreeSceneNode(...).

XML:

 <OctTreeComponent minPolysPerNode="">
    <!-- Properties -->
 </OctTreeComponent>

Definition at line 33 of file OctTreeComponent.h.


Constructor & Destructor Documentation

OctTreeComponent::OctTreeComponent ( Entity parent,
s32  minPolysPerNode = 256 
)

Constructor (default).

Parameters:
parent The parent entity to which the component should be added.
minPolysPerNode Specifies the minimal polygons contained a octree node. If a node gets less polys than this value it will not be split into smaller nodes.

Definition at line 24 of file OctTreeComponent.cpp.

OctTreeComponent::OctTreeComponent ( Entity parent,
const std::string &  fileName,
s32  minPolysPerNode = 256 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
fileName Filename of the mesh to load.
minPolysPerNode Specifies the minimal polygons contained a octree node. If a node gets less polys than this value it will not be split into smaller nodes.

Definition at line 31 of file OctTreeComponent.cpp.

OctTreeComponent::OctTreeComponent ( Entity parent,
IMesh *  mesh,
s32  minPolysPerNode = 256 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
mesh Pointer to the loaded animated mesh to be displayed.
minPolysPerNode Specifies the minimal polygons contained a octree node. If a node gets less polys than this value it will not be split into smaller nodes.
Note:
Not available in AngelScript.

Definition at line 39 of file OctTreeComponent.cpp.

OctTreeComponent::OctTreeComponent ( Entity parent,
IAnimatedMesh *  mesh,
s32  minPolysPerNode = 512 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
mesh Pointer to the loaded animated mesh to be displayed.
minPolysPerNode Specifies the minimal polygons contained a octree node. If a node gets less polys than this value it will not be split into smaller nodes.
Note:
Not available in AngelScript.

Definition at line 47 of file OctTreeComponent.cpp.

OctTreeComponent::~OctTreeComponent (  ) 

Deconstructor.

Definition at line 55 of file OctTreeComponent.cpp.


Member Function Documentation

void OctTreeComponent::onMesh ( void *  p  ) 

Responds to changes of the mesh attached to this component.

Note:
For internal use only!

Reimplemented from MeshComponent.

Definition at line 145 of file OctTreeComponent.cpp.

bool OctTreeComponent::parseXML ( IXMLReader *  file,
Entity entity 
) [static]

Parses for a OctTreeComponent.

Note:
For internal use only!

Reimplemented from MeshComponent.

Definition at line 163 of file OctTreeComponent.cpp.

void OctTreeComponent::setMesh ( IMesh *  mesh  )  [virtual]

Sets a new mesh to display.

Parameters:
mesh Pointer to the loaded animated mesh to be displayed.
Note:
Not available in AngelScript.

Reimplemented from MeshComponent.

Definition at line 121 of file OctTreeComponent.cpp.

void OctTreeComponent::setMesh ( const std::string &  fileName  )  [virtual]

Loads and sets a new mesh to display. fileName Filename of the mesh to load.

Reimplemented from MeshComponent.

Definition at line 81 of file OctTreeComponent.cpp.


The documentation for this class was generated from the following files:

Generated on Fri Aug 21 23:55:16 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8