vtkCylinderSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00035 #ifndef __vtkCylinderSource_h
00036 #define __vtkCylinderSource_h
00037
00038 #include "vtkPolyDataSource.h"
00039
00040 #include "vtkCell.h"
00041
00042 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataSource
00043 {
00044 public:
00045 static vtkCylinderSource *New();
00046 vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataSource);
00047 void PrintSelf(ostream& os, vtkIndent indent);
00048
00050
00051 vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
00052 vtkGetMacro(Height,float);
00054
00056
00057 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
00058 vtkGetMacro(Radius,float);
00060
00062
00063 vtkSetVector3Macro(Center,float);
00064 vtkGetVectorMacro(Center,float,3);
00066
00068
00069 vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
00070 vtkGetMacro(Resolution,int);
00072
00074
00075 vtkSetMacro(Capping,int);
00076 vtkGetMacro(Capping,int);
00077 vtkBooleanMacro(Capping,int);
00079
00080 protected:
00081 vtkCylinderSource(int res=6);
00082 ~vtkCylinderSource() {};
00083
00084 void Execute();
00085 float Height;
00086 float Radius;
00087 float Center[3];
00088 int Resolution;
00089 int Capping;
00090
00091 private:
00092 vtkCylinderSource(const vtkCylinderSource&);
00093 void operator=(const vtkCylinderSource&);
00094 };
00095
00096 #endif
00097
00098