Changeset 2261 for trunk/packages/vizservers/vtkvis/ColorMap.h
- Timestamp:
- May 26, 2011 11:29:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/ColorMap.h
r2194 r2261 13 13 #include <cstring> 14 14 #include <vtkSmartPointer.h> 15 #include <vtkColorTransferFunction.h> 16 #include <vtkPiecewiseFunction.h> 15 17 #include <vtkLookupTable.h> 16 18 … … 84 86 85 87 const std::string& getName(); 88 86 89 vtkLookupTable *getLookupTable(); 90 91 vtkSmartPointer<vtkColorTransferFunction> getColorTransferFunction(double range[2]); 92 93 vtkSmartPointer<vtkPiecewiseFunction> getOpacityTransferFunction(double range[2]); 87 94 88 95 void setNumberOfTableEntries(int numEntries); … … 96 103 void clear(); 97 104 98 static ColorMap* createDefault(); 105 static ColorMap *getDefault(); 106 static ColorMap *getVolumeDefault(); 99 107 100 108 private: 109 static ColorMap *_default; 110 static ColorMap *_volumeDefault; 111 101 112 ColorMap(); 102 113 … … 109 120 bool _needsBuild; 110 121 int _numTableEntries; 122 vtkSmartPointer<vtkColorTransferFunction> _colorTF; 123 vtkSmartPointer<vtkPiecewiseFunction> _opacityTF; 111 124 vtkSmartPointer<vtkLookupTable> _lookupTable; 112 125 };
Note: See TracChangeset
for help on using the changeset viewer.