VTK
dox
Common
DataModel
vtkHyperTreeCursor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkHyperTreeCursor.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
=========================================================================*/
34
#ifndef vtkHyperTreeCursor_h
35
#define vtkHyperTreeCursor_h
36
37
#include "vtkCommonDataModelModule.h"
// For export macro
38
#include "
vtkObject.h
"
39
40
class
vtkHyperTree
;
41
42
class
VTKCOMMONDATAMODEL_EXPORT
vtkHyperTreeCursor
:
public
vtkObject
43
{
44
public
:
45
vtkTypeMacro(
vtkHyperTreeCursor
,
vtkObject
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
51
virtual
void
SetTree(
vtkHyperTree
* ) = 0;
52
56
virtual
vtkHyperTree
* GetTree() = 0;
57
61
virtual
vtkIdType
GetVertexId() = 0;
62
66
virtual
bool
IsLeaf() = 0;
67
71
virtual
bool
IsRoot() = 0;
72
77
virtual
unsigned
int
GetLevel() = 0;
78
84
virtual
int
GetChildIndex() = 0;
85
91
virtual
void
ToRoot() = 0;
92
97
virtual
void
ToParent() = 0;
98
104
virtual
void
ToChild(
int
child ) = 0;
105
112
virtual
void
ToSameVertex(
vtkHyperTreeCursor
* other ) = 0;
113
119
virtual
bool
IsEqual(
vtkHyperTreeCursor
* other ) = 0;
120
126
virtual
vtkHyperTreeCursor
* Clone() = 0;
127
132
virtual
int
SameTree(
vtkHyperTreeCursor
* other ) = 0;
133
138
virtual
int
GetNumberOfChildren() = 0;
139
144
virtual
int
GetDimension() = 0;
145
146
protected
:
147
// Constructor
148
vtkHyperTreeCursor
();
149
~
vtkHyperTreeCursor
()
override
;
150
151
private
:
152
vtkHyperTreeCursor
(
const
vtkHyperTreeCursor
&) =
delete
;
153
void
operator=(
const
vtkHyperTreeCursor
&) =
delete
;
154
};
155
#endif
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkHyperTreeCursor
Objects for depth-first traversal HyperTrees.
Definition:
vtkHyperTreeCursor.h:42
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkHyperTree
An object structured as a tree where each node has exactly either 2^d or 3^d children.
Definition:
vtkHyperTree.h:142
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
Generated by
1.8.16