Commit 688df2ac authored by George Zagaris's avatar George Zagaris
Browse files

ENH: Added vtkUniformGridAMRDataIterator

Custom iterator for vtkUniformGridAMR datasets

Change-Id: Ife39f5cdf7d172b9a39755672d36002f5396156a
parent c7b730a7
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHierarchicalBoxDataIterator.cxx
Module: vtkUniformGridAMRDataIterator.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
......@@ -12,24 +12,24 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#include "vtkHierarchicalBoxDataIterator.h"
#include "vtkUniformGridAMRDataIterator.h"
#include "vtkCompositeDataSetInternals.h"
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkHierarchicalBoxDataIterator);
vtkStandardNewMacro(vtkUniformGridAMRDataIterator);
//----------------------------------------------------------------------------
vtkHierarchicalBoxDataIterator::vtkHierarchicalBoxDataIterator()
vtkUniformGridAMRDataIterator::vtkUniformGridAMRDataIterator()
{
}
//----------------------------------------------------------------------------
vtkHierarchicalBoxDataIterator::~vtkHierarchicalBoxDataIterator()
vtkUniformGridAMRDataIterator::~vtkUniformGridAMRDataIterator()
{
}
//----------------------------------------------------------------------------
unsigned int vtkHierarchicalBoxDataIterator::GetCurrentLevel()
unsigned int vtkUniformGridAMRDataIterator::GetCurrentLevel()
{
if (this->IsDoneWithTraversal())
{
......@@ -42,7 +42,7 @@ unsigned int vtkHierarchicalBoxDataIterator::GetCurrentLevel()
}
//----------------------------------------------------------------------------
unsigned int vtkHierarchicalBoxDataIterator::GetCurrentIndex()
unsigned int vtkUniformGridAMRDataIterator::GetCurrentIndex()
{
if (this->IsDoneWithTraversal())
{
......@@ -59,7 +59,7 @@ unsigned int vtkHierarchicalBoxDataIterator::GetCurrentIndex()
}
//----------------------------------------------------------------------------
void vtkHierarchicalBoxDataIterator::PrintSelf(ostream& os, vtkIndent indent)
void vtkUniformGridAMRDataIterator::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
}
......
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHierarchicalBoxDataIterator.h
Module: vtkUniformGridAMRDataIterator.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
......@@ -12,20 +12,21 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkHierarchicalBoxDataIterator - subclass of vtkCompositeDataIterator
// .NAME vtkUniformGridAMRDataIterator - subclass of vtkCompositeDataIterator
// with API to get current level and dataset index.
// .SECTION Description
#ifndef __vtkHierarchicalBoxDataIterator_h
#define __vtkHierarchicalBoxDataIterator_h
#ifndef __vtkUniformGridAMRDataIterator_h
#define __vtkUniformGridAMRDataIterator_h
#include "vtkCompositeDataIterator.h"
class VTK_FILTERING_EXPORT vtkHierarchicalBoxDataIterator : public vtkCompositeDataIterator
class VTK_FILTERING_EXPORT vtkUniformGridAMRDataIterator :
public vtkCompositeDataIterator
{
public:
static vtkHierarchicalBoxDataIterator* New();
vtkTypeMacro(vtkHierarchicalBoxDataIterator, vtkCompositeDataIterator);
static vtkUniformGridAMRDataIterator* New();
vtkTypeMacro(vtkUniformGridAMRDataIterator, vtkCompositeDataIterator);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......@@ -39,12 +40,12 @@ public:
//BTX
protected:
vtkHierarchicalBoxDataIterator();
~vtkHierarchicalBoxDataIterator();
vtkUniformGridAMRDataIterator();
~vtkUniformGridAMRDataIterator();
private:
vtkHierarchicalBoxDataIterator(const vtkHierarchicalBoxDataIterator&); // Not implemented.
void operator=(const vtkHierarchicalBoxDataIterator&); // Not implemented.
vtkUniformGridAMRDataIterator(const vtkUniformGridAMRDataIterator&); // Not implemented.
void operator=(const vtkUniformGridAMRDataIterator&); // Not implemented.
//ETX
};
......
Supports Markdown
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