Commit 388bc479 authored by Jeff Baumes's avatar Jeff Baumes
Browse files

ENH: Added default piece and extent information to the constructor of...

ENH: Added default piece and extent information to the constructor of vtkAbstractGraph and vtkTable.
parent a7986e24
......@@ -35,12 +35,17 @@
double vtkAbstractGraph::DefaultPoint[3] = {0, 0, 0};
vtkCxxRevisionMacro(vtkAbstractGraph, "1.4");
vtkCxxRevisionMacro(vtkAbstractGraph, "1.5");
//----------------------------------------------------------------------------
vtkAbstractGraph::vtkAbstractGraph()
{
this->Line = vtkLine::New();
this->Information->Set(vtkDataObject::DATA_EXTENT_TYPE(), VTK_PIECES_EXTENT);
this->Information->Set(vtkDataObject::DATA_PIECE_NUMBER(), -1);
this->Information->Set(vtkDataObject::DATA_NUMBER_OF_PIECES(), 1);
this->Information->Set(vtkDataObject::DATA_NUMBER_OF_GHOST_LEVELS(), 0);
}
//----------------------------------------------------------------------------
......
......@@ -28,7 +28,7 @@
// Standard functions
//
vtkCxxRevisionMacro(vtkTable, "1.5");
vtkCxxRevisionMacro(vtkTable, "1.6");
vtkStandardNewMacro(vtkTable);
//----------------------------------------------------------------------------
......@@ -36,6 +36,11 @@ vtkStandardNewMacro(vtkTable);
vtkTable::vtkTable()
{
this->Rows = 0;
this->Information->Set(vtkDataObject::DATA_EXTENT_TYPE(), VTK_PIECES_EXTENT);
this->Information->Set(vtkDataObject::DATA_PIECE_NUMBER(), -1);
this->Information->Set(vtkDataObject::DATA_NUMBER_OF_PIECES(), 1);
this->Information->Set(vtkDataObject::DATA_NUMBER_OF_GHOST_LEVELS(), 0);
}
//----------------------------------------------------------------------------
......
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