VTK  9.1.0
vtkFlyingEdges2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFlyingEdges2D.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 =========================================================================*/
82 #ifndef vtkFlyingEdges2D_h
83 #define vtkFlyingEdges2D_h
84 
85 #include "vtkContourValues.h" // Needed for direct access to ContourValues
86 #include "vtkFiltersCoreModule.h" // For export macro
87 #include "vtkPolyDataAlgorithm.h"
88 
89 class vtkImageData;
90 
91 class VTKFILTERSCORE_EXPORT vtkFlyingEdges2D : public vtkPolyDataAlgorithm
92 {
93 public:
94  static vtkFlyingEdges2D* New();
96  void PrintSelf(ostream& os, vtkIndent indent) override;
97 
101  vtkMTimeType GetMTime() override;
102 
107  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
108 
112  double GetValue(int i) { return this->ContourValues->GetValue(i); }
113 
118  double* GetValues() { return this->ContourValues->GetValues(); }
119 
125  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
126 
132  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
133 
137  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
138 
143  void GenerateValues(int numContours, double range[2])
144  {
145  this->ContourValues->GenerateValues(numContours, range);
146  }
147 
152  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
153  {
154  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
155  }
156 
158 
162  vtkSetMacro(ComputeScalars, vtkTypeBool);
163  vtkGetMacro(ComputeScalars, vtkTypeBool);
164  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
166 
168 
171  vtkSetMacro(ArrayComponent, int);
172  vtkGetMacro(ArrayComponent, int);
174 
175 protected:
177  ~vtkFlyingEdges2D() override;
178 
182 
185 
186 private:
187  vtkFlyingEdges2D(const vtkFlyingEdges2D&) = delete;
188  void operator=(const vtkFlyingEdges2D&) = delete;
189 };
190 
191 #endif
vtkFlyingEdges2D
generate isoline(s) from a structured points (image) dataset
Definition: vtkFlyingEdges2D.h:92
vtkFlyingEdges2D::ArrayComponent
int ArrayComponent
Definition: vtkFlyingEdges2D.h:184
vtkFlyingEdges2D::SetValue
void SetValue(int i, double value)
Set a particular contour value at contour number i.
Definition: vtkFlyingEdges2D.h:107
vtkFlyingEdges2D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkFlyingEdges2D.h:152
vtkFlyingEdges2D::New
static vtkFlyingEdges2D * New()
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkX3D::range
@ range
Definition: vtkX3D.h:244
vtkFlyingEdges2D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkFlyingEdges2D.h:125
vtkFlyingEdges2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFlyingEdges2D::~vtkFlyingEdges2D
~vtkFlyingEdges2D() override
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkFlyingEdges2D::vtkFlyingEdges2D
vtkFlyingEdges2D()
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:55
vtkFlyingEdges2D::GetMTime
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkFlyingEdges2D::GetNumberOfContours
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkFlyingEdges2D.h:137
vtkFlyingEdges2D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkFlyingEdges2D.h:118
vtkContourValues.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkFlyingEdges2D::ContourValues
vtkContourValues * ContourValues
Definition: vtkFlyingEdges2D.h:181
vtkFlyingEdges2D::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkFlyingEdges2D::ComputeScalars
vtkTypeBool ComputeScalars
Definition: vtkFlyingEdges2D.h:183
vtkFlyingEdges2D::GetValue
double GetValue(int i)
Get the ith contour value.
Definition: vtkFlyingEdges2D.h:112
vtkFlyingEdges2D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkFlyingEdges2D.h:143
vtkFlyingEdges2D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkFlyingEdges2D.h:132
vtkFlyingEdges2D::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:151