------------------------------------------------------------------------------
| 392 | |
| 393 | //------------------------------------------------------------------------------ |
| 394 | void vtkProp3D::SetUserTransform(vtkLinearTransform* transform) |
| 395 | { |
| 396 | this->IsIdentity = 0; |
| 397 | if (transform == this->UserTransform) |
| 398 | { |
| 399 | return; |
| 400 | } |
| 401 | if (this->UserTransform) |
| 402 | { |
| 403 | this->UserTransform->Delete(); |
| 404 | this->UserTransform = nullptr; |
| 405 | } |
| 406 | if (this->UserMatrix) |
| 407 | { |
| 408 | this->UserMatrix->Delete(); |
| 409 | this->UserMatrix = nullptr; |
| 410 | } |
| 411 | if (transform) |
| 412 | { |
| 413 | this->UserTransform = transform; |
| 414 | this->UserTransform->Register(this); |
| 415 | this->UserMatrix = transform->GetMatrix(); |
| 416 | this->UserMatrix->Register(this); |
| 417 | } |
| 418 | this->Modified(); |
| 419 | } |
| 420 | |
| 421 | //------------------------------------------------------------------------------ |
| 422 | void vtkProp3D::SetUserMatrix(vtkMatrix4x4* matrix) |