Changeset 2853 for trunk/packages/vizservers/nanovis/VolumeInterpolator.h
- Timestamp:
- Mar 14, 2012, 1:14:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/VolumeInterpolator.h
r2798 r2853 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 #ifndef __VOLUME_INTERPOLATOR_H__ 3 #define __VOLUME_INTERPOLATOR_H__ 2 #ifndef VOLUME_INTERPOLATOR_H 3 #define VOLUME_INTERPOLATOR_H 4 5 #include <vector> 4 6 5 7 #include "Volume.h" 6 8 7 #include <vector> 9 class VolumeInterpolator 10 { 11 public : 12 VolumeInterpolator(); 8 13 9 class VolumeInterpolator { 10 Volume* _volume; 14 void addVolume(Volume *vol); 15 16 void clearAll(); 17 18 void start(); 19 20 Volume *update(float fraction); 21 22 void stop(); 23 24 void computeKeys(float fraction, int count, float *interp, int *key1, int *key2); 25 26 bool is_started() const; 27 28 double getInterval() const; 29 30 double getStartTime() const; 31 32 unsigned int getReferenceVolumeID() const; 33 34 Volume *getVolume(); 35 36 private: 37 Volume *_volume; 11 38 12 39 std::vector<Volume*> _volumes; … … 19 46 unsigned int _referenceOfVolume; 20 47 double _start_time; 21 22 public :23 VolumeInterpolator();24 void addVolume(Volume* vol);25 void clearAll();26 27 void start();28 Volume* update(float fraction);29 void stop();30 void computeKeys(float fraction, int count, float* interp, int* key1, int* key2);31 bool is_started() const;32 double getInterval() const;33 double getStartTime() const;34 unsigned int getReferenceVolumeID() const;35 Volume* getVolume();36 48 }; 37 49 … … 56 68 } 57 69 58 //inline Volume* VolumeInterpolator::getVolume()59 //{60 // return _volume;61 // //return _volumes[0];62 //}63 70 #endif 64 71
Note: See TracChangeset
for help on using the changeset viewer.