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 "vtkFiltersSourcesModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 #define VTK_POINT_UNIFORM 1
39 #define VTK_POINT_SHELL 0
40 
42 {
43 public:
44  static vtkPointSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_ID_MAX);
51  vtkGetMacro(NumberOfPoints,vtkIdType);
53 
55 
56  vtkSetVector3Macro(Center,double);
57  vtkGetVectorMacro(Center,double,3);
59 
61 
64  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
65  vtkGetMacro(Radius,double);
67 
69 
72  vtkSetMacro(Distribution,int);
74  this->SetDistribution(VTK_POINT_UNIFORM);};
76  this->SetDistribution(VTK_POINT_SHELL);};
77  vtkGetMacro(Distribution,int);
79 
81 
85  vtkSetMacro(OutputPointsPrecision,int);
86  vtkGetMacro(OutputPointsPrecision,int);
88 
89 protected:
90  vtkPointSource(vtkIdType numPts=10);
92 
94 
96  double Center[3];
97  double Radius;
100 
101 private:
102  vtkPointSource(const vtkPointSource&); // Not implemented.
103  void operator=(const vtkPointSource&); // Not implemented.
104 };
105 
106 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:140
void SetDistributionToShell()
#define VTK_POINT_SHELL
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:247
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
#define VTK_POINT_UNIFORM
void SetDistributionToUniform()
#define VTK_ID_MAX
Definition: vtkType.h:251
Store zero or more vtkInformation instances.
create a random cloud of points
vtkIdType NumberOfPoints