VTK  9.3.20240328
vtkContourHelper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkContourHelper_h
22 #define vtkContourHelper_h
23 
24 #include "vtkFiltersCoreModule.h" // For export macro
25 #include "vtkWeakPointer.h" // For vtkWeakPointer
26 
27 VTK_ABI_NAMESPACE_BEGIN
29 class vtkCellArray;
30 class vtkPointData;
31 class vtkCellData;
32 class vtkCell;
33 class vtkDataArray;
34 
35 class VTKFILTERSCORE_EXPORT vtkContourHelper
36 {
37 public:
55  vtkCellArray* outLines, vtkCellArray* outPolys, vtkPointData* inPd, vtkCellData* inCd,
56  vtkPointData* outPd, vtkCellData* outCd, int trisEstimatedSize, bool outputTriangles);
57  ~vtkContourHelper() = default;
58 
73  void Contour(vtkCell* cell, double value, vtkDataArray* cellScalars, vtkIdType cellId);
74 
75 private:
76  vtkContourHelper(const vtkContourHelper&) = delete;
77  vtkContourHelper& operator=(const vtkContourHelper&) = delete;
78 
79  // Filled upon construction
88  int TrisEstimatedSize = 0;
89  bool OutputTriangles = false;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
94 // VTK-HeaderTest-Exclude: vtkContourHelper.h
object to represent cell connectivity
Definition: vtkCellArray.h:285
represent and manipulate cell attribute data
Definition: vtkCellData.h:140
abstract class to specify cell behavior
Definition: vtkCell.h:130
A utility class used by various contour filters.
vtkContourHelper(vtkIncrementalPointLocator *locator, vtkCellArray *outVerts, vtkCellArray *outLines, vtkCellArray *outPolys, vtkPointData *inPd, vtkCellData *inCd, vtkPointData *outPd, vtkCellData *outCd, int trisEstimatedSize, bool outputTriangles)
Contour helper constructor.
void Contour(vtkCell *cell, double value, vtkDataArray *cellScalars, vtkIdType cellId)
Generate contour for the given cell (and add it to the final result).
~vtkContourHelper()=default
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:154
Abstract class in support of both point location and point insertion.
represent and manipulate point attribute data
Definition: vtkPointData.h:139
@ value
Definition: vtkX3D.h:220
int vtkIdType
Definition: vtkType.h:315