VTK
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 =========================================================================*/
62 #ifndef vtkFlyingEdges2D_h
63 #define vtkFlyingEdges2D_h
64 
65 #include "vtkFiltersCoreModule.h" // For export macro
66 #include "vtkPolyDataAlgorithm.h"
67 #include "vtkContourValues.h" // Needed for direct access to ContourValues
68 
69 class vtkImageData;
70 
71 class VTKFILTERSCORE_EXPORT vtkFlyingEdges2D : public vtkPolyDataAlgorithm
72 {
73 public:
74  static vtkFlyingEdges2D *New();
76  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
77 
81  vtkMTimeType GetMTime() VTK_OVERRIDE;
82 
87  void SetValue(int i, double value)
88  {this->ContourValues->SetValue(i,value);}
89 
93  double GetValue(int i)
94  {return this->ContourValues->GetValue(i);}
95 
100  double *GetValues()
101  {return this->ContourValues->GetValues();}
102 
108  void GetValues(double *contourValues)
109  {this->ContourValues->GetValues(contourValues);}
110 
116  void SetNumberOfContours(int number)
117  {this->ContourValues->SetNumberOfContours(number);}
118 
123  {return this->ContourValues->GetNumberOfContours();}
124 
129  void GenerateValues(int numContours, double range[2])
130  {this->ContourValues->GenerateValues(numContours, range);}
131 
136  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
137  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
138 
140 
144  vtkSetMacro(ComputeScalars,int);
145  vtkGetMacro(ComputeScalars,int);
146  vtkBooleanMacro(ComputeScalars,int);
148 
150 
153  vtkSetMacro(ArrayComponent, int);
154  vtkGetMacro(ArrayComponent, int);
156 
157 protected:
159  ~vtkFlyingEdges2D() VTK_OVERRIDE;
160 
161  int RequestData(vtkInformation *, vtkInformationVector **,
162  vtkInformationVector *) VTK_OVERRIDE;
163  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
164  vtkContourValues *ContourValues;
165 
166  int ComputeScalars;
167  int ArrayComponent;
168 
169 private:
170  vtkFlyingEdges2D(const vtkFlyingEdges2D&) VTK_DELETE_FUNCTION;
171  void operator=(const vtkFlyingEdges2D&) VTK_DELETE_FUNCTION;
172 };
173 
174 
175 #endif
vtkFlyingEdges2D
generate isoline(s) from a structured points set
Definition: vtkFlyingEdges2D.h:72
vtkFlyingEdges2D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkFlyingEdges2D.h:136
vtkFlyingEdges2D::New
static vtkFlyingEdges2D * New()
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkX3D::range
@ range
Definition: vtkX3D.h:238
vtkFlyingEdges2D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkFlyingEdges2D.h:108
vtkFlyingEdges2D::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkFlyingEdges2D.h:122
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
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkFlyingEdges2D::vtkFlyingEdges2D
vtkFlyingEdges2D()
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:36
vtkFlyingEdges2D::GetMTime
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkFlyingEdges2D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkFlyingEdges2D.h:100
vtkContourValues.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkFlyingEdges2D::GetValue
double GetValue(int i)
Get the ith contour value.
Definition: vtkFlyingEdges2D.h:93
vtkFlyingEdges2D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkFlyingEdges2D.h:129
vtkFlyingEdges2D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkFlyingEdges2D.h:116
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45