VTK  9.3.1
vtkHyperTreeCursor.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
22 #ifndef vtkHyperTreeCursor_h
23 #define vtkHyperTreeCursor_h
24 
25 #include "vtkCommonDataModelModule.h" // For export macro
26 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
27 #include "vtkObject.h"
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkHyperTree;
31 
33  "Use other Hyper Tree Grid cursors instead.") VTKCOMMONDATAMODEL_EXPORT vtkHyperTreeCursor
34  : public vtkObject
35 {
36 public:
37  vtkTypeMacro(vtkHyperTreeCursor, vtkObject);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  virtual void SetTree(vtkHyperTree*) = 0;
44 
48  virtual vtkHyperTree* GetTree() = 0;
49 
53  virtual vtkIdType GetVertexId() = 0;
54 
58  virtual bool IsLeaf() = 0;
59 
63  virtual bool IsRoot() = 0;
64 
69  virtual unsigned int GetLevel() = 0;
70 
76  virtual int GetChildIndex() = 0;
77 
83  virtual void ToRoot() = 0;
84 
89  virtual void ToParent() = 0;
90 
96  virtual void ToChild(int child) = 0;
97 
104  virtual void ToSameVertex(vtkHyperTreeCursor* other) = 0;
105 
111  virtual bool IsEqual(vtkHyperTreeCursor* other) = 0;
112 
118  virtual vtkHyperTreeCursor* Clone() = 0;
119 
124  virtual int SameTree(vtkHyperTreeCursor* other) = 0;
125 
130  virtual int GetNumberOfChildren() = 0;
131 
136  virtual int GetDimension() = 0;
137 
138 protected:
139  // Constructor
141  ~vtkHyperTreeCursor() override;
142 
143 private:
144  vtkHyperTreeCursor(const vtkHyperTreeCursor&) = delete;
145  void operator=(const vtkHyperTreeCursor&) = delete;
146 };
147 VTK_ABI_NAMESPACE_END
148 #endif
149 // VTK-HeaderTest-Exclude: vtkHyperTreeCursor.h
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_DEPRECATED_IN_9_2_0(reason)
int vtkIdType
Definition: vtkType.h:315
Objects for depth-first traversal HyperTrees.
a simple class to control print indentation
Definition: vtkIndent.h:28
A data object structured as a tree.
Definition: vtkHyperTree.h:168