------------------------------------------------------------------------------
| 34 | |
| 35 | //------------------------------------------------------------------------------ |
| 36 | void vtkAssemblyNode::SetMatrix(vtkMatrix4x4* matrix) |
| 37 | { |
| 38 | // delete previous |
| 39 | if (this->Matrix) |
| 40 | { |
| 41 | this->Matrix->Delete(); |
| 42 | this->Matrix = nullptr; |
| 43 | } |
| 44 | // return if nullptr matrix specified |
| 45 | if (!matrix) |
| 46 | { |
| 47 | return; |
| 48 | } |
| 49 | |
| 50 | // else create a copy of the matrix |
| 51 | vtkMatrix4x4* newMatrix = vtkMatrix4x4::New(); |
| 52 | newMatrix->DeepCopy(matrix); |
| 53 | this->Matrix = newMatrix; |
| 54 | } |
| 55 | |
| 56 | //------------------------------------------------------------------------------ |
| 57 | vtkMTimeType vtkAssemblyNode::GetMTime() |
no test coverage detected