libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moMultipleCurve2< Real > Class Template Referenceabstract

#include <moMathCurve.h>

Inheritance diagram for moMultipleCurve2< Real >:
moCurve2< Real > moAbstract

Public Member Functions

 moMultipleCurve2 (int iSegments, Real *afTime)
 
virtual ~moMultipleCurve2 ()
 
int GetSegments () const
 
const Real * GetTimes () const
 
virtual Real GetLength (Real fT0, Real fT1) const
 
virtual Real GetTime (Real fLength, int iIterations=32, Real fTolerance=(Real) 1e-06) const
 
virtual Real GetVariation (Real fT0, Real fT1, const moVector2< Real > *pkP0=0, const moVector2< Real > *pkP1=0) const
 
- Public Member Functions inherited from moCurve2< Real >
 moCurve2 (Real fTMin, Real fTMax)
 
virtual ~moCurve2 ()
 
Real GetMinTime () const
 
Real GetMaxTime () const
 
void SetTimeInterval (Real fTMin, Real fTMax)
 
virtual moVector2< Real > GetPosition (Real fTime) const =0
 
virtual moVector2< Real > GetFirstDerivative (Real fTime) const =0
 
virtual moVector2< Real > GetSecondDerivative (Real fTime) const =0
 
virtual moVector2< Real > GetThirdDerivative (Real fTime) const =0
 
Real GetSpeed (Real fTime) const
 
Real GetTotalLength () const
 
moVector2< Real > GetTangent (Real fTime) const
 
moVector2< Real > GetNormal (Real fTime) const
 
void GetFrame (Real fTime, moVector2< Real > &rkPosition, moVector2< Real > &rkTangent, moVector2< Real > &rkNormal) const
 
Real GetCurvature (Real fTime) const
 
void SubdivideByTime (int iNumPoints, moVector2< Real > *&rakPoint) const
 
void SubdivideByLength (int iNumPoints, moVector2< Real > *&rakPoint) const
 
void SubdivideByVariation (Real fMinVariation, int iMaxLevel, int &riNumPoints, moVector2< Real > *&rakPoint) const
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Protected Member Functions

void GetKeyInfo (Real fTime, int &riKey, Real &rfDt) const
 
void InitializeLength () const
 
virtual Real GetSpeedKey (int iKey, Real fTime) const =0
 
virtual Real GetLengthKey (int iKey, Real fT0, Real fT1) const =0
 
virtual Real GetVariationKey (int iKey, Real fT0, Real fT1, const moVector2< Real > &rkA, const moVector2< Real > &rkB) const =0
 
- Protected Member Functions inherited from moCurve2< Real >
void SubdivideByVariation (Real fT0, const moVector2< Real > &rkP0, Real fT1, const moVector2< Real > &rkP1, Real fMinVariation, int iLevel, int &riNumPoints, PointList *&rpkList) const
 

Static Protected Member Functions

static Real GetSpeedWithData (Real fTime, void *pvData)
 

Protected Attributes

int m_iSegments
 
Real * m_afTime
 
Real * m_afLength
 
Real * m_afAccumLength
 
- Protected Attributes inherited from moCurve2< Real >
Real m_fTMin
 
Real m_fTMax
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

template<class Real>
class moMultipleCurve2< Real >

Definition at line 363 of file moMathCurve.h.

Constructor & Destructor Documentation

template<class Real >
moMultipleCurve2< Real >::moMultipleCurve2 ( int  iSegments,
Real *  afTime 
)
inline

Definition at line 368 of file moMathCurve.h.

template<class Real >
virtual moMultipleCurve2< Real >::~moMultipleCurve2 ( )
inline

Definition at line 375 of file moMathCurve.h.

Member Function Documentation

template<class Real >
void moMultipleCurve2< Real >::GetKeyInfo ( Real  fTime,
int &  riKey,
Real &  rfDt 
) const
inlineprotected

Definition at line 566 of file moMathCurve.h.

template<class Real >
virtual Real moMultipleCurve2< Real >::GetLength ( Real  fT0,
Real  fT1 
) const
inlinevirtual

Implements moCurve2< Real >.

Definition at line 390 of file moMathCurve.h.

template<class Real >
virtual Real moMultipleCurve2< Real >::GetLengthKey ( int  iKey,
Real  fT0,
Real  fT1 
) const
protectedpure virtual
template<class Real >
int moMultipleCurve2< Real >::GetSegments ( ) const
inline

Definition at line 382 of file moMathCurve.h.

template<class Real >
virtual Real moMultipleCurve2< Real >::GetSpeedKey ( int  iKey,
Real  fTime 
) const
protectedpure virtual
template<class Real >
static Real moMultipleCurve2< Real >::GetSpeedWithData ( Real  fTime,
void *  pvData 
)
inlinestaticprotected

Definition at line 615 of file moMathCurve.h.

template<class Real >
virtual Real moMultipleCurve2< Real >::GetTime ( Real  fLength,
int  iIterations = 32,
Real  fTolerance = (Real)1e-06 
) const
inlinevirtual

Implements moCurve2< Real >.

Definition at line 429 of file moMathCurve.h.

template<class Real >
const Real* moMultipleCurve2< Real >::GetTimes ( ) const
inline

Definition at line 385 of file moMathCurve.h.

template<class Real >
virtual Real moMultipleCurve2< Real >::GetVariation ( Real  fT0,
Real  fT1,
const moVector2< Real > *  pkP0 = 0,
const moVector2< Real > *  pkP1 = 0 
) const
inlinevirtual

Implements moCurve2< Real >.

Definition at line 495 of file moMathCurve.h.

template<class Real >
virtual Real moMultipleCurve2< Real >::GetVariationKey ( int  iKey,
Real  fT0,
Real  fT1,
const moVector2< Real > &  rkA,
const moVector2< Real > &  rkB 
) const
protectedpure virtual
template<class Real >
void moMultipleCurve2< Real >::InitializeLength ( ) const
inlineprotected

Definition at line 591 of file moMathCurve.h.

Member Data Documentation

template<class Real >
Real* moMultipleCurve2< Real >::m_afAccumLength
mutableprotected

Definition at line 564 of file moMathCurve.h.

template<class Real >
Real* moMultipleCurve2< Real >::m_afLength
mutableprotected

Definition at line 563 of file moMathCurve.h.

template<class Real >
Real* moMultipleCurve2< Real >::m_afTime
protected

Definition at line 556 of file moMathCurve.h.

template<class Real >
int moMultipleCurve2< Real >::m_iSegments
protected

Definition at line 555 of file moMathCurve.h.


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