------------------------------------------------------------------------------
| 102 | |
| 103 | //------------------------------------------------------------------------------ |
| 104 | void vtkTransform::InternalDeepCopy(vtkAbstractTransform* gtrans) |
| 105 | { |
| 106 | vtkTransform* transform = static_cast<vtkTransform*>(gtrans); |
| 107 | |
| 108 | // copy the input |
| 109 | this->SetInput(transform->Input); |
| 110 | |
| 111 | // copy the concatenation |
| 112 | this->Concatenation->DeepCopy(transform->Concatenation); |
| 113 | |
| 114 | // copy the stack |
| 115 | if (transform->Stack) |
| 116 | { |
| 117 | if (this->Stack == nullptr) |
| 118 | { |
| 119 | this->Stack = vtkTransformConcatenationStack::New(); |
| 120 | } |
| 121 | this->Stack->DeepCopy(transform->Stack); |
| 122 | } |
| 123 | else |
| 124 | { |
| 125 | if (this->Stack) |
| 126 | { |
| 127 | this->Stack->Delete(); |
| 128 | this->Stack = nullptr; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // legacy stuff: copy Point and DoublePoint |
| 133 | for (int j = 0; j < 3; j++) |
| 134 | { |
| 135 | this->Point[j] = transform->Point[j]; |
| 136 | this->DoublePoint[j] = transform->DoublePoint[j]; |
| 137 | } |
| 138 | |
| 139 | // to support the legacy hack in InternalUpdate |
| 140 | this->Matrix->DeepCopy(transform->Matrix); |
| 141 | this->MatrixUpdateMTime = this->Matrix->GetMTime(); |
| 142 | } |
| 143 | |
| 144 | //------------------------------------------------------------------------------ |
| 145 | void vtkTransform::InternalUpdate() |