VTK  9.7.1
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
60 #ifndef vtkFlyingEdges3D_h
61 #define vtkFlyingEdges3D_h
62 
63 #include "vtkContourValues.h" // Passes calls through
64 #include "vtkFiltersCoreModule.h" // For export macro
65 #include "vtkPolyDataAlgorithm.h"
66 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
67 
68 VTK_ABI_NAMESPACE_BEGIN
69 class vtkImageData;
70 
71 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkFlyingEdges3D : public vtkPolyDataAlgorithm
72 {
73 public:
75 
79  static vtkFlyingEdges3D* New();
81  void PrintSelf(ostream& os, vtkIndent indent) override;
83 
87  vtkMTimeType GetMTime() override;
88 
90 
96  vtkSetMacro(ComputeNormals, vtkTypeBool);
97  vtkGetMacro(ComputeNormals, vtkTypeBool);
98  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
100 
102 
110  vtkSetMacro(ComputeGradients, vtkTypeBool);
111  vtkGetMacro(ComputeGradients, vtkTypeBool);
112  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
114 
116 
119  vtkSetMacro(ComputeScalars, vtkTypeBool);
120  vtkGetMacro(ComputeScalars, vtkTypeBool);
121  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
123 
125 
131  vtkSetMacro(InterpolateAttributes, vtkTypeBool);
132  vtkGetMacro(InterpolateAttributes, vtkTypeBool);
133  vtkBooleanMacro(InterpolateAttributes, vtkTypeBool);
135 
140  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
141 
145  double GetValue(int i) { return this->ContourValues->GetValue(i); }
146 
151  double* GetValues() { return this->ContourValues->GetValues(); }
152 
158  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
159 
165  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
166 
170  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
171 
176  void GenerateValues(int numContours, double range[2])
177  {
178  this->ContourValues->GenerateValues(numContours, range);
179  }
180 
185  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
186  {
187  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
188  }
189 
191 
194  vtkSetMacro(ArrayComponent, int);
195  vtkGetMacro(ArrayComponent, int);
197 
198 protected:
200  ~vtkFlyingEdges3D() override;
201 
208 
211  int FillInputPortInformation(int port, vtkInformation* info) override;
212 
213 private:
214  vtkFlyingEdges3D(const vtkFlyingEdges3D&) = delete;
215  void operator=(const vtkFlyingEdges3D&) = delete;
216 };
217 
218 VTK_ABI_NAMESPACE_END
219 #endif
vtkTypeBool ComputeGradients
helper object to manage setting and generating contour values
generate isosurface from 3D image data (volume)
double GetValue(int i)
Get the ith contour value.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkTypeBool InterpolateAttributes
int vtkIdType
Definition: vtkType.h:363
void SetValue(int i, double value)
Set a particular contour value at contour number i.
vtkContourValues * ContourValues
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkTypeBool ComputeNormals
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
vtkTypeBool ComputeScalars
void GetValues(double *contourValues)
Fill a supplied list with contour values.
double * GetValues()
Get a pointer to an array of contour values.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
#define VTK_MARSHALAUTO
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.