Ignore:
Timestamp:
May 26, 2011 11:29:27 PM (13 years ago)
Author:
ldelgass
Message:

Add GPU volume rendering support to vtkvis render server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/ColorMap.h

    r2194 r2261  
    1313#include <cstring>
    1414#include <vtkSmartPointer.h>
     15#include <vtkColorTransferFunction.h>
     16#include <vtkPiecewiseFunction.h>
    1517#include <vtkLookupTable.h>
    1618
     
    8486
    8587    const std::string& getName();
     88
    8689    vtkLookupTable *getLookupTable();
     90
     91    vtkSmartPointer<vtkColorTransferFunction> getColorTransferFunction(double range[2]);
     92
     93    vtkSmartPointer<vtkPiecewiseFunction> getOpacityTransferFunction(double range[2]);
    8794
    8895    void setNumberOfTableEntries(int numEntries);
     
    96103    void clear();
    97104
    98     static ColorMap* createDefault();
     105    static ColorMap *getDefault();
     106    static ColorMap *getVolumeDefault();
    99107
    100108private:
     109    static ColorMap *_default;
     110    static ColorMap *_volumeDefault;
     111
    101112    ColorMap();
    102113
     
    109120    bool _needsBuild;
    110121    int _numTableEntries;
     122    vtkSmartPointer<vtkColorTransferFunction> _colorTF;
     123    vtkSmartPointer<vtkPiecewiseFunction> _opacityTF;
    111124    vtkSmartPointer<vtkLookupTable> _lookupTable;
    112125};
Note: See TracChangeset for help on using the changeset viewer.