------------------------------------------------------------------------------
| 400 | |
| 401 | //------------------------------------------------------------------------------ |
| 402 | void vtkExplicitStructuredGrid::ShallowCopy(vtkDataObject* dataObject) |
| 403 | { |
| 404 | vtkExplicitStructuredGrid* grid = vtkExplicitStructuredGrid::SafeDownCast(dataObject); |
| 405 | if (this == grid) |
| 406 | { |
| 407 | return; |
| 408 | } |
| 409 | |
| 410 | this->Superclass::ShallowCopy(dataObject); |
| 411 | if (grid) |
| 412 | { |
| 413 | this->InternalCopy(grid); |
| 414 | |
| 415 | this->SetCells(grid->GetCells()); |
| 416 | |
| 417 | if (grid->Links) |
| 418 | { |
| 419 | this->Links = vtkSmartPointer<vtkAbstractCellLinks>::Take(grid->Links->NewInstance()); |
| 420 | this->Links->SetDataSet(this); |
| 421 | this->Links->ShallowCopy(grid->Links); |
| 422 | } |
| 423 | else |
| 424 | { |
| 425 | this->Links = nullptr; |
| 426 | } |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | //------------------------------------------------------------------------------ |
| 431 | void vtkExplicitStructuredGrid::DeepCopy(vtkDataObject* dataObject) |
no test coverage detected