Ignore:
Timestamp:
Mar 14, 2012, 1:14:22 AM (13 years ago)
Author:
ldelgass
Message:

Minor, mostly formatting changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/VolumeInterpolator.h

    r2798 r2853  
    11/* -*- 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>
    46
    57#include "Volume.h"
    68
    7 #include <vector>
     9class VolumeInterpolator
     10{
     11public :
     12    VolumeInterpolator();
    813
    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
     36private:
     37    Volume *_volume;
    1138
    1239    std::vector<Volume*> _volumes;
     
    1946    unsigned int _referenceOfVolume;
    2047    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();
    3648};
    3749
     
    5668}
    5769
    58 //inline Volume* VolumeInterpolator::getVolume()
    59 //{
    60 //    return _volume;
    61 //    //return _volumes[0];
    62 //}
    6370#endif
    6471
Note: See TracChangeset for help on using the changeset viewer.