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 =========================================================================*/
24 #ifndef vtkContourHelper_h
25 #define vtkContourHelper_h
26 
27 #include "vtkFiltersCoreModule.h" // For export macro
28 #include "vtkSmartPointer.h" //for a member variable
29 #include "vtkPolygonBuilder.h" //for a member variable
30 
32 class vtkCellArray;
33 class vtkPointData;
34 class vtkCellData;
35 class vtkCell;
36 class vtkDataArray;
38 
40 {
41 public:
43  vtkCellArray *verts,
44  vtkCellArray *lines,
45  vtkCellArray* polys,
46  vtkPointData *inPd,
47  vtkCellData *inCd,
48  vtkPointData* outPd,
49  vtkCellData *outCd,
50  int estimatedSize,
51  bool outputTriangles);
53  void Contour(vtkCell* cell, double value, vtkDataArray *cellScalars, vtkIdType cellId);
54 
55  private:
56  // Not implemented
58  vtkContourHelper& operator=(const vtkContourHelper&);
59 
61  vtkCellArray* Verts;
62  vtkCellArray* Lines;
63  vtkCellArray* Polys;
64  vtkPointData* InPd;
65  vtkCellData* InCd;
66  vtkPointData* OutPd;
67  vtkCellData* OutCd;
69 
70  vtkCellArray* Tris;
71  vtkPolygonBuilder PolyBuilder;
72  vtkIdListCollection* PolyCollection;
73  bool GenerateTriangles;
74 };
75 
76 #endif
77 // 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:247
abstract class to specify cell behavior
Definition: vtkCell.h:58
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
object to represent cell connectivity
Definition: vtkCellArray.h:49
maintain an unordered list of dataarray objects
int Contour(vtkDataSet *input, vtkPolyData *output, vtkDataArray *field, float isoValue, bool computeScalars)
A utility class used by various contour filters.