vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InterpolatedSpline.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <osg\ref_ptr>
4 
5 #include "Spline.h"
6 #include "Interpolator.h"
7 
8 class InterpolatedSpline : public SplineDecorator
9 {
10 
11 public:
12  InterpolatedSpline( SplinePtr decoratedSpline );
13  InterpolatedSpline( InterpolatorPtr interpolator, unsigned int interpolationSteps, SplinePtr decoratedSpline );
14 
16  META_DAObjectDecorator(_decoratedSpline, InterpolatedSpline, "Interpolated Spline")
17 
18  virtual Vec3ArrayPtr getPoints();
19 
21  inline void setInterpolator(InterpolatorPtr interpolator);
23 
24  inline int getInterpolationSteps() const { return _interpolationSteps; }
25  inline void setInterpolationSteps(int val);
26 
27 protected:
29  unsigned int _interpolationSteps;
30 };
31 
33 {
34  dirty();
35  _interpolator = interpolator;
36 }
37 
39 {
40  dirty();
41  _interpolationSteps = val;
42 }
43 
44 typedef osg::ref_ptr<InterpolatedSpline> InterpolatedSplinePtr;