00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00028 #ifndef __vtkCylinderSource_h
00029 #define __vtkCylinderSource_h
00030
00031 #include "vtkPolyDataAlgorithm.h"
00032
00033 #include "vtkCell.h"
00034
00035 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm
00036 {
00037 public:
00038 static vtkCylinderSource *New();
00039 vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataAlgorithm);
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00043
00044 vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
00045 vtkGetMacro(Height,double);
00047
00049
00050 vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
00051 vtkGetMacro(Radius,double);
00053
00055
00056 vtkSetVector3Macro(Center,double);
00057 vtkGetVectorMacro(Center,double,3);
00059
00061
00062 vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
00063 vtkGetMacro(Resolution,int);
00065
00067
00068 vtkSetMacro(Capping,int);
00069 vtkGetMacro(Capping,int);
00070 vtkBooleanMacro(Capping,int);
00072
00073 protected:
00074 vtkCylinderSource(int res=6);
00075 ~vtkCylinderSource() {};
00076
00077 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00078 double Height;
00079 double Radius;
00080 double Center[3];
00081 int Resolution;
00082 int Capping;
00083
00084 private:
00085 vtkCylinderSource(const vtkCylinderSource&);
00086 void operator=(const vtkCylinderSource&);
00087 };
00088
00089 #endif