------------------------------------------------------------------------------
| 163 | |
| 164 | //------------------------------------------------------------------------------ |
| 165 | void vtkGeneralTransform::InternalDeepCopy(vtkAbstractTransform* gtrans) |
| 166 | { |
| 167 | vtkGeneralTransform* transform = static_cast<vtkGeneralTransform*>(gtrans); |
| 168 | |
| 169 | // copy the input |
| 170 | this->SetInput(transform->Input); |
| 171 | |
| 172 | // copy the concatenation |
| 173 | this->Concatenation->DeepCopy(transform->Concatenation); |
| 174 | |
| 175 | // copy the stack |
| 176 | if (transform->Stack) |
| 177 | { |
| 178 | if (this->Stack == nullptr) |
| 179 | { |
| 180 | this->Stack = vtkTransformConcatenationStack::New(); |
| 181 | } |
| 182 | this->Stack->DeepCopy(transform->Stack); |
| 183 | } |
| 184 | else |
| 185 | { |
| 186 | if (this->Stack) |
| 187 | { |
| 188 | this->Stack->Delete(); |
| 189 | this->Stack = nullptr; |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | //------------------------------------------------------------------------------ |
| 195 | void vtkGeneralTransform::InternalUpdate() |