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 =========================================================================*/
59 #ifndef vtkFlyingEdges2D_h
60 #define vtkFlyingEdges2D_h
61 
62 #include "vtkFiltersCoreModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 #include "vtkContourValues.h" // Needed for direct access to ContourValues
65 
66 class vtkImageData;
67 
68 class VTKFILTERSCORE_EXPORT vtkFlyingEdges2D : public vtkPolyDataAlgorithm
69 {
70 public:
71  static vtkFlyingEdges2D *New();
73  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
74 
78  vtkMTimeType GetMTime() VTK_OVERRIDE;
79 
84  void SetValue(int i, double value)
85  {this->ContourValues->SetValue(i,value);}
86 
90  double GetValue(int i)
91  {return this->ContourValues->GetValue(i);}
92 
97  double *GetValues()
98  {return this->ContourValues->GetValues();}
99 
105  void GetValues(double *contourValues)
106  {this->ContourValues->GetValues(contourValues);}
107 
113  void SetNumberOfContours(int number)
114  {this->ContourValues->SetNumberOfContours(number);}
115 
120  {return this->ContourValues->GetNumberOfContours();}
121 
126  void GenerateValues(int numContours, double range[2])
127  {this->ContourValues->GenerateValues(numContours, range);}
128 
133  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
134  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
135 
137 
141  vtkSetMacro(ComputeScalars,int);
142  vtkGetMacro(ComputeScalars,int);
143  vtkBooleanMacro(ComputeScalars,int);
145 
147 
150  vtkSetMacro(ArrayComponent, int);
151  vtkGetMacro(ArrayComponent, int);
153 
154 protected:
156  ~vtkFlyingEdges2D() VTK_OVERRIDE;
157 
158  int RequestData(vtkInformation *, vtkInformationVector **,
159  vtkInformationVector *) VTK_OVERRIDE;
160  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
161  vtkContourValues *ContourValues;
162 
163  int ComputeScalars;
164  int ArrayComponent;
165 
166 private:
167  vtkFlyingEdges2D(const vtkFlyingEdges2D&) VTK_DELETE_FUNCTION;
168  void operator=(const vtkFlyingEdges2D&) VTK_DELETE_FUNCTION;
169 };
170 
171 
172 #endif
helper object to manage setting and generating contour values
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
double GetValue(int i)
Get the ith contour value.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
double * GetValues()
Get a pointer to an array of contour values.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
generate isoline(s) from a structured points set
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int GetNumberOfContours()
Get the number of contours in the list of contour values.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.