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 =========================================================================*/
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 
48 class vtkBitArray;
49 class vtkDoubleArray;
51 
52 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGradient : public vtkHyperTreeGridAlgorithm
53 {
54 public:
55  static vtkHyperTreeGridGradient* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  vtkSetMacro(ResultArrayName, std::string);
64  vtkGetMacro(ResultArrayName, std::string);
66 
67 protected:
69  ~vtkHyperTreeGridGradient() override;
70 
75 
79  template <class Worker>
80  void RecursivelyProcessTree(vtkHyperTreeGridNonOrientedMooreSuperCursor*, 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 
100 private:
102  void operator=(const vtkHyperTreeGridGradient&) = delete;
103 };
104 
105 #endif // vtkHyperTreeGridGradient_h
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
vtkNew< vtkDoubleArray > OutGradient
Computed gradient.
dynamic, self-adjusting array of double
vtkSmartPointer< vtkDataArray > InScalars
Keep track of selected input scalars.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of unsigned char
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
Compute the gradient of a scalar field on a Hyper Tree Grid.
general representation of visualization data
Definition: vtkDataObject.h:65
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...