#include <ivf/IvfComposite.h>
Inheritance diagram for CIvfComposite:
Public Member Functions | |
CIvfComposite () | |
virtual | ~CIvfComposite () |
IvfClassInfo ("CIvfComposite", CIvfShape) | |
virtual void | refresh () |
void | setUseReference (bool flag) |
void | setRenderInterval (int interval) |
void | setHighlightChildren (THighlightState state) |
void | setHighlight (THighlightState state) |
void | setHighlightComposite (THighlightState state) |
void | setSelectChildren (TSelectState state) |
void | refreshChildren () |
void | deleteAll () |
virtual CIvfShape * | removeChild (int index) |
virtual CIvfShape * | removeShape (CIvfShape *removeShape) |
virtual void | addChild (CIvfShape *shape) |
virtual void | deleteChild (int index) |
CIvfShape * | getChild (int index) |
void | clear () |
int | getSize () |
void | updateBoundingSphere () |
CIvfShape * | findShape (const char *name) |
Protected Member Functions | |
void | compositeRemove (CIvfComposite *composite, CIvfShape *deleteChild) |
virtual void | createGeometry () |
CIvfComposite implements an shape consisting of multiple child objects. Example:
void CExampleWindow::onInit(int width, int heigth) { . . m_scene = new CIvfComposite(); CIvfSphere* sphere = new CIvfSphere(); sphere->setPosition(3.0, 0.0, 0.0); CIvfCube* cube = new CIvfCube(); cube->setPosition(-3.0, 0.0, 0.0); m_scene->addChild(sphere); m_scene->addChild(cube); . . . } . . . void CExampleWindow::onRender() { . . m_scene->render(); . . } *
ac3dreader.cpp, actionctl.cpp, advgeom.cpp, controllers.cpp, culling.cpp, extrusion.cpp, lighting.cpp, lod.cpp, placement.cpp, robot.cpp, selection.cpp, and textures.cpp.
Definition at line 77 of file IvfComposite.h.
|
CIvfComposite constructor. |
|
CIvfComposite destructor. |
|
Add child Adds a CIvfShape object to the composite object.
Reimplemented in CIvfCulledComposite, CIvfSelectComposite, and CIvfUIComposite. |
|
Clear composite object Removes all object references without deleting objects. If object reference counting is used all objects are dereferenced before being removed. |
|
Forces an object recalculation. Reimplemented from CIvfShape. Reimplemented in CIvfBillboard, CIvfCulledComposite, CIvfCursor, CIvfLightComposite, CIvfOldScene, CIvfSelectComposite, and CIvfSwitch. |
|
Deletes all child objects Deletes all child objects if they are unreferenced. |
|
Delete child Deletes child at index. To be deleted the child object must be unreferenced.
Reimplemented in CIvfSelectComposite. |
|
Finds a named shape This method recursively searches the composite for a shape with a given name. This name is assigned using the setName() method. This function is often used in conjunction with the AC3D file reader which assigns names to each shape. |
|
Return child Returns a reference to the child at a given position.
|
|
Returns the number of objects in the composite object. |
|
Force object refresh Reimplemented from CIvfShape. |
|
Refreshes all children |
|
Removes child Removes specified child at index dereferences it and returns a reference.
Reimplemented in CIvfSelectComposite. |
|
Removes child shape Remove specified CIvfShape instance, dereferences it and returns a reference.
Reimplemented in CIvfSelectComposite. |
|
Set the highlight state of the child objects. Loops through the child objects and calls their setHighlight() methods.
Reimplemented in CIvfUIComposite. |
|
Set the highlight state of the child objects. Loops through the child objects and calls their setHighlight() methods.
|
|
Set rendering interval
|
|
Set the select state of the child objects. Loops through the child objects and class their setSelect() methods.
|
|
Determines if objects should be referenced. If set to true child object reference counting is to be used. If a child object is not referenced when it has been dereferenced by CIvfComposite it is deleted. If this property is set to false CIvfComposite does not reference its child objects. |
|
Updates bounding sphere Upates the radius of the assigned bounding sphere, if any. Reimplemented from CIvfObject. |