Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ken Martin
VTK
Commits
c3484110
Commit
c3484110
authored
Mar 21, 2013
by
Philippe Pébay
Browse files
Implemented an IndexingMode iVar and convenience methods
Change-Id: I479a708b60328c802578541d4386a0776785a1c2
parent
f49aaf78
Changes
1
Show whitespace changes
Inline
Side-by-side
Common/DataModel/vtkHyperTreeGrid.h
View file @
c3484110
...
...
@@ -40,6 +40,9 @@
#include "vtkDataSet.h"
#include <map> // STL header for dual point coordinates ajustment
#define VTK_INDEXING_MODE_KJI 0
#define VTK_INDEXING_MODE_IJK 1
class
vtkHyperTreeCursor
;
class
vtkHyperTree
;
...
...
@@ -84,6 +87,20 @@ public:
void
SetGridSize
(
unsigned
int
[
3
]
);
vtkGetVector3Macro
(
GridSize
,
unsigned
int
);
// Description:
// Specify indexing mode:
// KJI: k first, i last: iterate in k / j / i order
// IJK: i first, k last: iterate in i / j / k order
// Default is KJI mode
vtkSetMacro
(
IndexingMode
,
unsigned
int
);
vtkGetMacro
(
IndexingMode
,
unsigned
int
);
void
SetIndexingModeToDefault
()
{
this
->
SetIndexingMode
(
VTK_INDEXING_MODE_KJI
);
}
void
SetIndexingModeToKJI
()
{
this
->
SetIndexingMode
(
VTK_INDEXING_MODE_KJI
);
}
void
SetIndexingModeToIJK
()
{
this
->
SetIndexingMode
(
VTK_INDEXING_MODE_IJK
);
}
// Description:
// Set/Get the subdivision factor in the grid refinement scheme
// NB: Can only be 2 or 3
...
...
@@ -320,6 +337,7 @@ protected:
unsigned
int
Dimension
;
// 1, 2 or 3.
unsigned
int
GridSize
[
3
];
unsigned
int
IndexingMode
;
unsigned
int
BranchFactor
;
unsigned
int
NumberOfChildren
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment