VTK
9.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
41
#ifndef vtkHyperTreeGridNonOrientedCursor_h
42
#define vtkHyperTreeGridNonOrientedCursor_h
43
44
#include "vtkCommonDataModelModule.h"
// For export macro
45
#include "
vtkObject.h
"
46
47
#include <vector>
// For std::vector
48
49
class
vtkHyperTree
;
50
class
vtkHyperTreeGrid
;
51
class
vtkHyperTreeGridEntry
;
52
53
class
VTKCOMMONDATAMODEL_EXPORT
vtkHyperTreeGridNonOrientedCursor
:
public
vtkObject
54
{
55
public
:
56
vtkTypeMacro(
vtkHyperTreeGridNonOrientedCursor
,
vtkObject
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
static
vtkHyperTreeGridNonOrientedCursor
*
New
();
59
64
vtkHyperTreeGridNonOrientedCursor
* Clone();
65
69
void
Initialize(
vtkHyperTreeGrid
* grid,
vtkIdType
treeIndex,
bool
create =
false
);
70
74
void
Initialize(
75
vtkHyperTreeGrid
* grid,
vtkHyperTree
* tree,
unsigned
int
level
,
vtkHyperTreeGridEntry
& entry);
76
80
void
Initialize(
vtkHyperTreeGrid
* grid,
vtkHyperTree
* tree,
unsigned
int
level
,
vtkIdType
index
);
81
83
86
vtkHyperTreeGrid
* GetGrid();
88
90
93
bool
HasTree
()
const
;
95
97
100
vtkHyperTree
* GetTree()
const
;
102
106
vtkIdType
GetVertexId();
107
112
vtkIdType
GetGlobalNodeIndex();
113
118
unsigned
char
GetDimension();
119
124
unsigned
char
GetNumberOfChildren();
125
129
void
SetGlobalIndexStart(
vtkIdType
index
);
130
134
void
SetGlobalIndexFromLocal(
vtkIdType
index
);
135
140
void
SetMask(
bool
state);
141
145
bool
IsMasked();
146
150
bool
IsLeaf();
151
155
void
SubdivideLeaf();
156
160
bool
IsRoot();
161
165
unsigned
int
GetLevel();
166
174
void
ToChild(
unsigned
char
ichild);
175
181
void
ToRoot();
182
188
void
ToParent();
189
190
protected
:
194
vtkHyperTreeGridNonOrientedCursor
();
195
199
~
vtkHyperTreeGridNonOrientedCursor
()
override
;
200
204
vtkHyperTreeGrid
*
Grid
;
205
209
vtkHyperTree
*
Tree
;
210
214
unsigned
int
Level
;
215
219
int
LastValidEntry
;
220
224
std::vector<vtkHyperTreeGridEntry>
Entries
;
225
226
private
:
227
vtkHyperTreeGridNonOrientedCursor
(
const
vtkHyperTreeGridNonOrientedCursor
&) =
delete
;
228
void
operator=(
const
vtkHyperTreeGridNonOrientedCursor
&) =
delete
;
229
};
230
#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:204
vtkX3D::level
Definition:
vtkX3D.h:401
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition:
vtkHyperTreeGrid.h:99
vtkIdType
int vtkIdType
Definition:
vtkType.h:332
vtkHyperTreeGridNonOrientedCursor
Objects for traversal a HyperTreeGrid.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:53
vtkHyperTreeGridNonOrientedCursor::Tree
vtkHyperTree * Tree
JB.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:209
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkHyperTreeGridEntry
Entries are cache data for cursors.
Definition:
vtkHyperTreeGridEntry.h:72
vtkHyperTree
A data object structured as a tree.
Definition:
vtkHyperTree.h:179
vtkHyperTreeGridNonOrientedCursor::LastValidEntry
int LastValidEntry
JB Le dernier noeud valid enregistre.
Definition:
vtkHyperTreeGridNonOrientedCursor.h:219
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:224
vtkHyperTreeGridNonOrientedCursor::Level
unsigned int Level
JB .
Definition:
vtkHyperTreeGridNonOrientedCursor.h:214
Generated on Mon Oct 16 2023 11:19:23 for VTK by
1.8.10