VTK  9.7.1
vtkHyperTreeGridCellCenterStrategy.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
11 #ifndef vtkHyperTreeGridCellCenterStrategy_h
12 #define vtkHyperTreeGridCellCenterStrategy_h
13 
14 #include "vtkFiltersHyperTreeModule.h" // For export macro
16 #include "vtkNew.h"
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 
20 class vtkBitArray;
21 class vtkDoubleArray;
23 
24 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridCellCenterStrategy
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
36  void Initialize(vtkHyperTreeGrid* inputHTG) override;
37 
43 
48 
49 private:
52 
53  // Input data
54  vtkUnsignedCharArray* InputGhost = nullptr;
55 
56  // Output array
57  vtkNew<vtkDoubleArray> CellCentersArray;
58 };
59 
60 VTK_ABI_NAMESPACE_END
61 #endif // vtkHyperTreeGridCellCenterStrategy_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual vtkDataArray * GetAndFinalizeArray()=0
Reimplement to build the output array from internally stored values.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
Abstract class for field definition used by vtkHyperTreeGridGenerateFields.
Define the CellCenter field used in vtkHyperTreeGridGenerateFields.
dynamic, self-adjusting array of unsigned char
virtual void Initialize([[maybe_unused]] vtkHyperTreeGrid *inputHTG)
Reimplement to initialize internal structures based on the given input HTG.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:32
virtual void Compute(vtkHyperTreeGridNonOrientedGeometryCursor *)
Reimplement to compute the data for the current cell.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...