#include <nurbs.h>
Classes |
|
struct | ChordLength |
Public Member Functions |
|
NURBSCurve (int iDegree=2, bool bFalloff=false) | |
~NURBSCurve (void) | |
bool | operator== (const NURBSCurve &) const throw () |
bool | operator!= (const NURBSCurve &v) const throw () |
void | SetVisible (bool bVisible) |
Sets the node visibility Should be
overridden in derived classes. |
|
bool | Visible (void) |
bool | AddCP (const Vector &v, int iIndex=-1) |
void | RemoveCP (unsigned int iIndex) |
void | MoveCP (unsigned int iIndex, const Vector &v) |
void | RecalcKnots (void) |
int | GetDegree (void) |
void | SetDegree (int iDegree) |
Matrix | GetMatrix (void) |
void | Display (bool bScreen=true) |
void | ProjectPoint (const Vector &vOrig, float fGuess, float &u, Vector &vProjected, float fMin=0.001f, float fMax=0.001f, int iMaxTry=100) const |
void | BasisFunction (float u, int i, Store< float > &N) const |
void | DeriveBasisFunction (int n, float u, int span, Store< Store< float > > &aDerF) const |
int | FindSpan (float u) const |
void | DeriveAt (float u, int iDeg, Store< Vector > &aDerivs) const |
float | GetMaxParam (void) const |
Vector | operator() (float u) const |
void | Serialize (Stream &s) |
Serializes the node. |
|
Vector | TransformToWorld (const Vector &v) |
Vector | TransformToLocal (const Vector &v) |
NURBSCurve & | operator= (const NURBSCurve &c) |
void | PrecalculateValues (void) |
void | CalculateChordLengths (void) |
float | GetChordPos (float fLength) |
void | Close (void) |
Public Attributes |
|
DECLARE_CLASS | |
int | m_iCPs |
int | m_iSelectedCP |
bool | m_bEdited |
bool | m_bVisible |
bool | m_bClosed |
bool | m_bPrecalculated |
float | m_fTotalLength |
float | m_fPosX |
float | m_fPosY |
float | m_fAngle |
float | m_fScale |
QString | m_sName |
Store< Vector > | m_aCPs |
Store< float > | m_aKnots |
Store< float > | m_aPrecalc |
NURBSCurve * | m_pFalloff |
Protected Member Functions |
|
void | CalculateChordLength (float fStart, float fEnd) |
Protected Attributes |
|
int | m_iDegree |
Store< ChordLength > | m_aChordLengths |
NURBSCurve | ( | int | iDegree = 2 , |
bool | bFalloff =
false |
||
) |
~NURBSCurve | ( | void | ) |
bool operator== | ( | const NURBSCurve & | ) | const throw () [inline] |
bool operator!= | ( | const NURBSCurve & | v | ) | const throw () [inline] |
void SetVisible | ( | bool | b | ) | [inline, virtual] |
bool Visible | ( | void | ) | [inline] |
bool AddCP | ( | const Vector & | v, |
int | iIndex = -1 |
||
) |
void RemoveCP | ( | unsigned int | iIndex | ) |
void MoveCP | ( | unsigned int | iIndex, |
const Vector & | v | ||
) |
void RecalcKnots | ( | void | ) |
int GetDegree | ( | void | ) | [inline] |
void SetDegree | ( | int | iDegree | ) |
Matrix GetMatrix | ( | void | ) |
void Display | ( | bool | bScreen = true |
) |
void BasisFunction | ( | float | u, |
int | i, | ||
Store< float > & | N | ||
) | const |
int FindSpan | ( | float | u | ) | const |
float GetMaxParam | ( | void | ) | const [inline] |
Vector operator() | ( | float | u | ) | const [inline] |
Definition at line 62 of file nurbs.h.
{ Matrix m = GetMatrix(); return m.Transform( v ); }; inline Vector TransformToLocal( const Vector &v ) { Matrix m = GetMatrix(); m.Invert(); return m.Transform( v ); }; inline NURBSCurve &operator =( const NURBSCurve &c )
void Serialize | ( | Stream & | s | ) | [virtual] |
Serializes the node.
Override this function in your plug-in to save and load attributes and custom data with the Mudbox file.
Reimplemented from TreeNode.
NURBSCurve& operator= | ( | const NURBSCurve & | c | ) | [inline] |
void PrecalculateValues | ( | void | ) |
void CalculateChordLengths | ( | void | ) |
float GetChordPos | ( | float | fLength | ) |
void Close | ( | void | ) |
void CalculateChordLength | ( | float | fStart, |
float | fEnd | ||
) | [protected] |
int m_iCPs |
int m_iSelectedCP |
bool m_bEdited |
bool m_bVisible |
bool m_bClosed |
bool m_bPrecalculated |
float m_fTotalLength |
float m_fPosX |
float m_fPosY |
float m_fAngle |
float m_fScale |
QString m_sName |
Store<float> m_aPrecalc |
int
m_iDegree [protected] |
Store<ChordLength>
m_aChordLengths [protected] |