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
BufferedSpline.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "spline.h"
4
5
class
BufferedSpline
:
public
Spline
6
{
7
public
:
9
BufferedSpline
();
10
BufferedSpline
(
const
Vec3ArrayPtr
sampleArray);
11
13
META_DAObject
(
BufferedSpline
,
"Buffered Spline"
)
14
15
virtual
Vec3ArrayPtr
getPoints();
16
virtual
bool
isClosed
() {
return
false
; }
17
19
inline
void
setVertexArray
(
const
Vec3ArrayPtr
array);
20
inline
Vec3ArrayPtr
getVertexArray
()
const
{
return
_array
; }
21
22
protected
:
23
Vec3ArrayPtr
_array
;
24
double
_minDistance
;
25
bool
_closed
;
26
unsigned
int
_lastIndex
;
27
};
28
29
inline
void
BufferedSpline::setVertexArray
(
const
Vec3ArrayPtr
array )
30
{
31
if
(array.valid()) {
32
_dirty =
true
;
33
_array
= array;
34
_lastIndex
= 0;
35
}
36
}
37
38
typedef
osg::ref_ptr<BufferedSpline>
BufferedSplinePtr
;
src
vreckoAP
DynamicArt
BufferedSpline.h
Generated on Tue Feb 19 2013 10:23:46 for vrecko by
1.8.3.1