forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkContourHelper.h
70 lines (59 loc) · 2.13 KB
/
vtkContourHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*=========================================================================
Program: Visualization Toolkit
Module: vtkContourHelper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkContourHelper - A utility class used by various contour filters
// .SECTION Description
// This is a simple utility class that can be used by various contour filters to
// produce either triangles or polygons based on the outputTriangles parameter
// .SECTION See Also
// vtkContourGrid vtkCutter vtkContourFilter
#ifndef __vtkContourHelper_h
#define __vtkContourHelper_h
#include "vtkSmartPointer.h" //for a member variable
#include "vtkPolygonBuilder.h" //for a member variable
class vtkIncrementalPointLocator;
class vtkCellArray;
class vtkPointData;
class vtkCellData;
class vtkCell;
class vtkDataArray;
class vtkIdList;
class vtkContourHelper
{
public:
vtkContourHelper(vtkIncrementalPointLocator *locator,
vtkCellArray *verts,
vtkCellArray *lines,
vtkCellArray* polys,
vtkPointData *inPd,
vtkCellData *inCd,
vtkPointData* outPd,
vtkCellData *outCd,
int estimatedSize,
bool outputTriangles);
~vtkContourHelper();
void Contour(vtkCell* cell, double value, vtkDataArray *cellScalars, vtkIdType cellId);
private:
vtkIncrementalPointLocator* Locator;
vtkCellArray* Verts;
vtkCellArray* Lines;
vtkCellArray* Polys;
vtkPointData* InPd;
vtkCellData* InCd;
vtkPointData* OutPd;
vtkCellData* OutCd;
vtkSmartPointer<vtkCellData> TriOutCd;
vtkCellArray* Tris;
vtkPolygonBuilder PolyBuilder;
vtkIdList* Poly;
bool GenerateTriangles;
};
#endif
// VTK-HeaderTest-Exclude: vtkContourHelper.h