vtkPointSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00043 #ifndef __vtkPointSource_h
00044 #define __vtkPointSource_h
00045
00046 #include "vtkPolyDataSource.h"
00047
00048 #define VTK_POINT_UNIFORM 1
00049 #define VTK_POINT_SHELL 0
00050
00051 class VTK_GRAPHICS_EXPORT vtkPointSource : public vtkPolyDataSource
00052 {
00053 public:
00054 static vtkPointSource *New();
00055 vtkTypeRevisionMacro(vtkPointSource,vtkPolyDataSource);
00056 void PrintSelf(ostream& os, vtkIndent indent);
00057
00059
00060 vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_LARGE_ID);
00061 vtkGetMacro(NumberOfPoints,vtkIdType);
00063
00065
00066 vtkSetVector3Macro(Center,double);
00067 vtkGetVectorMacro(Center,double,3);
00069
00071
00074 vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
00075 vtkGetMacro(Radius,double);
00077
00079
00082 vtkSetMacro(Distribution,int);
00083 void SetDistributionToUniform() {
00084 this->SetDistribution(VTK_POINT_UNIFORM);};
00085 void SetDistributionToShell() {
00086 this->SetDistribution(VTK_POINT_SHELL);};
00087 vtkGetMacro(Distribution,int);
00089
00090 protected:
00091 vtkPointSource(vtkIdType numPts=10);
00092 ~vtkPointSource() {};
00093
00094 void Execute();
00095 void ExecuteInformation();
00096
00097 vtkIdType NumberOfPoints;
00098 double Center[3];
00099 double Radius;
00100 int Distribution;
00101
00102 private:
00103 vtkPointSource(const vtkPointSource&);
00104 void operator=(const vtkPointSource&);
00105 };
00106
00107 #endif