vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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);
22
inline
InterpolatorPtr
getInterpolator
() {
return
_interpolator
; }
23
24
inline
int
getInterpolationSteps
()
const
{
return
_interpolationSteps
; }
25
inline
void
setInterpolationSteps
(
int
val);
26
27
protected
:
28
InterpolatorPtr
_interpolator
;
29
unsigned
int
_interpolationSteps
;
30
};
31
32
void
InterpolatedSpline::setInterpolator
(
InterpolatorPtr
interpolator )
33
{
34
dirty();
35
_interpolator
= interpolator;
36
}
37
38
void
InterpolatedSpline::setInterpolationSteps
(
int
val )
39
{
40
dirty();
41
_interpolationSteps
= val;
42
}
43
44
typedef
osg::ref_ptr<InterpolatedSpline>
InterpolatedSplinePtr
;
src
vreckoAP
DynamicArt
InterpolatedSpline.h
Generated on Tue Feb 19 2013 10:23:46 for vrecko by
1.8.3.1