Changeset 3818 for trunk/packages/vizservers/vtkvis/PolyData.h
- Timestamp:
- Jul 18, 2013, 2:51:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/PolyData.h
r3774 r3818 12 12 #include <vtkPolyDataMapper.h> 13 13 #include <vtkActor.h> 14 #include <vtkLookupTable.h> 14 15 16 #include "ColorMap.h" 15 17 #include "GraphicsObject.h" 16 #include "DataSet.h"17 18 18 19 namespace VtkVis { … … 29 30 CLOUD_POINTS 30 31 }; 32 enum ColorMode { 33 COLOR_BY_SCALAR, 34 COLOR_BY_VECTOR_MAGNITUDE, 35 COLOR_BY_VECTOR_X, 36 COLOR_BY_VECTOR_Y, 37 COLOR_BY_VECTOR_Z, 38 COLOR_CONSTANT 39 }; 31 40 32 41 PolyData(); … … 38 47 } 39 48 49 virtual void setDataSet(DataSet *dataSet, 50 Renderer *renderer); 51 40 52 virtual void setClippingPlanes(vtkPlaneCollection *planes); 41 53 42 54 void setCloudStyle(CloudStyle style); 43 55 56 void setInterpolateBeforeMapping(bool state); 57 58 void setColorMode(ColorMode mode, DataSet::DataAttributeType type, 59 const char *name, double range[2] = NULL); 60 61 void setColorMode(ColorMode mode, 62 const char *name, double range[2] = NULL); 63 64 void setColorMode(ColorMode mode); 65 66 void setColorMap(ColorMap *colorMap); 67 68 /** 69 * \brief Return the ColorMap in use 70 */ 71 ColorMap *getColorMap() 72 { 73 return _colorMap; 74 } 75 76 void updateColorMap(); 77 78 virtual void updateRanges(Renderer *renderer); 79 44 80 private: 45 81 virtual void update(); 46 82 83 ColorMap *_colorMap; 84 ColorMode _colorMode; 85 std::string _colorFieldName; 86 DataSet::DataAttributeType _colorFieldType; 87 double _colorFieldRange[2]; 88 double _vectorMagnitudeRange[2]; 89 double _vectorComponentRange[3][2]; 90 Renderer *_renderer; 91 47 92 CloudStyle _cloudStyle; 93 vtkSmartPointer<vtkLookupTable> _lut; 48 94 vtkSmartPointer<vtkPolyDataMapper> _mapper; 49 95 };
Note: See TracChangeset
for help on using the changeset viewer.