An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit c3484110 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Implemented an IndexingMode iVar and convenience methods

Change-Id: I479a708b60328c802578541d4386a0776785a1c2
parent f49aaf78
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment