| 739 | } |
| 740 | |
| 741 | void mitk::BaseGeometry::PrintSelf(std::ostream &os, itk::Indent indent) const |
| 742 | { |
| 743 | os << indent << " IndexToWorldTransform: "; |
| 744 | if (this->IsIndexToWorldTransformNull()) |
| 745 | os << "nullptr" << std::endl; |
| 746 | else |
| 747 | { |
| 748 | // from itk::MatrixOffsetTransformBase |
| 749 | unsigned int i, j; |
| 750 | os << std::endl; |
| 751 | os << indent << "Matrix: " << std::endl; |
| 752 | for (i = 0; i < 3; i++) |
| 753 | { |
| 754 | os << indent.GetNextIndent(); |
| 755 | for (j = 0; j < 3; j++) |
| 756 | { |
| 757 | os << this->GetIndexToWorldTransform()->GetMatrix()[i][j] << " "; |
| 758 | } |
| 759 | os << std::endl; |
| 760 | } |
| 761 | |
| 762 | os << indent << "Offset: " << this->GetIndexToWorldTransform()->GetOffset() << std::endl; |
| 763 | os << indent << "Center: " << this->GetIndexToWorldTransform()->GetCenter() << std::endl; |
| 764 | os << indent << "Translation: " << this->GetIndexToWorldTransform()->GetTranslation() << std::endl; |
| 765 | |
| 766 | auto inverse = mitk::AffineTransform3D::New(); |
| 767 | if (this->GetIndexToWorldTransform()->GetInverse(inverse)) |
| 768 | { |
| 769 | os << indent << "Inverse: " << std::endl; |
| 770 | for (i = 0; i < 3; i++) |
| 771 | { |
| 772 | os << indent.GetNextIndent(); |
| 773 | for (j = 0; j < 3; j++) |
| 774 | { |
| 775 | os << inverse->GetMatrix()[i][j] << " "; |
| 776 | } |
| 777 | os << std::endl; |
| 778 | } |
| 779 | } |
| 780 | |
| 781 | // from itk::ScalableAffineTransform |
| 782 | os << indent << "Scale : "; |
| 783 | for (i = 0; i < 3; i++) |
| 784 | { |
| 785 | os << this->GetIndexToWorldTransform()->GetScale()[i] << " "; |
| 786 | } |
| 787 | os << std::endl; |
| 788 | } |
| 789 | |
| 790 | os << indent << " BoundingBox: "; |
| 791 | if (this->IsBoundingBoxNull()) |
| 792 | os << "nullptr" << std::endl; |
| 793 | else |
| 794 | { |
| 795 | os << indent << "( "; |
| 796 | for (unsigned int i = 0; i < 3; i++) |
| 797 | { |
| 798 | os << this->GetBoundingBox()->GetBounds()[2 * i] << "," << this->GetBoundingBox()->GetBounds()[2 * i + 1] << " "; |
nothing calls this directly
no test coverage detected