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 =========================================================================*/
61 #ifndef vtkFlyingEdges2D_h
62 #define vtkFlyingEdges2D_h
63 
64 #include "vtkFiltersCoreModule.h" // For export macro
65 #include "vtkPolyDataAlgorithm.h"
66 #include "vtkContourValues.h" // Needed for direct access to ContourValues
67 
68 class vtkImageData;
69 
71 {
72 public:
73  static vtkFlyingEdges2D *New();
75  void PrintSelf(ostream& os, vtkIndent indent);
76 
78  unsigned long int GetMTime();
79 
81 
83  void SetValue(int i, double value)
84  {this->ContourValues->SetValue(i,value);}
86 
88 
89  double GetValue(int i)
90  {return this->ContourValues->GetValue(i);}
92 
94 
96  double *GetValues()
97  {return this->ContourValues->GetValues();}
99 
101 
104  void GetValues(double *contourValues)
105  {this->ContourValues->GetValues(contourValues);}
107 
109 
112  void SetNumberOfContours(int number)
113  {this->ContourValues->SetNumberOfContours(number);}
115 
117 
119  {return this->ContourValues->GetNumberOfContours();}
121 
123 
125  void GenerateValues(int numContours, double range[2])
126  {this->ContourValues->GenerateValues(numContours, range);}
128 
130 
132  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
133  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
135 
137 
139  vtkSetMacro(ComputeScalars,int);
140  vtkGetMacro(ComputeScalars,int);
141  vtkBooleanMacro(ComputeScalars,int);
143 
145 
147  vtkSetMacro(ArrayComponent, int);
148  vtkGetMacro(ArrayComponent, int);
150 
151 protected:
153  ~vtkFlyingEdges2D();
154 
159 
162 
163 private:
164  vtkFlyingEdges2D(const vtkFlyingEdges2D&); // Not implemented.
165  void operator=(const vtkFlyingEdges2D&); // Not implemented.
166 };
167 
168 
169 #endif
helper object to manage setting and generating contour values
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetNumberOfContours(int number)
#define VTKFILTERSCORE_EXPORT
double GetValue(int i)
void GenerateValues(int numContours, double range[2])
double * GetValues()
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
void SetValue(int i, double value)
vtkContourValues * ContourValues
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
generate isoline(s) from a structured points set
void GetValues(double *contourValues)
Store zero or more vtkInformation instances.