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

SShape Class Reference

#include <Silhouette.h>

List of all members.

Detailed Description

Class to define a feature shape. It is the gathering of feature elements from an identified input shape

Public Member Functions

 SShape ()
 SShape (SShape &iBrother)
virtual SShapedupplicate ()
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 Materialmaterial (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

Constructor & Destructor Documentation

SShape  )  [inline]

Default constructor

SShape SShape iBrother  )  [inline]

Copy constructor

virtual ~SShape  )  [inline, virtual]


Clear the chains list

Member Function Documentation

void AddEdge FEdge iEdge  )  [inline]

Adds a FEdge to the list of FEdges.

void AddNewVertex SVertex iv  )  [inline]

Adds a SVertex to the list of SVertex of this Shape. The SShape attribute of the SVertex is also set to 'this'.

const BBox<Vec3r>& bbox  )  [inline]

Returns the bounding box of the shape.

void ComputeBBox  )  [inline]

Compute the bbox of the sshape

virtual SShape* dupplicate  )  [inline, virtual]

Cloning method.

vector<FEdge*>& GetEdgeList  )  [inline]

Returns the list of FEdges of the Shape.

Id getId  )  const [inline]

Returns the Id of the Shape.

vector<SVertex*>& GetVertexList  )  [inline]

Returns the list of SVertex 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 SetBBox const BBox< Vec3r > &  iBBox  )  [inline]

Sets the Bounding Box of the Shape

void SetId Id  id  )  [inline]

Sets the Id of the shape.

void SetMaterials const vector< Material > &  iMaterials  )  [inline]

Sets the list of materials for the shape

Member Data Documentation

void* userdata

A field that can be used by the user to store any data. This field must be reseted afterwards using ResetUserData().

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