------------------------------------------------------------------------------
| 289 | |
| 290 | //------------------------------------------------------------------------------ |
| 291 | void vtkAbstractTransform::DeepCopy(vtkAbstractTransform* transform) |
| 292 | { |
| 293 | // check whether we're trying to copy a transform to itself |
| 294 | if (transform == this) |
| 295 | { |
| 296 | return; |
| 297 | } |
| 298 | |
| 299 | // check to see if the transform is the same type as this one |
| 300 | if (!transform->IsA(this->GetClassName())) |
| 301 | { |
| 302 | vtkErrorMacro("DeepCopy: can't copy a " << transform->GetClassName() << " into a " |
| 303 | << this->GetClassName() << "."); |
| 304 | return; |
| 305 | } |
| 306 | |
| 307 | if (transform->CircuitCheck(this)) |
| 308 | { |
| 309 | vtkErrorMacro("DeepCopy: this would create a circular reference."); |
| 310 | return; |
| 311 | } |
| 312 | |
| 313 | // call InternalDeepCopy for subtype |
| 314 | this->InternalDeepCopy(transform); |
| 315 | |
| 316 | this->Modified(); |
| 317 | } |
| 318 | |
| 319 | //------------------------------------------------------------------------------ |
| 320 | void vtkAbstractTransform::Update() |