Commit 935b73f4 authored by Jeff Baumes's avatar Jeff Baumes
Browse files

BUG: Adding DeepCopy to vtkTable.

parent 5332f3e5
......@@ -34,7 +34,7 @@
// Standard functions
//
vtkCxxRevisionMacro(vtkTable, "1.14");
vtkCxxRevisionMacro(vtkTable, "1.15");
vtkStandardNewMacro(vtkTable);
vtkCxxSetObjectMacro(vtkTable, RowData, vtkDataSetAttributes);
......@@ -491,3 +491,13 @@ void vtkTable::ShallowCopy(vtkDataObject* src)
Superclass::ShallowCopy(src);
}
//----------------------------------------------------------------------------
void vtkTable::DeepCopy(vtkDataObject* src)
{
if (vtkTable* const table = vtkTable::SafeDownCast(src))
{
this->RowData->DeepCopy(table->RowData);
}
Superclass::DeepCopy(src);
}
......@@ -178,7 +178,10 @@ public:
static vtkTable* GetData(vtkInformation* info);
static vtkTable* GetData(vtkInformationVector* v, int i=0);
// Description:
// Shallow/deep copy the data from src into this object.
virtual void ShallowCopy(vtkDataObject* src);
virtual void DeepCopy(vtkDataObject* src);
protected:
vtkTable();
......
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