VTK  9.7.1
vtkHyperTreeGridTotalVisibleVolumeStrategy.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
14 #ifndef vtkHyperTreeGridTotalVisibleVolumeStrategy_h
15 #define vtkHyperTreeGridTotalVisibleVolumeStrategy_h
16 
17 #include "vtkFiltersHyperTreeModule.h" // For export macro
19 #include "vtkNew.h"
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 
23 class vtkCellData;
24 class vtkDataArray;
25 class vtkDoubleArray;
26 class vtkHyperTreeGrid;
28 
29 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridTotalVisibleVolumeStrategy
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41  bool Initialize(std::unordered_map<std::string, Field> fieldMap) override;
42 
49  std::unordered_map<std::string, Field> fieldMap) override;
50 
55 
56 private:
59 
60  // Aggregated volume
61  double TotalVisibleVolume = 0;
62 
63  // Output array
64  vtkNew<vtkDoubleArray> TotalVisibleVolumeArray;
65 };
66 
67 VTK_ABI_NAMESPACE_END
68 #endif // vtkHyperTreeGridTotalVisibleVolumeStrategy_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.
represent and manipulate cell attribute data
Definition: vtkCellData.h:31
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.
virtual void Initialize([[maybe_unused]] vtkHyperTreeGrid *inputHTG)
Reimplement to initialize internal structures based on the given input HTG.
Define the TotalVisibleVolume field data used in vtkHyperTreeGridGenerateFields.
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...