VTK
9.0.1
Common
DataModel
vtkHyperTreeGridNonOrientedCursor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkHyperTreeGridNonOrientedCursor.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 Nonice for more information.
13
14
=========================================================================*/
38
#ifndef vtkHyperTreeGridNonOrientedCursor_h
39
#define vtkHyperTreeGridNonOrientedCursor_h
40
41
#include "vtkCommonDataModelModule.h"
// For export macro
42
#include "
vtkObject.h
"
43
44
#include <vector>
// For std::vector
45
46
class
vtkHyperTree
;
47
class
vtkHyperTreeGrid
;
48
class
vtkHyperTreeGridEntry
;
49
50
class
VTKCOMMONDATAMODEL_EXPORT
vtkHyperTreeGridNonOrientedCursor
:
public
vtkObject
51
{
52
public
:
53
vtkTypeMacro(
vtkHyperTreeGridNonOrientedCursor
,
vtkObject
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
55
static
vtkHyperTreeGridNonOrientedCursor
*
New
();
56
61
vtkHyperTreeGridNonOrientedCursor
* Clone();
62
66
void
Initialize(
vtkHyperTreeGrid
* grid,
vtkIdType
treeIndex,
bool
create =
false
);
67
71
void
Initialize(
72
vtkHyperTreeGrid
* grid,
vtkHyperTree
* tree,
unsigned
int
level
,
vtkHyperTreeGridEntry
& entry);
73
77
void
Initialize(
vtkHyperTreeGrid
* grid,
vtkHyperTree
* tree,
unsigned
int
level
,
vtkIdType
index
);
78
80
83
vtkHyperTreeGrid
* GetGrid();
85
87
90
bool
HasTree
()
const
;
92
94
97
vtkHyperTree
* GetTree()
const
;
99
103
vtkIdType
GetVertexId();
104
109
vtkIdType
GetGlobalNodeIndex();
110
115
unsigned
char
GetDimension();
116
121
unsigned
char
GetNumberOfChildren();
122
126
void
SetGlobalIndexStart(
vtkIdType
index
);
127
131
void
SetGlobalIndexFromLocal(
vtkIdType
index
);
132
137
void
SetMask(
bool
state);
138
142
bool
IsMasked();
143
147
bool
IsLeaf();
148
152
void
SubdivideLeaf();
153
157
bool
IsRoot();
158
162
unsigned
int
GetLevel();
163
171
void
ToChild(
unsigned
char
ichild);
172
178
void
ToRoot();
179
185
void
ToParent();
186
187
protected
:
191
vtkHyperTreeGridNonOrientedCursor
();
192
196
~
vtkHyperTreeGridNonOrientedCursor
()
override
;
197
201
vtkHyperTreeGrid
*
Grid
;
202
206
vtkHyperTree
*
Tree
;
207
211
unsigned
int
Level
;
212
216
int
LastValidEntry
;
217
221
std::vector<vtkHyperTreeGridEntry>
Entries
;
222
223
private
:
224
vtkHyperTreeGridNonOrientedCursor
(
const
vtkHyperTreeGridNonOrientedCursor
&) =
delete
;
225
void
operator=(
const
vtkHyperTreeGridNonOrientedCursor
&) =
delete
;
226
};
227
#endif
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkHyperTreeGridNonOrientedCursor::Grid
vtkHyperTreeGrid * Grid
JB Reference sur l'hyper tree grid parcouru actuellement.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:201
vtkX3D::level
Definition:
vtkX3D.h:401
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition:
vtkHyperTreeGrid.h:96
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkHyperTreeGridNonOrientedCursor
Objects for traversal a HyperTreeGrid.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:50
vtkHyperTreeGridNonOrientedCursor::Tree
vtkHyperTree * Tree
JB.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:206
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkHyperTreeGridEntry
Entries are cache data for cursors.
Definition:
vtkHyperTreeGridEntry.h:74
vtkHyperTree
A data object structured as a tree.
Definition:
vtkHyperTree.h:178
vtkHyperTreeGridNonOrientedCursor::LastValidEntry
int LastValidEntry
JB Le dernier noeud valid enregistre.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:216
vtk::hypertreegrid::HasTree
bool HasTree(const T &e)
Definition:
vtkHyperTreeGridTools.h:25
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject.h
vtkX3D::index
Definition:
vtkX3D.h:252
vtkHyperTreeGridNonOrientedCursor::Entries
std::vector< vtkHyperTreeGridEntry > Entries
JB Hyper tree grid to which the cursor is attached.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:221
vtkHyperTreeGridNonOrientedCursor::Level
unsigned int Level
JB .
Definition:
vtkHyperTreeGridNonOrientedCursor.h:211
Generated on Wed Apr 26 2023 05:16:21 for VTK by
1.8.14