Commit f19d51fa authored by Berk Geveci's avatar Berk Geveci
Browse files

ENH: Added convenience function to add datasets from wrapped languages.

parent 444a6de6
......@@ -30,7 +30,7 @@
#include <vtkstd/vector>
#include <assert.h>
vtkCxxRevisionMacro(vtkHierarchicalBoxDataSet, "1.22");
vtkCxxRevisionMacro(vtkHierarchicalBoxDataSet, "1.23");
vtkStandardNewMacro(vtkHierarchicalBoxDataSet);
vtkInformationKeyMacro(vtkHierarchicalBoxDataSet,BOX,IntegerVector);
......@@ -113,6 +113,16 @@ unsigned int vtkHierarchicalBoxDataSet::GetNumberOfDataSets(unsigned int level)
return 0;
}
//----------------------------------------------------------------------------
void vtkHierarchicalBoxDataSet::SetDataSet(
unsigned int level, unsigned int id,
int LoCorner[3], int HiCorner[3], vtkUniformGrid* dataSet)
{
vtkAMRBox box(3, LoCorner, HiCorner);
this->SetDataSet(level, id, box, dataSet);
}
//----------------------------------------------------------------------------
void vtkHierarchicalBoxDataSet::SetDataSet(
unsigned int level, unsigned int id, vtkAMRBox& box, vtkUniformGrid* dataSet)
......
......@@ -85,6 +85,11 @@ public:
virtual void SetDataSet(vtkCompositeDataIterator* iter, vtkDataObject* dataObj)
{ this->Superclass::SetDataSet(iter, dataObj); }
// Description:
// Set the dataset pointer for a given node. This will resize the number of
// levels and the number of datasets in the level to fit level, id requested.
void SetDataSet(unsigned int level, unsigned int id,
int LoCorner[3], int HiCorner[3], vtkUniformGrid* dataSet);
//BTX
// Description:
// Set the dataset pointer for a given node. This will resize the number of
......
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