VTK
vtkPolyDataPointSampler.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataPointSampler.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 =========================================================================*/
43 #ifndef vtkPolyDataPointSampler_h
44 #define vtkPolyDataPointSampler_h
45 
46 #include "vtkFiltersModelingModule.h" // For export macro
47 #include "vtkPolyDataAlgorithm.h"
48 
50 {
51 public:
54 
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
64  vtkSetClampMacro(Distance,double,0.0,VTK_FLOAT_MAX);
65  vtkGetMacro(Distance,double);
67 
69 
71  vtkGetMacro(GenerateVertexPoints,int);
72  vtkSetMacro(GenerateVertexPoints,int);
73  vtkBooleanMacro(GenerateVertexPoints,int);
75 
77 
79  vtkGetMacro(GenerateEdgePoints,int);
80  vtkSetMacro(GenerateEdgePoints,int);
81  vtkBooleanMacro(GenerateEdgePoints,int);
83 
85 
87  vtkGetMacro(GenerateInteriorPoints,int);
88  vtkSetMacro(GenerateInteriorPoints,int);
89  vtkBooleanMacro(GenerateInteriorPoints,int);
91 
93 
98  vtkGetMacro(GenerateVertices,int);
99  vtkSetMacro(GenerateVertices,int);
100  vtkBooleanMacro(GenerateVertices,int);
102 
103 protected:
106 
108 
109  double Distance;
110  double Distance2;
111 
116 
117  void SampleEdge(vtkPoints *pts, double x0[3], double x1[3]);
118  void SampleTriangle(vtkPoints *newPts, vtkPoints *inPts,
119  vtkIdType *pts);
120  void SamplePolygon(vtkPoints *newPts, vtkPoints *inPts,
121  vtkIdType npts, vtkIdType *pts);
122 
123 private:
124  vtkPolyDataPointSampler(const vtkPolyDataPointSampler&); // Not implemented.
125  void operator=(const vtkPolyDataPointSampler&); // Not implemented.
126 };
127 
128 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkPolyDataPointSampler::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyDataPointSampler::Distance
double Distance
Definition: vtkPolyDataPointSampler.h:109
vtkPolyDataPointSampler::GenerateEdgePoints
int GenerateEdgePoints
Definition: vtkPolyDataPointSampler.h:113
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
vtkPolyDataPointSampler::SamplePolygon
void SamplePolygon(vtkPoints *newPts, vtkPoints *inPts, vtkIdType npts, vtkIdType *pts)
vtkPolyDataPointSampler::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkFiltersModelingModule.h
vtkPolyDataPointSampler::Distance2
double Distance2
Definition: vtkPolyDataPointSampler.h:110
vtkPolyDataPointSampler::GenerateVertices
int GenerateVertices
Definition: vtkPolyDataPointSampler.h:115
vtkPolyDataAlgorithm.h
vtkPolyDataPointSampler::~vtkPolyDataPointSampler
~vtkPolyDataPointSampler()
Definition: vtkPolyDataPointSampler.h:105
vtkPolyDataPointSampler
generate points from vtkPolyData
Definition: vtkPolyDataPointSampler.h:50
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkPolyDataPointSampler::SampleTriangle
void SampleTriangle(vtkPoints *newPts, vtkPoints *inPts, vtkIdType *pts)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:140
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPolyDataPointSampler::SampleEdge
void SampleEdge(vtkPoints *pts, double x0[3], double x1[3])
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkPolyDataPointSampler::GenerateVertexPoints
int GenerateVertexPoints
Definition: vtkPolyDataPointSampler.h:112
vtkPolyDataPointSampler::New
static vtkPolyDataPointSampler * New()
VTKFILTERSMODELING_EXPORT
#define VTKFILTERSMODELING_EXPORT
Definition: vtkFiltersModelingModule.h:15
vtkPolyDataPointSampler::GenerateInteriorPoints
int GenerateInteriorPoints
Definition: vtkPolyDataPointSampler.h:114
vtkPolyDataPointSampler::vtkPolyDataPointSampler
vtkPolyDataPointSampler()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44