------------------------------------------------------------------------------
| 506 | |
| 507 | //------------------------------------------------------------------------------ |
| 508 | void vtkDataAssembly::DeepCopy(vtkDataAssembly* other) |
| 509 | { |
| 510 | if (other) |
| 511 | { |
| 512 | this->Internals.reset(new vtkDataAssembly::vtkInternals()); |
| 513 | // TODO: am sure there's a better way than serialize/deserialize |
| 514 | std::ostringstream str; |
| 515 | other->Internals->Document.save(str); |
| 516 | this->Internals->Parse(str.str().c_str(), this); |
| 517 | this->Modified(); |
| 518 | } |
| 519 | else |
| 520 | { |
| 521 | this->Initialize(); |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | //------------------------------------------------------------------------------ |
| 526 | int vtkDataAssembly::AddSubtree(int parent, vtkDataAssembly* other, int otherParent) |
no test coverage detected