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 =========================================================================*/
25 #ifndef vtkContourHelper_h
26 #define vtkContourHelper_h
27 
28 #include "vtkFiltersCoreModule.h" // For export macro
29 #include "vtkSmartPointer.h" //for a member variable
30 #include "vtkPolygonBuilder.h" //for a member variable
31 
33 class vtkCellArray;
34 class vtkPointData;
35 class vtkCellData;
36 class vtkCell;
37 class vtkDataArray;
39 
40 class VTKFILTERSCORE_EXPORT vtkContourHelper
41 {
42 public:
44  vtkCellArray *verts,
45  vtkCellArray *lines,
46  vtkCellArray* polys,
47  vtkPointData *inPd,
48  vtkCellData *inCd,
49  vtkPointData* outPd,
50  vtkCellData *outCd,
51  int estimatedSize,
52  bool outputTriangles);
54  void Contour(vtkCell* cell, double value, vtkDataArray *cellScalars, vtkIdType cellId);
55 
56  private:
57  vtkContourHelper(const vtkContourHelper&) VTK_DELETE_FUNCTION;
58  vtkContourHelper& operator=(const vtkContourHelper&) VTK_DELETE_FUNCTION;
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:37
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:287
abstract class to specify cell behavior
Definition: vtkCell.h:59
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
The polygon output is the boundary of the union of the triangles.
object to represent cell connectivity
Definition: vtkCellArray.h:50
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.