Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00028 #ifndef __vtkKWEPaintbrushShapeEllipsoid_h
00029 #define __vtkKWEPaintbrushShapeEllipsoid_h
00030
00031 #include "vtkKWEPaintbrushShape.h"
00032
00033 class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushShapeEllipsoid
00034 : public vtkKWEPaintbrushShape
00035 {
00036 public:
00037
00039 static vtkKWEPaintbrushShapeEllipsoid *New();
00040
00042
00043 vtkTypeRevisionMacro(vtkKWEPaintbrushShapeEllipsoid, vtkKWEPaintbrushShape);
00044 void PrintSelf(ostream& os, vtkIndent indent);
00046
00048
00054 virtual vtkSmartPointer< vtkPolyData > GetShapePolyData( double *center,
00055 vtkPlane *plane = NULL);
00056
00058
00060 virtual void GetStencil(vtkImageStencilData *, double p[3]);
00061
00063 virtual void GetGrayscaleData(vtkImageData *, double p[3]);
00064
00066
00067 virtual void SetWidth( double newWidthX, double newWidthY, double newWidthZ );
00068 virtual void SetWidth( double newWidth[3]);
00069 vtkGetVector3Macro( Width, double );
00071
00073
00075 vtkSetMacro( Resolution, int );
00076 vtkGetMacro( Resolution, int );
00078
00080 virtual int Resize(double d[3], int ResizeType);
00081
00083 virtual void DeepCopy(vtkKWEPaintbrushShape *);
00084
00086 virtual void GetAnnotation(char *s);
00087
00089
00091 vtkSetClampMacro( TransitionRegion, double, 0.0, 1.0 );
00092 vtkGetMacro( TransitionRegion, double );
00094
00097 virtual void GetExtent( int extent[6], double p[3] );
00098
00099 protected:
00100 vtkKWEPaintbrushShapeEllipsoid();
00101 ~vtkKWEPaintbrushShapeEllipsoid();
00102
00103 double Width[3];
00104 int Resolution;
00105 double TransitionRegion;
00106
00107 private:
00108 vtkKWEPaintbrushShapeEllipsoid(const vtkKWEPaintbrushShapeEllipsoid&);
00109 void operator=(const vtkKWEPaintbrushShapeEllipsoid&);
00110 };
00111
00112 #endif