-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPointsSource.h
65 lines (53 loc) · 1.93 KB
/
PointsSource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef POINTSSOURCE_H
#define POINTSSOURCE_H
#include "vtkFiltersSourcesModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"
#include <vtkSmartPointer.h>
#define VTK_POINT_UNIFORM 1
#define VTK_POINT_SHELL 0
#ifndef _WIN32
class VTKFILTERSSOURCES_EXPORT PointSource : public vtkPolyDataAlgorithm
#else
class PointSource : public vtkPolyDataAlgorithm
#endif
{
public:
static PointSource *New();
// vtkTypeMacro(PointSource,vtkPolyDataAlgorithm);
// void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set the number of points to generate.
// vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_ID_MAX);
// vtkGetMacro(NumberOfPoints,vtkIdType);
// Description:
// Set the center of the point cloud.
// vtkSetVector3Macro(Center,double);
// vtkGetVectorMacro(Center,double,3);
// Description:
// Set the radius of the point cloud. If you are
// generating a Gaussian distribution, then this is
// the standard deviation for each of x, y, and z.
// vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
// vtkGetMacro(Radius,double);
// Description:
// Specify the distribution to use. The default is a
// uniform distribution. The shell distribution produces
// random points on the surface of the sphere, none in the interior.
// vtkSetMacro(Distribution,int);
// void SetDistributionToUniform() {
// this->SetDistribution(VTK_POINT_UNIFORM);};
// void SetDistributionToShell() {
// this->SetDistribution(VTK_POINT_SHELL);};
// vtkGetMacro(Distribution,int);
void SetPoints(vtkSmartPointer<vtkPoints> *pts, int npts);
protected:
PointSource(vtkIdType numPts=10);
~PointSource() {};
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
vtkIdType NumberOfPoints;
vtkSmartPointer<vtkPoints> points;
//private:
// PointSource(const PointSource&); // Not implemented.
// void operator=(const PointSource&); // Not implemented.
};
#endif // POINTSSOURCE_H