Graphics/vtkConeSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00052 #ifndef __vtkConeSource_h
00053 #define __vtkConeSource_h
00054
00055 #include "vtkPolyDataSource.h"
00056
00057 #include "vtkCell.h"
00058
00059 class VTK_GRAPHICS_EXPORT vtkConeSource : public vtkPolyDataSource
00060 {
00061 public:
00062 vtkTypeRevisionMacro(vtkConeSource,vtkPolyDataSource);
00063 void PrintSelf(ostream& os, vtkIndent indent);
00064
00068 static vtkConeSource *New();
00069
00071
00073 vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
00074 vtkGetMacro(Height,float);
00076
00078
00079 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
00080 vtkGetMacro(Radius,float);
00082
00084
00085 vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
00086 vtkGetMacro(Resolution,int);
00088
00090
00091 vtkSetVector3Macro(Center,float);
00092 vtkGetVectorMacro(Center,float,3);
00094
00096
00099 vtkSetVector3Macro(Direction,float);
00100 vtkGetVectorMacro(Direction,float,3);
00102
00104
00106 void SetAngle (float angle);
00107 float GetAngle ();
00109
00111
00112 vtkSetMacro(Capping,int);
00113 vtkGetMacro(Capping,int);
00114 vtkBooleanMacro(Capping,int);
00116
00117 protected:
00118 vtkConeSource(int res=6);
00119 ~vtkConeSource() {}
00120
00121 void Execute();
00122 void ExecuteInformation();
00123
00124 float Height;
00125 float Radius;
00126 int Resolution;
00127 int Capping;
00128 float Center[3];
00129 float Direction[3];
00130
00131 private:
00132 vtkConeSource(const vtkConeSource&);
00133 void operator=(const vtkConeSource&);
00134 };
00135
00136 #endif
00137
00138