vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MotionTrailTriangulator Class Reference

#include <MTTriangulator.h>

Inheritance diagram for MotionTrailTriangulator:

Public Member Functions

 MotionTrailTriangulator (osg::ref_ptr< MTBrush > br)
 
 ~MotionTrailTriangulator ()
 
void interpolateVec3 (std::vector< osg::Vec3 > *controlPoints, std::vector< osg::Vec3 > *interpolatedPoints, PoAInterpolationType type, bool closed, int p_steps)
 Interpolate set of Vec3 points. More...
 
osg::Vec4 highlightColour (osg::Vec4 col)
 Change colour of MotionTrail. More...
 
void interpolate (std::vector< ref_ptr_DAControlPoint > *controlPoints, std::vector< osg::Vec3 > *interpolatedPoints, std::vector< double > *tvalues=NULL, int p_steps=0, bool lengthOptimization=false, bool closed=false)
 Create set of interpolated points from set of control points. More...
 
void interpolateCrossSection ()
 
void interpolateCrossSection (MTBrush *brush, std::vector< osg::Vec3 > *interpolatedPoints, std::vector< osg::Vec3 > *interpolatedNormals)
 
bool getHighLighting ()
 
void setHighLighting (bool high)
 
void setUseFrenetFrame (bool frenet)
 
void triangulate (std::vector< ref_ptr_DAControlPoint > *controlPoints)
 
osg::Vec3 catmullRomInterpolation (double t, osg::Vec3 p0, osg::Vec3 p1, osg::Vec3 p2, osg::Vec3 p3)
 
osg::Vec3 derivedCRI (double t, osg::Vec3 p0, osg::Vec3 p1, osg::Vec3 p2, osg::Vec3 p3)
 
osg::Vec3 doubleDerivedCRI (double t, osg::Vec3 p0, osg::Vec3 p1, osg::Vec3 p2, osg::Vec3 p3)
 
osg::Vec3 tripleDerivedCRI (double t, osg::Vec3 p0, osg::Vec3 p1, osg::Vec3 p2, osg::Vec3 p3)
 

Constructor & Destructor Documentation

MotionTrailTriangulator::MotionTrailTriangulator ( osg::ref_ptr< MTBrush br)
MotionTrailTriangulator::~MotionTrailTriangulator ( )

Member Function Documentation

osg::Vec3 MotionTrailTriangulator::catmullRomInterpolation ( double  t,
osg::Vec3  p0,
osg::Vec3  p1,
osg::Vec3  p2,
osg::Vec3  p3 
)
osg::Vec3 MotionTrailTriangulator::derivedCRI ( double  t,
osg::Vec3  p0,
osg::Vec3  p1,
osg::Vec3  p2,
osg::Vec3  p3 
)
osg::Vec3 MotionTrailTriangulator::doubleDerivedCRI ( double  t,
osg::Vec3  p0,
osg::Vec3  p1,
osg::Vec3  p2,
osg::Vec3  p3 
)
bool MotionTrailTriangulator::getHighLighting ( )
inline
osg::Vec4 MotionTrailTriangulator::highlightColour ( osg::Vec4  col)

Change colour of MotionTrail.

void MotionTrailTriangulator::interpolate ( std::vector< ref_ptr_DAControlPoint > *  controlPoints,
std::vector< osg::Vec3 > *  interpolatedPoints,
std::vector< double > *  tvalues = NULL,
int  p_steps = 0,
bool  lengthOptimization = false,
bool  closed = false 
)

Create set of interpolated points from set of control points.

void MotionTrailTriangulator::interpolateCrossSection ( )
inline
void MotionTrailTriangulator::interpolateCrossSection ( MTBrush brush,
std::vector< osg::Vec3 > *  interpolatedPoints,
std::vector< osg::Vec3 > *  interpolatedNormals 
)
void MotionTrailTriangulator::interpolateVec3 ( std::vector< osg::Vec3 > *  controlPoints,
std::vector< osg::Vec3 > *  interpolatedPoints,
PoAInterpolationType  type,
bool  closed,
int  p_steps 
)

Interpolate set of Vec3 points.

void MotionTrailTriangulator::setHighLighting ( bool  high)
inline
void MotionTrailTriangulator::setUseFrenetFrame ( bool  frenet)
inline
void MotionTrailTriangulator::triangulate ( std::vector< ref_ptr_DAControlPoint > *  controlPoints)
osg::Vec3 MotionTrailTriangulator::tripleDerivedCRI ( double  t,
osg::Vec3  p0,
osg::Vec3  p1,
osg::Vec3  p2,
osg::Vec3  p3 
)

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