VTK  9.5.20251105
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
176
177VTK_ABI_NAMESPACE_BEGIN
178class vtkImageData;
179
180class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkFlyingEdges3D : public vtkPolyDataAlgorithm
181{
182public:
184
190 void PrintSelf(ostream& os, vtkIndent indent) override;
192
197
199
205 vtkSetMacro(ComputeNormals, vtkTypeBool);
206 vtkGetMacro(ComputeNormals, vtkTypeBool);
207 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
209
211
219 vtkSetMacro(ComputeGradients, vtkTypeBool);
220 vtkGetMacro(ComputeGradients, vtkTypeBool);
221 vtkBooleanMacro(ComputeGradients, vtkTypeBool);
223
225
228 vtkSetMacro(ComputeScalars, vtkTypeBool);
229 vtkGetMacro(ComputeScalars, vtkTypeBool);
230 vtkBooleanMacro(ComputeScalars, vtkTypeBool);
232
234
240 vtkSetMacro(InterpolateAttributes, vtkTypeBool);
241 vtkGetMacro(InterpolateAttributes, vtkTypeBool);
242 vtkBooleanMacro(InterpolateAttributes, vtkTypeBool);
244
249 void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
250
254 double GetValue(int i) { return this->ContourValues->GetValue(i); }
255
260 double* GetValues() { return this->ContourValues->GetValues(); }
261
267 void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
268
274 void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
275
279 vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
280
285 void GenerateValues(int numContours, double range[2])
286 {
287 this->ContourValues->GenerateValues(numContours, range);
288 }
289
294 void GenerateValues(int numContours, double rangeStart, double rangeEnd)
295 {
296 this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
297 }
298
300
303 vtkSetMacro(ArrayComponent, int);
304 vtkGetMacro(ArrayComponent, int);
306
307protected:
310
317
320 int FillInputPortInformation(int port, vtkInformation* info) override;
321
322private:
323 vtkFlyingEdges3D(const vtkFlyingEdges3D&) = delete;
324 void operator=(const vtkFlyingEdges3D&) = delete;
325};
326
327VTK_ABI_NAMESPACE_END
328#endif
helper object to manage setting and generating contour values
generate isosurface from 3D image data (volume)
double * GetValues()
Get a pointer to an array of contour values.
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.
static vtkFlyingEdges3D * New()
Standard methods for instantiation, obtaining type information, and printing information.
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
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.
vtkContourValues * ContourValues
topologically and geometrically regular array of data
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.
int vtkTypeBool
Definition vtkABI.h:64
int vtkIdType
Definition vtkType.h:367
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_MARSHALAUTO