Changeset 2328 for trunk/packages/vizservers/vtkvis/RpContour2D.h
- Timestamp:
- Aug 2, 2011, 12:27:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpContour2D.h
r2261 r2328 17 17 #include <vector> 18 18 19 #include "RpVtk DataSet.h"19 #include "RpVtkGraphicsObject.h" 20 20 21 21 namespace Rappture { … … 25 25 * \brief 2D Contour lines (isolines) 26 26 */ 27 class Contour2D {27 class Contour2D : public VtkGraphicsObject { 28 28 public: 29 29 Contour2D(); 30 30 virtual ~Contour2D(); 31 31 32 void setDataSet(DataSet *dataset); 32 virtual const char *getClassName() const 33 { 34 return "Contour2D"; 35 } 33 36 34 DataSet *getDataSet();37 virtual void setDataSet(DataSet *dataset); 35 38 36 v tkProp *getProp();39 virtual void setClippingPlanes(vtkPlaneCollection *planes); 37 40 38 41 void setContours(int numContours); … … 46 49 const std::vector<double>& getContourList() const; 47 50 48 void setVisibility(bool state);49 50 bool getVisibility() const;51 52 void setOpacity(double opacity);53 54 void setEdgeColor(float color[3]);55 56 void setEdgeWidth(float edgeWidth);57 58 void setClippingPlanes(vtkPlaneCollection *planes);59 60 void setLighting(bool state);61 62 51 private: 63 void initProp(); 64 void update(); 65 66 DataSet *_dataSet; 52 virtual void initProp(); 53 virtual void update(); 67 54 68 55 int _numContours; … … 70 57 double _dataRange[2]; 71 58 72 float _edgeColor[3];73 float _edgeWidth;74 double _opacity;75 59 vtkSmartPointer<vtkContourFilter> _contourFilter; 76 60 vtkSmartPointer<vtkPolyDataMapper> _contourMapper; 77 vtkSmartPointer<vtkActor> _contourActor;78 61 }; 79 62
Note: See TracChangeset
for help on using the changeset viewer.