VTK  9.3.20240329
vtkFlyingEdges3D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
169 #ifndef vtkFlyingEdges3D_h
170 #define vtkFlyingEdges3D_h
171 
172 #include "vtkContourValues.h" // Passes calls through
173 #include "vtkFiltersCoreModule.h" // For export macro
174 #include "vtkPolyDataAlgorithm.h"
175 
176 VTK_ABI_NAMESPACE_BEGIN
177 class vtkImageData;
178 
179 class VTKFILTERSCORE_EXPORT vtkFlyingEdges3D : public vtkPolyDataAlgorithm
180 {
181 public:
183 
189  void PrintSelf(ostream& os, vtkIndent indent) override;
191 
195  vtkMTimeType GetMTime() override;
196 
198 
204  vtkSetMacro(ComputeNormals, vtkTypeBool);
205  vtkGetMacro(ComputeNormals, vtkTypeBool);
206  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
208 
210 
218  vtkSetMacro(ComputeGradients, vtkTypeBool);
219  vtkGetMacro(ComputeGradients, vtkTypeBool);
220  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
222 
224 
227  vtkSetMacro(ComputeScalars, vtkTypeBool);
228  vtkGetMacro(ComputeScalars, vtkTypeBool);
229  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
231 
233 
239  vtkSetMacro(InterpolateAttributes, vtkTypeBool);
240  vtkGetMacro(InterpolateAttributes, vtkTypeBool);
241  vtkBooleanMacro(InterpolateAttributes, vtkTypeBool);
243 
248  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
249 
253  double GetValue(int i) { return this->ContourValues->GetValue(i); }
254 
259  double* GetValues() { return this->ContourValues->GetValues(); }
260 
266  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
267 
273  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
274 
278  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
279 
284  void GenerateValues(int numContours, double range[2])
285  {
286  this->ContourValues->GenerateValues(numContours, range);
287  }
288 
293  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
294  {
295  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
296  }
297 
299 
302  vtkSetMacro(ArrayComponent, int);
303  vtkGetMacro(ArrayComponent, int);
305 
306 protected:
308  ~vtkFlyingEdges3D() override;
309 
316 
320 
321 private:
322  vtkFlyingEdges3D(const vtkFlyingEdges3D&) = delete;
323  void operator=(const vtkFlyingEdges3D&) = delete;
324 };
325 
326 VTK_ABI_NAMESPACE_END
327 #endif
helper object to manage setting and generating contour values
generate isosurface from 3D image data (volume)
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing information.
double GetValue(int i)
Get the ith contour value.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkFlyingEdges3D() override
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
vtkTypeBool InterpolateAttributes
void SetValue(int i, double value)
Set a particular contour value at contour number i.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
vtkTypeBool ComputeNormals
double * GetValues()
Get a pointer to an array of contour values.
vtkTypeBool ComputeScalars
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool ComputeGradients
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
static vtkFlyingEdges3D * New()
Standard methods for instantiation, obtaining type information, and printing information.
vtkContourValues * ContourValues
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:376
@ value
Definition: vtkX3D.h:220
@ port
Definition: vtkX3D.h:447
@ range
Definition: vtkX3D.h:238
int vtkTypeBool
Definition: vtkABI.h:64
int vtkIdType
Definition: vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270