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 =========================================================================*/
86 #ifndef vtkPolyDataPointSampler_h
87 #define vtkPolyDataPointSampler_h
88 
89 #include "vtkEdgeTable.h" // for sampling edges
90 #include "vtkFiltersModelingModule.h" // For export macro
91 #include "vtkNew.h" // for data members
92 #include "vtkPolyDataAlgorithm.h"
93 
94 class VTKFILTERSMODELING_EXPORT vtkPolyDataPointSampler : public vtkPolyDataAlgorithm
95 {
96 public:
101 
103 
107  void PrintSelf(ostream& os, vtkIndent indent) override;
109 
111 
115  vtkSetClampMacro(Distance, double, 0.0, VTK_FLOAT_MAX);
116  vtkGetMacro(Distance, double);
118 
122  enum
123  {
125  RANDOM_GENERATION
126  };
127 
129 
134  vtkSetClampMacro(PointGenerationMode, int, REGULAR_GENERATION, RANDOM_GENERATION);
135  vtkGetMacro(PointGenerationMode, int);
136  void SetPointGenerationModeToRegular() { this->SetPointGenerationMode(REGULAR_GENERATION); }
137  void SetPointGenerationModeToRandom() { this->SetPointGenerationMode(RANDOM_GENERATION); }
139 
141 
145  vtkGetMacro(GenerateVertexPoints, bool);
146  vtkSetMacro(GenerateVertexPoints, bool);
147  vtkBooleanMacro(GenerateVertexPoints, bool);
149 
151 
155  vtkGetMacro(GenerateEdgePoints, bool);
156  vtkSetMacro(GenerateEdgePoints, bool);
157  vtkBooleanMacro(GenerateEdgePoints, bool);
159 
161 
165  vtkGetMacro(GenerateInteriorPoints, bool);
166  vtkSetMacro(GenerateInteriorPoints, bool);
167  vtkBooleanMacro(GenerateInteriorPoints, bool);
169 
171 
178  vtkGetMacro(GenerateVertices, bool);
179  vtkSetMacro(GenerateVertices, bool);
180  vtkBooleanMacro(GenerateVertices, bool);
182 
184 
192  vtkGetMacro(InterpolatePointData, bool);
193  vtkSetMacro(InterpolatePointData, bool);
194  vtkBooleanMacro(InterpolatePointData, bool);
196 
197 protected:
199  ~vtkPolyDataPointSampler() override = default;
200 
202 
203  double Distance;
205 
210 
212 
213 private:
215  void operator=(const vtkPolyDataPointSampler&) = delete;
216 };
217 
218 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
generate points from vtkPolyData
~vtkPolyDataPointSampler() override=default
void SetPointGenerationModeToRandom()
Specify/retrieve the type of point generation: either regular point generation or random point genera...
static vtkPolyDataPointSampler * New()
Instantiate this class.
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