------------------------------------------------------------------------------ Description: Update `this' using fields of `other'. \pre other_exists: other!=0 \pre not_self: other!=this
| 386 | // \pre other_exists: other!=0 |
| 387 | // \pre not_self: other!=this |
| 388 | void vtkBridgeAttribute::ShallowCopy(vtkGenericAttribute* other) |
| 389 | { |
| 390 | assert("pre: other_exists" && other != nullptr); |
| 391 | assert("pre: not_self" && other != this); |
| 392 | vtkBridgeAttribute* o = static_cast<vtkBridgeAttribute*>(other); |
| 393 | |
| 394 | vtkSetObjectBodyMacro(Pd, vtkPointData, o->Pd); |
| 395 | vtkSetObjectBodyMacro(Cd, vtkCellData, o->Cd); |
| 396 | this->Data = o->Data; |
| 397 | this->AttributeNumber = o->AttributeNumber; |
| 398 | this->AllocateInternalTuple(this->GetNumberOfComponents()); |
| 399 | } |
| 400 | |
| 401 | //------------------------------------------------------------------------------ |
| 402 | // Description: |