h o m e | d o c u m e n t a t i o n | c l a s s h i e r a r c h y |
#include <Silhouette.h>
Public Member Functions | |
SShape () | |
SShape (SShape &iBrother) | |
virtual SShape * | dupplicate () |
virtual | ~SShape () |
void | AddEdge (FEdge *iEdge) |
void | AddNewVertex (SVertex *iv) |
void | SetBBox (const BBox< Vec3r > &iBBox) |
void | ComputeBBox () |
vector< SVertex * > & | GetVertexList () |
vector< FEdge * > & | GetEdgeList () |
const BBox< Vec3r > & | bbox () |
const Material & | material (unsigned i) const |
const vector< Material > & | materials () const |
Id | getId () const |
void | SetId (Id id) |
void | SetMaterials (const vector< Material > &iMaterials) |
Public Attributes | |
void * | userdata |
SShape | ( | ) | [inline] |
Default constructor
virtual ~SShape | ( | ) | [inline, virtual] |
Destructor.
Clear the chains list
virtual SShape* dupplicate | ( | ) | [inline, virtual] |
Cloning method.
void AddNewVertex | ( | SVertex * | iv | ) | [inline] |
void SetBBox | ( | const BBox< Vec3r > & | iBBox | ) | [inline] |
Sets the Bounding Box of the Shape
void ComputeBBox | ( | ) | [inline] |
Compute the bbox of the sshape
vector<FEdge*>& GetEdgeList | ( | ) | [inline] |
Returns the list of FEdges of the Shape.
const BBox<Vec3r>& bbox | ( | ) | [inline] |
Returns the bounding box of the shape.
const Material& material | ( | unsigned | i | ) | const [inline] |
Returns the ith material of the shape.
const vector<Material>& materials | ( | ) | const [inline] |
Returns the list of materials of the Shape.
void SetMaterials | ( | const vector< Material > & | iMaterials | ) | [inline] |
Sets the list of materials for the shape
void* userdata |
A field that can be used by the user to store any data. This field must be reseted afterwards using ResetUserData().