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 =========================================================================*/
77 #ifndef vtkPolyDataPointSampler_h
78 #define vtkPolyDataPointSampler_h
79 
80 #include "vtkEdgeTable.h" // for sampling edges
81 #include "vtkFiltersModelingModule.h" // For export macro
82 #include "vtkNew.h" // for data members
83 #include "vtkPolyDataAlgorithm.h"
84 
85 class VTKFILTERSMODELING_EXPORT vtkPolyDataPointSampler : public vtkPolyDataAlgorithm
86 {
87 public:
91  static vtkPolyDataPointSampler* New();
92 
94 
98  void PrintSelf(ostream& os, vtkIndent indent) override;
100 
102 
106  vtkSetClampMacro(Distance, double, 0.0, VTK_FLOAT_MAX);
107  vtkGetMacro(Distance, double);
109 
113  enum
114  {
116  RANDOM_GENERATION
117  };
118 
120 
125  vtkSetClampMacro(PointGenerationMode, int, REGULAR_GENERATION, RANDOM_GENERATION);
126  vtkGetMacro(PointGenerationMode, int);
127  void SetPointGenerationModeToRegular() { this->SetPointGenerationMode(REGULAR_GENERATION); }
128  void SetPointGenerationModeToRandom() { this->SetPointGenerationMode(RANDOM_GENERATION); }
130 
132 
136  vtkGetMacro(GenerateVertexPoints, bool);
137  vtkSetMacro(GenerateVertexPoints, bool);
138  vtkBooleanMacro(GenerateVertexPoints, bool);
140 
142 
146  vtkGetMacro(GenerateEdgePoints, bool);
147  vtkSetMacro(GenerateEdgePoints, bool);
148  vtkBooleanMacro(GenerateEdgePoints, bool);
150 
152 
156  vtkGetMacro(GenerateInteriorPoints, bool);
157  vtkSetMacro(GenerateInteriorPoints, bool);
158  vtkBooleanMacro(GenerateInteriorPoints, bool);
160 
162 
169  vtkGetMacro(GenerateVertices, bool);
170  vtkSetMacro(GenerateVertices, bool);
171  vtkBooleanMacro(GenerateVertices, bool);
173 
175 
183  vtkGetMacro(InterpolatePointData, bool);
184  vtkSetMacro(InterpolatePointData, bool);
185  vtkBooleanMacro(InterpolatePointData, bool);
187 
188 protected:
190  ~vtkPolyDataPointSampler() override = default;
191 
193 
194  double Distance;
196 
201 
203 
204 private:
206  void operator=(const vtkPolyDataPointSampler&) = delete;
207 };
208 
209 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
void SetPointGenerationModeToRandom()
Specify/retrieve the type of point generation: either regular point generation or random point genera...
void SetPointGenerationModeToRegular()
Specify/retrieve the type of point generation: either regular point generation or random point genera...
Store zero or more vtkInformation instances.
generate points from vtkPolyData
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.