Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Graphics/vtkPointSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00047 #ifndef __vtkPointSource_h
00048 #define __vtkPointSource_h
00049
00050 #include "vtkPolyDataSource.h"
00051
00052 #define VTK_POINT_UNIFORM 1
00053 #define VTK_POINT_SHELL 0
00054
00055 class VTK_GRAPHICS_EXPORT vtkPointSource : public vtkPolyDataSource
00056 {
00057 public:
00058 static vtkPointSource *New();
00059 vtkTypeRevisionMacro(vtkPointSource,vtkPolyDataSource);
00060 void PrintSelf(ostream& os, vtkIndent indent);
00061
00063
00064 vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_LARGE_ID);
00065 vtkGetMacro(NumberOfPoints,vtkIdType);
00067
00069
00070 vtkSetVector3Macro(Center,float);
00071 vtkGetVectorMacro(Center,float,3);
00073
00075
00078 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT);
00079 vtkGetMacro(Radius,float);
00081
00083
00086 vtkSetMacro(Distribution,int);
00087 void SetDistributionToUniform() {
00088 this->SetDistribution(VTK_POINT_UNIFORM);};
00089 void SetDistributionToShell() {
00090 this->SetDistribution(VTK_POINT_SHELL);};
00091 vtkGetMacro(Distribution,int);
00093
00094 protected:
00095 vtkPointSource(vtkIdType numPts=10);
00096 ~vtkPointSource() {};
00097
00098 void Execute();
00099 void ExecuteInformation();
00100
00101 vtkIdType NumberOfPoints;
00102 float Center[3];
00103 float Radius;
00104 int Distribution;
00105
00106 private:
00107 vtkPointSource(const vtkPointSource&);
00108 void operator=(const vtkPointSource&);
00109 };
00110
00111 #endif