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
helper object to manage setting and generating contour values
Store vtkAlgorithm input/output information.
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.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
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.