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

virtual const csVector3 & GetCurvesCenter () const=0
 Get the center of the curves.

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

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

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

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

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

virtual iCurve * GetCurve (int idx) const=0
 Get the curve.

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

virtual csVector3 & GetCurveVertex (int i) const=0
 Get the specified curve vertex.

virtual csVector3 * GetCurveVertices () const=0
 Get the curve vertices.

virtual csVector2 & GetCurveTexel (int i) const=0
 Get the specified curve texture coordinate (texel).

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

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

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

virtual iCurve * CreateCurve ()=0
 Create a new curve for this thing.

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

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

virtual void RemoveCurves ()=0
 Delete all curves.

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

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

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).


Detailed Description

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

Main creators of instances implementing this interface:

Main ways to get pointers to this interface: Main users of this interface:

Definition at line 88 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 (    )  [pure virtual]
 

Get cosinus factor.

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

Get the curve.

virtual int iBezierFactoryState::GetCurveCount (    )  [pure virtual]
 

Get the number of curves.

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

Get the center of the curves.

virtual float iBezierFactoryState::GetCurvesScale (    )  [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 (    )  [pure virtual]
 

Get the number of curve vertices.

virtual csVector3* iBezierFactoryState::GetCurveVertices (    )  [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.18