vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SmoothedSpline.h
Go to the documentation of this file.
1 #pragma once
2 #include "Spline.h"
3 
4 class SmoothedSpline : public SplineDecorator
5 {
6 
7 public:
8  SmoothedSpline(double smoothFactor, SplinePtr decoratedSpline);
9 
11  META_DAObjectDecorator(_decoratedSpline, SmoothedSpline, "Smoothed Spline")
12 
13  virtual Vec3ArrayPtr getPoints();
14 
15 protected:
16 
17  //the bigger number, the smoother curve (curve with less points)
18  double _smoothFactor;
19 };
20 
21 typedef osg::ref_ptr<SmoothedSpline> SmoothedSplinePtr;
22