dox/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
00039 #ifndef __vtkConeSource_h
00040 #define __vtkConeSource_h
00041
00042 #include "vtkPolyDataSource.h"
00043
00044 #include "vtkCell.h"
00045
00046 class VTK_GRAPHICS_EXPORT vtkConeSource : public vtkPolyDataSource
00047 {
00048 public:
00049 vtkTypeRevisionMacro(vtkConeSource,vtkPolyDataSource);
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00055 static vtkConeSource *New();
00056
00058
00060 vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
00061 vtkGetMacro(Height,float);
00063
00065
00066 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
00067 vtkGetMacro(Radius,float);
00069
00071
00072 vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
00073 vtkGetMacro(Resolution,int);
00075
00077
00078 vtkSetVector3Macro(Center,float);
00079 vtkGetVectorMacro(Center,float,3);
00081
00083
00086 vtkSetVector3Macro(Direction,float);
00087 vtkGetVectorMacro(Direction,float,3);
00089
00091
00093 void SetAngle (float angle);
00094 float GetAngle ();
00096
00098
00099 vtkSetMacro(Capping,int);
00100 vtkGetMacro(Capping,int);
00101 vtkBooleanMacro(Capping,int);
00103
00104 protected:
00105 vtkConeSource(int res=6);
00106 ~vtkConeSource() {}
00107
00108 void Execute();
00109 void ExecuteInformation();
00110
00111 float Height;
00112 float Radius;
00113 int Resolution;
00114 int Capping;
00115 float Center[3];
00116 float Direction[3];
00117
00118 private:
00119 vtkConeSource(const vtkConeSource&);
00120 void operator=(const vtkConeSource&);
00121 };
00122
00123 #endif
00124
00125