Changeset 2409 for branches/blt4/packages/vizservers/vtkvis/RpGlyphs.h
- Timestamp:
- Aug 25, 2011 1:09:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/packages/vizservers/vtkvis/RpGlyphs.h
r2322 r2409 18 18 #include <vtkPlaneCollection.h> 19 19 20 #include "RpVtk DataSet.h"20 #include "RpVtkGraphicsObject.h" 21 21 #include "ColorMap.h" 22 22 … … 26 26 /** 27 27 * \brief Oriented and scaled 3D glyph shapes 28 * 29 * The DataSet must be a PolyData point set 30 * with vectors and/or scalars 28 31 */ 29 class Glyphs {32 class Glyphs : public VtkGraphicsObject { 30 33 public: 31 34 enum GlyphShape { … … 40 43 TETRAHEDRON 41 44 }; 45 enum ScalingMode { 46 SCALE_BY_SCALAR, 47 SCALE_BY_VECTOR, 48 SCALE_BY_VECTOR_COMPONENTS, 49 SCALING_OFF 50 }; 51 enum ColorMode { 52 COLOR_BY_SCALE, 53 COLOR_BY_SCALAR, 54 COLOR_BY_VECTOR, 55 COLOR_CONSTANT 56 }; 42 57 43 58 Glyphs(); 44 59 virtual ~Glyphs(); 45 60 46 void setDataSet(DataSet *dataset); 61 virtual const char *getClassName() const 62 { 63 return "Glyphs"; 64 } 47 65 48 DataSet *getDataSet();66 virtual void setClippingPlanes(vtkPlaneCollection *planes); 49 67 50 vtkProp *getProp(); 68 void setScalingMode(ScalingMode mode); 69 70 void setColorMode(ColorMode mode); 51 71 52 72 void setGlyphShape(GlyphShape shape); … … 58 78 vtkLookupTable *getLookupTable(); 59 79 60 void setOpacity(double opacity);61 62 double getOpacity();63 64 void setVisibility(bool state);65 66 bool getVisibility();67 68 void setClippingPlanes(vtkPlaneCollection *planes);69 70 void setLighting(bool state);71 72 80 private: 73 void initProp(); 74 void update(); 75 76 DataSet *_dataSet; 77 78 double _opacity; 79 bool _lighting; 81 virtual void update(); 80 82 81 83 GlyphShape _glyphShape; 82 84 double _scaleFactor; 85 ColorMode _colorMode; 83 86 84 87 vtkSmartPointer<vtkLookupTable> _lut; 85 vtkSmartPointer<vtkActor> _prop;86 88 vtkSmartPointer<vtkGlyph3D> _glyphGenerator; 87 89 vtkSmartPointer<vtkPolyDataAlgorithm> _glyphSource;
Note: See TracChangeset
for help on using the changeset viewer.