VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkSmartPointer.h" //for a member variable
28 #include "vtkPolygonBuilder.h" //for a member variable
29 
31 class vtkCellArray;
32 class vtkPointData;
33 class vtkCellData;
34 class vtkCell;
35 class vtkDataArray;
36 class vtkIdList;
37 
39 {
40 public:
42  vtkCellArray *verts,
43  vtkCellArray *lines,
44  vtkCellArray* polys,
45  vtkPointData *inPd,
46  vtkCellData *inCd,
47  vtkPointData* outPd,
48  vtkCellData *outCd,
49  int estimatedSize,
50  bool outputTriangles);
52  void Contour(vtkCell* cell, double value, vtkDataArray *cellScalars, vtkIdType cellId);
53 
54  private:
56  vtkCellArray* Verts;
57  vtkCellArray* Lines;
58  vtkCellArray* Polys;
59  vtkPointData* InPd;
60  vtkCellData* InCd;
61  vtkPointData* OutPd;
62  vtkCellData* OutCd;
63  vtkSmartPointer<vtkCellData> TriOutCd;
64 
65  vtkCellArray* Tris;
66  vtkPolygonBuilder PolyBuilder;
67  vtkIdList* Poly;
68  bool GenerateTriangles;
69 };
70 
71 #endif
72 // VTK-HeaderTest-Exclude: vtkContourHelper.h
void Contour(vtkCell *cell, double value, vtkDataArray *cellScalars, vtkIdType cellId)
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
object to represent cell connectivity
Definition: vtkCellArray.h:49
vtkContourHelper(vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkCellData *inCd, vtkPointData *outPd, vtkCellData *outCd, int estimatedSize, bool outputTriangles)
A utility class used by various contour filters.