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
67#include "vtkContourValues.h" // Needed for direct access to ContourValues
68
69class vtkImageData;
70
71class VTKFILTERSCORE_EXPORT vtkFlyingEdges2D : public vtkPolyDataAlgorithm
72{
73public:
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
157protected:
159 ~vtkFlyingEdges2D() VTK_OVERRIDE;
160
162 vtkInformationVector *) VTK_OVERRIDE;
163 int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
164 vtkContourValues *ContourValues;
165
166 int ComputeScalars;
167 int ArrayComponent;
168
169private:
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
generate isoline(s) from a structured points set
double GetValue(int i)
Get the ith contour value.
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetNumberOfContours()
Get the number of contours in the list of contour values.
static vtkFlyingEdges2D * New()
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
~vtkFlyingEdges2D() override
void GetValues(double *contourValues)
Fill a supplied list with contour values.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:376
@ value
Definition: vtkX3D.h:220
@ port
Definition: vtkX3D.h:447
@ range
Definition: vtkX3D.h:238
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248