VTK
vtkPointSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef __vtkPointSource_h
33 #define __vtkPointSource_h
34 
35 #include "vtkPolyDataAlgorithm.h"
36 
37 #define VTK_POINT_UNIFORM 1
38 #define VTK_POINT_SHELL 0
39 
41 {
42 public:
43  static vtkPointSource *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_LARGE_ID);
50  vtkGetMacro(NumberOfPoints,vtkIdType);
52 
54 
55  vtkSetVector3Macro(Center,double);
56  vtkGetVectorMacro(Center,double,3);
58 
60 
63  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
64  vtkGetMacro(Radius,double);
66 
68 
71  vtkSetMacro(Distribution,int);
73  this->SetDistribution(VTK_POINT_UNIFORM);};
75  this->SetDistribution(VTK_POINT_SHELL);};
76  vtkGetMacro(Distribution,int);
78 
79 protected:
80  vtkPointSource(vtkIdType numPts=10);
82 
84 
86  double Center[3];
87  double Radius;
89 
90 private:
91  vtkPointSource(const vtkPointSource&); // Not implemented.
92  void operator=(const vtkPointSource&); // Not implemented.
93 };
94 
95 #endif