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. |
XML:
<OctTreeComponent minPolysPerNode=""> <!-- Properties --> </OctTreeComponent>
Definition at line 33 of file OctTreeComponent.h.
OctTreeComponent::OctTreeComponent | ( | Entity * | parent, | |
s32 | minPolysPerNode = 256 | |||
) |
Constructor (default).
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.
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.
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. |
Definition at line 39 of file OctTreeComponent.cpp.
OctTreeComponent::OctTreeComponent | ( | Entity * | parent, | |
IAnimatedMesh * | mesh, | |||
s32 | minPolysPerNode = 512 | |||
) |
Constructor.
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. |
Definition at line 47 of file OctTreeComponent.cpp.
OctTreeComponent::~OctTreeComponent | ( | ) |
void OctTreeComponent::onMesh | ( | void * | p | ) |
Responds to changes of the mesh attached to this component.
Reimplemented from MeshComponent.
Definition at line 145 of file OctTreeComponent.cpp.
bool OctTreeComponent::parseXML | ( | IXMLReader * | file, | |
Entity * | entity | |||
) | [static] |
Parses for a OctTreeComponent.
Reimplemented from MeshComponent.
Definition at line 163 of file OctTreeComponent.cpp.
void OctTreeComponent::setMesh | ( | IMesh * | mesh | ) | [virtual] |
Sets a new mesh to display.
mesh | Pointer to the loaded animated mesh to be displayed. |
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.