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 
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:
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
vtkPointSource::SetDistributionToUniform
void SetDistributionToUniform()
Definition: vtkPointSource.h:73
vtkPointSource::New
static vtkPointSource * New()
vtkPointSource::Distribution
int Distribution
Definition: vtkPointSource.h:98
vtkPointSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersSourcesModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkPointSource
create a random cloud of points
Definition: vtkPointSource.h:42
vtkPolyDataAlgorithm.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkPointSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPointSource::~vtkPointSource
~vtkPointSource()
Definition: vtkPointSource.h:91
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkPointSource::NumberOfPoints
vtkIdType NumberOfPoints
Definition: vtkPointSource.h:95
VTK_POINT_UNIFORM
#define VTK_POINT_UNIFORM
Definition: vtkPointSource.h:38
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:278
vtkPointSource::Radius
double Radius
Definition: vtkPointSource.h:97
vtkPointSource::vtkPointSource
vtkPointSource(vtkIdType numPts=10)
vtkPointSource::SetDistributionToShell
void SetDistributionToShell()
Definition: vtkPointSource.h:75
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkPointSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkPointSource.h:99
VTK_POINT_SHELL
#define VTK_POINT_SHELL
Definition: vtkPointSource.h:39
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44