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 "vtkPolyDataAlgorithm.h"
47 
49 {
50 public:
52  static vtkPolyDataPointSampler *New();
53 
55 
57  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
63  vtkSetClampMacro(Distance,double,0.0,VTK_LARGE_FLOAT);
64  vtkGetMacro(Distance,double);
66 
68 
70  vtkGetMacro(GenerateVertexPoints,int);
71  vtkSetMacro(GenerateVertexPoints,int);
72  vtkBooleanMacro(GenerateVertexPoints,int);
74 
76 
78  vtkGetMacro(GenerateEdgePoints,int);
79  vtkSetMacro(GenerateEdgePoints,int);
80  vtkBooleanMacro(GenerateEdgePoints,int);
82 
84 
86  vtkGetMacro(GenerateInteriorPoints,int);
87  vtkSetMacro(GenerateInteriorPoints,int);
88  vtkBooleanMacro(GenerateInteriorPoints,int);
90 
92 
97  vtkGetMacro(GenerateVertices,int);
98  vtkSetMacro(GenerateVertices,int);
99  vtkBooleanMacro(GenerateVertices,int);
101 
102 protected:
105 
107 
108  double Distance;
109  double Distance2;
110 
115 
116  void SampleEdge(vtkPoints *pts, double x0[3], double x1[3]);
117  void SampleTriangle(vtkPoints *newPts, vtkPoints *inPts,
118  vtkIdType *pts);
119  void SamplePolygon(vtkPoints *newPts, vtkPoints *inPts,
120  vtkIdType npts, vtkIdType *pts);
121 
122 private:
123  vtkPolyDataPointSampler(const vtkPolyDataPointSampler&); // Not implemented.
124  void operator=(const vtkPolyDataPointSampler&); // Not implemented.
125 };
126 
127 #endif
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:255
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:37
#define VTK_LARGE_FLOAT
Definition: vtkType.h:149
Store zero or more vtkInformation instances.
generate points from vtkPolyData
represent and manipulate 3D points
Definition: vtkPoints.h:38