CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iBezierFactoryState Struct Reference

This is the state interface to access the internals of a bezier mesh factory. More...

#include <bezier.h>

Inheritance diagram for iBezierFactoryState:

iBase List of all members.

Public Methods

virtual void * GetPrivateObject ()=0
 @ UGLY. More...

virtual const csVector3GetCurvesCenter () const=0
 Get the center of the curves. More...

virtual void SetCurvesCenter (const csVector3 &cen)=0
 Set the center of the curves. More...

virtual float GetCurvesScale () const=0
 Get the scale of the curves. More...

virtual void SetCurvesScale (float scale)=0
 Set the scale of the curves. More...

virtual void AddCurveVertex (const csVector3 &v, const csVector2 &uv)=0
 Add a curve vertex. More...

virtual int GetCurveCount () const=0
 Get the number of curves. More...

virtual iCurveGetCurve (int idx) const=0
 Get the curve. More...

virtual int GetCurveVertexCount () const=0
 Get the number of curve vertices. More...

virtual csVector3GetCurveVertex (int i) const=0
 Get the specified curve vertex. More...

virtual csVector3GetCurveVertices () const=0
 Get the curve vertices. More...

virtual csVector2GetCurveTexel (int i) const=0
 Get the specified curve texture coordinate (texel). More...

virtual void SetCurveVertex (int idx, const csVector3 &vt)=0
 Set a curve vertex. More...

virtual void SetCurveTexel (int idx, const csVector2 &vt)=0
 Set a curve texel. More...

virtual void ClearCurveVertices ()=0
 Clear all curve vertices (and texels too). More...

virtual iCurveCreateCurve ()=0
 Create a new curve for this thing. More...

virtual int FindCurveIndex (iCurve *curve) const=0
 Find the index for a curve. Returns -1 if curve cannot be found. More...

virtual void RemoveCurve (int idx)=0
 Delete a curve given an index. More...

virtual void RemoveCurves ()=0
 Delete all curves. More...

virtual float GetCosinusFactor () const=0
 Get cosinus factor. More...

virtual void SetCosinusFactor (float cosfact)=0
 Set cosinus factor. More...

virtual void MergeTemplate (iBezierFactoryState *tpl, iMaterialWrapper *default_material=0, csVector3 *shift=0, csMatrix3 *transform=0)=0
 Add polygons and vertices from the specified thing (seen as template). More...


Detailed Description

This is the state interface to access the internals of a bezier mesh factory.

Definition at line 64 of file bezier.h.


Member Function Documentation

virtual void iBezierFactoryState::AddCurveVertex const csVector3   v,
const csVector2   uv
[pure virtual]
 

Add a curve vertex.

virtual void iBezierFactoryState::ClearCurveVertices   [pure virtual]
 

Clear all curve vertices (and texels too).

virtual iCurve* iBezierFactoryState::CreateCurve   [pure virtual]
 

Create a new curve for this thing.

virtual int iBezierFactoryState::FindCurveIndex iCurve   curve const [pure virtual]
 

Find the index for a curve. Returns -1 if curve cannot be found.

virtual float iBezierFactoryState::GetCosinusFactor   const [pure virtual]
 

Get cosinus factor.

virtual iCurve* iBezierFactoryState::GetCurve int    idx const [pure virtual]
 

Get the curve.

virtual int iBezierFactoryState::GetCurveCount   const [pure virtual]
 

Get the number of curves.

virtual const csVector3& iBezierFactoryState::GetCurvesCenter   const [pure virtual]
 

Get the center of the curves.

virtual float iBezierFactoryState::GetCurvesScale   const [pure virtual]
 

Get the scale of the curves.

virtual csVector2& iBezierFactoryState::GetCurveTexel int    i const [pure virtual]
 

Get the specified curve texture coordinate (texel).

virtual csVector3& iBezierFactoryState::GetCurveVertex int    i const [pure virtual]
 

Get the specified curve vertex.

virtual int iBezierFactoryState::GetCurveVertexCount   const [pure virtual]
 

Get the number of curve vertices.

virtual csVector3* iBezierFactoryState::GetCurveVertices   const [pure virtual]
 

Get the curve vertices.

virtual void* iBezierFactoryState::GetPrivateObject   [pure virtual]
 

@ UGLY.

@

virtual void iBezierFactoryState::MergeTemplate iBezierFactoryState *    tpl,
iMaterialWrapper   default_material = 0,
csVector3   shift = 0,
csMatrix3   transform = 0
[pure virtual]
 

Add polygons and vertices from the specified thing (seen as template).

virtual void iBezierFactoryState::RemoveCurve int    idx [pure virtual]
 

Delete a curve given an index.

virtual void iBezierFactoryState::RemoveCurves   [pure virtual]
 

Delete all curves.

virtual void iBezierFactoryState::SetCosinusFactor float    cosfact [pure virtual]
 

Set cosinus factor.

This cosinus factor controls how lighting affects the polygons relative to the angle. If no value is set here then the default is used.

virtual void iBezierFactoryState::SetCurvesCenter const csVector3   cen [pure virtual]
 

Set the center of the curves.

virtual void iBezierFactoryState::SetCurvesScale float    scale [pure virtual]
 

Set the scale of the curves.

virtual void iBezierFactoryState::SetCurveTexel int    idx,
const csVector2   vt
[pure virtual]
 

Set a curve texel.

virtual void iBezierFactoryState::SetCurveVertex int    idx,
const csVector3   vt
[pure virtual]
 

Set a curve vertex.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14