Rasterfarm-SDK
Loading...
Searching...
No Matches
GeometricBase Class Reference

ADT class for creating drawable objects and scene-graphs. More...

#include <geometricbase.h>

Inheritance diagram for GeometricBase:
Node Engine::Raster::Geometric< Shape::PolygonalText > Engine::Raster::Geometric< Shape::TexturedText > Engine::Raster::Geometric< GEOMETRY > Engine::Raster::Skeletal Engine::Raster::PolygonalText Engine::Raster::TexturedText Cuboid Disk Geometry IcosahedralSphere Polygon Quad Skeletal Skeletal Triangle UVSphereGeometry WaveFront WaveFront

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::MaterialListgetMaterialList ()
 
bool hasTransparency ()
 
bool hasMaterial (Surface::Material *pMaterial)
 
virtual void addMaterial (Surface::Material *pMaterial)
 
template<class C >
C * getMaterial ()
 
void removeMaterial (Surface::Material *pMaterial)
 
Shape::GeometrygetGeometry () 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
 

Detailed Description

ADT class for creating drawable objects and scene-graphs.

Constructor & Destructor Documentation

◆ GeometricBase()

GeometricBase::GeometricBase ( Shape::Geometry * pGeometry)

Constructor.

Parameters
pParentThe parent scene-graph in which this object resides.
Thenumber of Geometries.

◆ ~GeometricBase()

virtual GeometricBase::~GeometricBase ( )
virtual

Destructor.

Member Function Documentation

◆ addMaterial()

virtual void GeometricBase::addMaterial ( Surface::Material * pMaterial)
virtual

Add a Material for this object and optionally an associated mesh. NOTE: The Material will be initialized until it has been added to a Scene for rendering.

Parameters
Pointerto the Material.
Theindex of the mesh or element-range list(triangles)

◆ addScene()

void GeometricBase::addScene ( Scene * pScene)

◆ getAABoundingBox()

virtual Primitive3D::AABoundingBox GeometricBase::getAABoundingBox ( ) const
virtual

◆ getBoundingRadius()

float GeometricBase::getBoundingRadius ( ) const

◆ getGeometry()

Shape::Geometry * GeometricBase::getGeometry ( ) const
inline

◆ getMaterial()

template<class C >
C * GeometricBase::getMaterial ( )
inline

◆ getMaterialList()

const Surface::MaterialList & GeometricBase::getMaterialList ( )
inline

◆ getScene()

const Application::SceneList & GeometricBase::getScene ( )
inline

◆ hasMaterial()

bool GeometricBase::hasMaterial ( Surface::Material * pMaterial)

◆ hasTransparency()

bool GeometricBase::hasTransparency ( )

◆ initialize()

virtual void GeometricBase::initialize ( Scene * pScene,
bool addObjectToScene )
virtual

◆ operator Shape::Geometry *()

GeometricBase::operator Shape::Geometry * ( ) const
inline

◆ removeMaterial()

void GeometricBase::removeMaterial ( Surface::Material * pMaterial)
Parameters
Pointerto the Material.
Theindex of the mesh or element-range list(triangles)

◆ removeScene()

void GeometricBase::removeScene ( Scene * pScene)

Friends And Related Symbol Documentation

◆ Engine::Application

friend class Engine::Application
friend

◆ Surface::Material

friend class Surface::Material
friend

◆ Surface::Material::Initializer

friend class Surface::Material::Initializer
friend

Member Data Documentation

◆ pMaterial

Surface::MaterialList GeometricBase::pMaterial
protected

An array of Materials, one for each mesh.


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