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 =========================================================================*/
31 #ifndef __vtkPointSource_h
32 #define __vtkPointSource_h
33 
34 #include "vtkPolyDataAlgorithm.h"
35 
36 #define VTK_POINT_UNIFORM 1
37 #define VTK_POINT_SHELL 0
38 
40 {
41 public:
42  static vtkPointSource *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_LARGE_ID);
49  vtkGetMacro(NumberOfPoints,vtkIdType);
51 
53 
54  vtkSetVector3Macro(Center,double);
55  vtkGetVectorMacro(Center,double,3);
57 
59 
62  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
63  vtkGetMacro(Radius,double);
65 
67 
70  vtkSetMacro(Distribution,int);
72  this->SetDistribution(VTK_POINT_UNIFORM);};
74  this->SetDistribution(VTK_POINT_SHELL);};
75  vtkGetMacro(Distribution,int);
77 
78 protected:
79  vtkPointSource(vtkIdType numPts=10);
81 
83 
85  double Center[3];
86  double Radius;
88 
89 private:
90  vtkPointSource(const vtkPointSource&); // Not implemented.
91  void operator=(const vtkPointSource&); // Not implemented.
92 };
93 
94 #endif