Last change
on this file since 4587 was
3630,
checked in by ldelgass, 11 years ago
|
Nanovis refactoring to fix problems with scaling and multiple results.
Do rendering in world space to properly place and scale multiple data sets.
Also fix flows to reduce resets of animations. More work toward removing
Cg dependency. Fix panning to convert viewport coords to world coords.
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * Copyright (C) 2004-2013 HUBzero Foundation, LLC |
---|
4 | * |
---|
5 | */ |
---|
6 | #ifndef NV_VOLUME_INTERPOLATOR_H |
---|
7 | #define NV_VOLUME_INTERPOLATOR_H |
---|
8 | |
---|
9 | #include <vector> |
---|
10 | |
---|
11 | #include "Volume.h" |
---|
12 | |
---|
13 | namespace nv { |
---|
14 | |
---|
15 | class VolumeInterpolator |
---|
16 | { |
---|
17 | public : |
---|
18 | VolumeInterpolator(); |
---|
19 | |
---|
20 | void addVolume(Volume *vol); |
---|
21 | |
---|
22 | void clearAll(); |
---|
23 | |
---|
24 | void start(); |
---|
25 | |
---|
26 | Volume *update(float fraction); |
---|
27 | |
---|
28 | void stop(); |
---|
29 | |
---|
30 | void computeKeys(float fraction, int count, float *interp, int *key1, int *key2); |
---|
31 | |
---|
32 | bool isStarted() const; |
---|
33 | |
---|
34 | double getInterval() const; |
---|
35 | |
---|
36 | double getStartTime() const; |
---|
37 | |
---|
38 | Volume *getVolume(); |
---|
39 | |
---|
40 | private: |
---|
41 | Volume *_volume; |
---|
42 | std::vector<Volume *> _volumes; |
---|
43 | |
---|
44 | double _interval; |
---|
45 | bool _started; |
---|
46 | unsigned int _numBytes; |
---|
47 | unsigned int _dataCount; |
---|
48 | unsigned int _numComponents; |
---|
49 | double _startTime; |
---|
50 | }; |
---|
51 | |
---|
52 | inline bool VolumeInterpolator::isStarted() const |
---|
53 | { |
---|
54 | return _started; |
---|
55 | } |
---|
56 | |
---|
57 | inline double VolumeInterpolator::getStartTime() const |
---|
58 | { |
---|
59 | return _startTime; |
---|
60 | } |
---|
61 | |
---|
62 | inline double VolumeInterpolator::getInterval() const |
---|
63 | { |
---|
64 | return _interval; |
---|
65 | } |
---|
66 | |
---|
67 | } |
---|
68 | |
---|
69 | #endif |
---|
70 | |
---|
Note: See
TracBrowser
for help on using the repository browser.