VTK
vtkFlyingEdges3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFlyingEdges3D.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 vtkFlyingEdges3D_h
62 #define vtkFlyingEdges3D_h
63 
64 #include "vtkFiltersCoreModule.h" // For export macro
65 #include "vtkPolyDataAlgorithm.h"
66 #include "vtkContourValues.h" // Passes calls through
67 
68 class vtkImageData;
69 
70 class VTKFILTERSCORE_EXPORT vtkFlyingEdges3D : public vtkPolyDataAlgorithm
71 {
72 public:
73  static vtkFlyingEdges3D *New();
75  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
76 
80  vtkMTimeType GetMTime() VTK_OVERRIDE;
81 
83 
89  vtkSetMacro(ComputeNormals,int);
90  vtkGetMacro(ComputeNormals,int);
91  vtkBooleanMacro(ComputeNormals,int);
93 
95 
103  vtkSetMacro(ComputeGradients,int);
104  vtkGetMacro(ComputeGradients,int);
105  vtkBooleanMacro(ComputeGradients,int);
107 
109 
112  vtkSetMacro(ComputeScalars,int);
113  vtkGetMacro(ComputeScalars,int);
114  vtkBooleanMacro(ComputeScalars,int);
116 
118 
124  vtkSetMacro(InterpolateAttributes,int);
125  vtkGetMacro(InterpolateAttributes,int);
126  vtkBooleanMacro(InterpolateAttributes,int);
128 
133  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
134 
138  double GetValue(int i) {return this->ContourValues->GetValue(i);}
139 
144  double *GetValues() {return this->ContourValues->GetValues();}
145 
151  void GetValues(double *contourValues) {
152  this->ContourValues->GetValues(contourValues);}
153 
159  void SetNumberOfContours(int number) {
160  this->ContourValues->SetNumberOfContours(number);}
161 
166  return this->ContourValues->GetNumberOfContours();}
167 
172  void GenerateValues(int numContours, double range[2]) {
173  this->ContourValues->GenerateValues(numContours, range);}
174 
179  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
180  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
181 
183 
186  vtkSetMacro(ArrayComponent, int);
187  vtkGetMacro(ArrayComponent, int);
189 
190 protected:
192  ~vtkFlyingEdges3D() VTK_OVERRIDE;
193 
200 
202  vtkInformationVector *) VTK_OVERRIDE;
204  vtkInformationVector *) VTK_OVERRIDE;
205  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
206 
207 private:
208  vtkFlyingEdges3D(const vtkFlyingEdges3D&) VTK_DELETE_FUNCTION;
209  void operator=(const vtkFlyingEdges3D&) VTK_DELETE_FUNCTION;
210 };
211 
212 #endif
helper object to manage setting and generating contour values
generate isosurface from 3D image data (volume)
double GetValue(int i)
Get the ith contour value.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
int GetNumberOfContours()
Get the number of contours in the list of contour values.
vtkContourValues * ContourValues
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
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
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
double * GetValues()
Get a pointer to an array of contour values.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.