Commit ff7d2a71 authored by George Zagaris's avatar George Zagaris
Browse files

ENH: Adding support for AMR classes

Added support for vtkOverlappingAMR and vtkNonOverlappingAMR.

Change-Id: Ib7a7d1786d339162417a4426a69ccb87b094ebcb
parent 7323ba79
......@@ -27,6 +27,8 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkGenericDataSet.h"
#include "vtkGraph.h"
#include "vtkHierarchicalBoxDataSet.h"
#include "vtkOverlappingAMR.h"
#include "vtkNonOverlappingAMR.h"
#include "vtkHyperOctree.h"
#include "vtkImageData.h"
#include "vtkMultiBlockDataSet.h"
......@@ -71,7 +73,7 @@ static const char* vtkDataObjectTypesStrings[] = {
"vtkMultiGroupDataSet", // OBSOLETE
"vtkMultiBlockDataSet",
"vtkHierarchicalDataSet", // OBSOLETE
"vtkHierarchicalBoxDataSet",
"vtkHierarchicalBoxDataSet", // OBSOLETE
"vtkGenericDataSet",
"vtkHyperOctree",
"vtkTemporalDataSet",
......@@ -199,6 +201,14 @@ vtkDataObject* vtkDataObjectTypes::NewDataObject(const char* type)
{
return vtkHierarchicalBoxDataSet::New();
}
else if(strcmp(type,"vtkOverlappingAMR")==0)
{
return vtkOverlappingAMR::New();
}
else if(strcmp(type,"vtkNonOverlappingAMR")==0)
{
return vtkNonOverlappingAMR::New();
}
else if(strcmp(type, "vtkHyperOctree") == 0)
{
return vtkHyperOctree::New();
......
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