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

#include <FilletSpline.h>

Inheritance diagram for FilletSpline:

Public Member Functions

 FilletSpline (double filletRadius, unsigned int filletSteps, SplinePtr decoratedSpline)
 
 META_DAObjectDecorator (_decoratedSpline, FilletSpline,"Fillet Spline") virtual Vec3ArrayPtr getPoints()
 

Protected Member Functions

void generateAllFilletPoints (Vec3ArrayPtr result, osg::Vec3 p1, osg::Vec3 p2, osg::Vec3 p3)
 
void getFilletPoints (osg::Vec3 p1, osg::Vec3 p2, osg::Vec3 p3, osg::Vec3 &f1, osg::Vec3 &f2)
 

Protected Attributes

double _filletRadius
 
unsigned int _filletSteps
 

Detailed Description

Spline decorator

Each of origin points is replaced by two new points creating fillet with given radius. fillet is interpolated by Catmull-Rom interpolation by given interpolation steps

Constructor & Destructor Documentation

FilletSpline::FilletSpline ( double  filletRadius,
unsigned int  filletSteps,
SplinePtr  decoratedSpline 
)

Member Function Documentation

void FilletSpline::generateAllFilletPoints ( Vec3ArrayPtr  result,
osg::Vec3  p1,
osg::Vec3  p2,
osg::Vec3  p3 
)
protected
void FilletSpline::getFilletPoints ( osg::Vec3  p1,
osg::Vec3  p2,
osg::Vec3  p3,
osg::Vec3 &  f1,
osg::Vec3 &  f2 
)
protected
FilletSpline::META_DAObjectDecorator ( _decoratedSpline  ,
FilletSpline  ,
"Fillet Spline"   
)

Inherited methods

Member Data Documentation

double FilletSpline::_filletRadius
protected
unsigned int FilletSpline::_filletSteps
protected

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