VTK  9.1.0
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=========================================================================*/
83#ifndef vtkPolyDataPointSampler_h
84#define vtkPolyDataPointSampler_h
85
86#include "vtkEdgeTable.h" // for sampling edges
87#include "vtkFiltersModelingModule.h" // For export macro
88#include "vtkNew.h" // for data members
90
91class VTKFILTERSMODELING_EXPORT vtkPolyDataPointSampler : public vtkPolyDataAlgorithm
92{
93public:
98
100
104 void PrintSelf(ostream& os, vtkIndent indent) override;
106
108
112 vtkSetClampMacro(Distance, double, 0.0, VTK_FLOAT_MAX);
113 vtkGetMacro(Distance, double);
115
119 enum
120 {
122 RANDOM_GENERATION
123 };
124
126
131 vtkSetClampMacro(PointGenerationMode, int, REGULAR_GENERATION, RANDOM_GENERATION);
132 vtkGetMacro(PointGenerationMode, int);
133 void SetPointGenerationModeToRegular() { this->SetPointGenerationMode(REGULAR_GENERATION); }
134 void SetPointGenerationModeToRandom() { this->SetPointGenerationMode(RANDOM_GENERATION); }
136
138
142 vtkGetMacro(GenerateVertexPoints, bool);
143 vtkSetMacro(GenerateVertexPoints, bool);
144 vtkBooleanMacro(GenerateVertexPoints, bool);
146
148
152 vtkGetMacro(GenerateEdgePoints, bool);
153 vtkSetMacro(GenerateEdgePoints, bool);
154 vtkBooleanMacro(GenerateEdgePoints, bool);
156
158
162 vtkGetMacro(GenerateInteriorPoints, bool);
163 vtkSetMacro(GenerateInteriorPoints, bool);
164 vtkBooleanMacro(GenerateInteriorPoints, bool);
166
168
175 vtkGetMacro(GenerateVertices, bool);
176 vtkSetMacro(GenerateVertices, bool);
177 vtkBooleanMacro(GenerateVertices, bool);
179
181
189 vtkGetMacro(InterpolatePointData, bool);
190 vtkSetMacro(InterpolatePointData, bool);
191 vtkBooleanMacro(InterpolatePointData, bool);
193
194protected:
196 ~vtkPolyDataPointSampler() override = default;
197
199
200 double Distance;
202
207
209
210private:
212 void operator=(const vtkPolyDataPointSampler&) = delete;
213};
214
215#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
generate points from vtkPolyData
static vtkPolyDataPointSampler * New()
Instantiate this class.
~vtkPolyDataPointSampler() override=default
void SetPointGenerationModeToRandom()
Specify/retrieve the type of point generation: either regular point generation or random point genera...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros for type information and printing.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetPointGenerationModeToRegular()
Specify/retrieve the type of point generation: either regular point generation or random point genera...
#define VTK_FLOAT_MAX
Definition: vtkType.h:163