------------------------------------------------------------------------------ Copy a field by reference counting the data arrays.
| 520 | //------------------------------------------------------------------------------ |
| 521 | // Copy a field by reference counting the data arrays. |
| 522 | void vtkFieldData::ShallowCopy(vtkFieldData* f) |
| 523 | { |
| 524 | this->AllocateArrays(f->GetNumberOfArrays()); |
| 525 | this->NumberOfActiveArrays = 0; |
| 526 | |
| 527 | for (int i = 0; i < f->GetNumberOfArrays(); ++i) |
| 528 | { |
| 529 | this->NumberOfActiveArrays++; |
| 530 | this->SetArray(i, f->GetAbstractArray(i)); |
| 531 | } |
| 532 | |
| 533 | this->SetGhostsToSkip(f->GetGhostsToSkip()); |
| 534 | |
| 535 | this->CopyFlags(f); |
| 536 | } |
| 537 | |
| 538 | //------------------------------------------------------------------------------ |
| 539 | // Squeezes each data array in the field (Squeeze() reclaims unused memory.) |
nothing calls this directly
no test coverage detected