VTK  9.2.6
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=========================================================================*/
96#ifndef vtkPolyDataPointSampler_h
97#define vtkPolyDataPointSampler_h
98
99#include "vtkEdgeTable.h" // for sampling edges
100#include "vtkFiltersModelingModule.h" // For export macro
101#include "vtkNew.h" // for data members
102#include "vtkPolyDataAlgorithm.h"
103
104class VTKFILTERSMODELING_EXPORT vtkPolyDataPointSampler : public vtkPolyDataAlgorithm
105{
106public:
111
113
117 void PrintSelf(ostream& os, vtkIndent indent) override;
119
121
125 vtkSetClampMacro(Distance, double, 0.0, VTK_FLOAT_MAX);
126 vtkGetMacro(Distance, double);
128
132 enum
133 {
135 RANDOM_GENERATION
136 };
137
139
144 vtkSetClampMacro(PointGenerationMode, int, REGULAR_GENERATION, RANDOM_GENERATION);
145 vtkGetMacro(PointGenerationMode, int);
146 void SetPointGenerationModeToRegular() { this->SetPointGenerationMode(REGULAR_GENERATION); }
147 void SetPointGenerationModeToRandom() { this->SetPointGenerationMode(RANDOM_GENERATION); }
149
151
155 vtkGetMacro(GenerateVertexPoints, bool);
156 vtkSetMacro(GenerateVertexPoints, bool);
157 vtkBooleanMacro(GenerateVertexPoints, bool);
159
161
165 vtkGetMacro(GenerateEdgePoints, bool);
166 vtkSetMacro(GenerateEdgePoints, bool);
167 vtkBooleanMacro(GenerateEdgePoints, bool);
169
171
175 vtkGetMacro(GenerateInteriorPoints, bool);
176 vtkSetMacro(GenerateInteriorPoints, bool);
177 vtkBooleanMacro(GenerateInteriorPoints, bool);
179
181
188 vtkGetMacro(GenerateVertices, bool);
189 vtkSetMacro(GenerateVertices, bool);
190 vtkBooleanMacro(GenerateVertices, bool);
192
194
202 vtkGetMacro(InterpolatePointData, bool);
203 vtkSetMacro(InterpolatePointData, bool);
204 vtkBooleanMacro(InterpolatePointData, bool);
206
207protected:
209 ~vtkPolyDataPointSampler() override = default;
210
212
213 double Distance;
215
220
222
223private:
225 void operator=(const vtkPolyDataPointSampler&) = delete;
226};
227
228#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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