VTK  9.2.5
vtkHyperTreeGridGradient.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkHyperTreeGridGradient.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=========================================================================*/
35#ifndef vtkHyperTreeGridGradient_h
36#define vtkHyperTreeGridGradient_h
37
38#include "vtkFiltersHyperTreeModule.h" // For export macro
39
41#include "vtkNew.h" // for internal fields
42#include "vtkSmartPointer.h" // for internal fields
43
44#include <string> // for internal fields
45
48class vtkBitArray;
49class vtkDoubleArray;
51
52class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGradient : public vtkHyperTreeGridAlgorithm
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
63 vtkSetMacro(ResultArrayName, std::string);
64 vtkGetMacro(ResultArrayName, std::string);
66
67protected:
70
75
79 template <class Worker>
81
82 // Fields
83
84 std::string ResultArrayName = "Gradient";
85
90
95
96 // shortcut to HTG fields
97 vtkBitArray* InMask = nullptr;
98 vtkUnsignedCharArray* InGhostArray = nullptr;
99
100private:
102 void operator=(const vtkHyperTreeGridGradient&) = delete;
103};
104
105#endif // vtkHyperTreeGridGradient_h
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:37
general representation of visualization data
Definition: vtkDataObject.h:66
dynamic, self-adjusting array of double
Superclass for algorithms that produce a hyper tree grid as output.
Compute the gradient of a scalar field on a Hyper Tree Grid.
vtkSmartPointer< vtkDataArray > InScalars
Keep track of selected input scalars.
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to generate gradient of hyper tree grid.
static vtkHyperTreeGridGradient * New()
vtkNew< vtkDoubleArray > OutGradient
Computed gradient.
void RecursivelyProcessTree(vtkHyperTreeGridNonOrientedMooreSuperCursor *, Worker &)
Recursively descend into tree down to leaves.
~vtkHyperTreeGridGradient() override
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.
a simple class to control print indentation
Definition: vtkIndent.h:40
Allocate and hold a VTK object.
Definition: vtkNew.h:62
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned char