VTK  9.2.6
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=========================================================================*/
31
32#ifndef vtkHyperTreeGridGradient_h
33#define vtkHyperTreeGridGradient_h
34
35#include "vtkFiltersHyperTreeModule.h" // For export macro
36
38#include "vtkNew.h" // for internal fields
39#include "vtkSmartPointer.h" // for internal fields
40
41#include <string> // for internal fields
42
45class vtkBitArray;
46class vtkDoubleArray;
48
49class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGradient : public vtkHyperTreeGridAlgorithm
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
60 vtkSetMacro(ResultArrayName, std::string);
61 vtkGetMacro(ResultArrayName, std::string);
63
64protected:
67
72
76 template <class Worker>
78
79 // Fields
80
81 std::string ResultArrayName = "Gradient";
82
87
92
93 // shortcut to HTG fields
94 vtkBitArray* InMask = nullptr;
96
97private:
99 void operator=(const vtkHyperTreeGridGradient&) = delete;
100};
101
102#endif // vtkHyperTreeGridGradient_h
dynamic, self-adjusting array of bits
Definition vtkBitArray.h:34
general representation of visualization data
dynamic, self-adjusting array of double
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.
vtkUnsignedCharArray * InGhostArray
~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:34
Allocate and hold a VTK object.
Definition vtkNew.h:56
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned char