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=========================================================================*/
93#ifndef vtkPolyDataPointSampler_h
94#define vtkPolyDataPointSampler_h
95
96#include "vtkEdgeTable.h" // for sampling edges
97#include "vtkFiltersModelingModule.h" // For export macro
98#include "vtkNew.h" // for data members
100
101class VTKFILTERSMODELING_EXPORT vtkPolyDataPointSampler : public vtkPolyDataAlgorithm
102{
103public:
108
110
114 void PrintSelf(ostream& os, vtkIndent indent) override;
116
118
122 vtkSetClampMacro(Distance, double, 0.0, VTK_FLOAT_MAX);
123 vtkGetMacro(Distance, double);
125
129 enum
130 {
132 RANDOM_GENERATION
133 };
134
136
141 vtkSetClampMacro(PointGenerationMode, int, REGULAR_GENERATION, RANDOM_GENERATION);
142 vtkGetMacro(PointGenerationMode, int);
143 void SetPointGenerationModeToRegular() { this->SetPointGenerationMode(REGULAR_GENERATION); }
144 void SetPointGenerationModeToRandom() { this->SetPointGenerationMode(RANDOM_GENERATION); }
146
148
152 vtkGetMacro(GenerateVertexPoints, bool);
153 vtkSetMacro(GenerateVertexPoints, bool);
154 vtkBooleanMacro(GenerateVertexPoints, bool);
156
158
162 vtkGetMacro(GenerateEdgePoints, bool);
163 vtkSetMacro(GenerateEdgePoints, bool);
164 vtkBooleanMacro(GenerateEdgePoints, bool);
166
168
172 vtkGetMacro(GenerateInteriorPoints, bool);
173 vtkSetMacro(GenerateInteriorPoints, bool);
174 vtkBooleanMacro(GenerateInteriorPoints, bool);
176
178
185 vtkGetMacro(GenerateVertices, bool);
186 vtkSetMacro(GenerateVertices, bool);
187 vtkBooleanMacro(GenerateVertices, bool);
189
191
199 vtkGetMacro(InterpolatePointData, bool);
200 vtkSetMacro(InterpolatePointData, bool);
201 vtkBooleanMacro(InterpolatePointData, bool);
203
204protected:
206 ~vtkPolyDataPointSampler() override = default;
207
209
210 double Distance;
212
217
219
220private:
222 void operator=(const vtkPolyDataPointSampler&) = delete;
223};
224
225#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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