Rasterfarm-SDK
|
ADT class for creating drawable objects and scene-graphs. More...
#include <geometricbase.h>
Public Member Functions | |
GeometricBase (Shape::Geometry *pGeometry) | |
operator Shape::Geometry * () const | |
virtual | ~GeometricBase () |
virtual void | initialize (Scene *pScene, bool addObjectToScene) |
void | addScene (Scene *pScene) |
void | removeScene (Scene *pScene) |
const Application::SceneList & | getScene () |
const Surface::MaterialList & | getMaterialList () |
bool | hasTransparency () |
bool | hasMaterial (Surface::Material *pMaterial) |
virtual void | addMaterial (Surface::Material *pMaterial) |
template<class C > | |
C * | getMaterial () |
void | removeMaterial (Surface::Material *pMaterial) |
Shape::Geometry * | getGeometry () const |
virtual Primitive3D::AABoundingBox | getAABoundingBox () const |
float | getBoundingRadius () const |
Protected Attributes | |
Surface::MaterialList | pMaterial |
Friends | |
class | Engine::Application |
class | Surface::Material |
class | Surface::Material::Initializer |
ADT class for creating drawable objects and scene-graphs.
GeometricBase::GeometricBase | ( | Shape::Geometry * | pGeometry | ) |
Constructor.
pParent | The parent scene-graph in which this object resides. |
The | number of Geometries. |
|
virtual |
Destructor.
|
virtual |
void GeometricBase::addScene | ( | Scene * | pScene | ) |
|
virtual |
float GeometricBase::getBoundingRadius | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool GeometricBase::hasMaterial | ( | Surface::Material * | pMaterial | ) |
bool GeometricBase::hasTransparency | ( | ) |
|
virtual |
|
inline |
void GeometricBase::removeMaterial | ( | Surface::Material * | pMaterial | ) |
Pointer | to the Material. |
The | index of the mesh or element-range list(triangles) |
void GeometricBase::removeScene | ( | Scene * | pScene | ) |
|
friend |
|
friend |
|
friend |
|
protected |
An array of Materials, one for each mesh.