VTK
vtkContourHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContourHelper.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 =========================================================================*/
27 #ifndef vtkContourHelper_h
28 #define vtkContourHelper_h
29 
30 #include "vtkFiltersCoreModule.h" // For export macro
31 #include "vtkSmartPointer.h" //for a member variable
32 #include "vtkPolygonBuilder.h" //for a member variable
33 
35 class vtkCellArray;
36 class vtkPointData;
37 class vtkCellData;
38 class vtkCell;
39 class vtkDataArray;
40 class vtkIdList;
41 
43 {
44 public:
46  vtkCellArray *verts,
47  vtkCellArray *lines,
48  vtkCellArray* polys,
49  vtkPointData *inPd,
50  vtkCellData *inCd,
51  vtkPointData* outPd,
52  vtkCellData *outCd,
53  int estimatedSize,
54  bool outputTriangles);
56  void Contour(vtkCell* cell, double value, vtkDataArray *cellScalars, vtkIdType cellId);
57 
58  private:
60  vtkCellArray* Verts;
61  vtkCellArray* Lines;
62  vtkCellArray* Polys;
63  vtkPointData* InPd;
64  vtkCellData* InCd;
65  vtkPointData* OutPd;
66  vtkCellData* OutCd;
68 
69  vtkCellArray* Tris;
70  vtkPolygonBuilder PolyBuilder;
71  vtkIdList* Poly;
72  bool GenerateTriangles;
73 };
74 
75 #endif
76 // VTK-HeaderTest-Exclude: vtkContourHelper.h
represent and manipulate point attribute data
Definition: vtkPointData.h:36
#define VTKFILTERSCORE_EXPORT
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:275
abstract class to specify cell behavior
Definition: vtkCell.h:61
list of point or cell ids
Definition: vtkIdList.h:35
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
object to represent cell connectivity
Definition: vtkCellArray.h:49
int Contour(vtkDataSet *input, vtkPolyData *output, vtkDataArray *field, float isoValue, bool computeScalars)
A utility class used by various contour filters.