00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #include "mitkExternAbstractTransformGeometry.h" 00020 #include <vtkAbstractTransform.h> 00021 00022 mitk::ExternAbstractTransformGeometry::ExternAbstractTransformGeometry() 00023 { 00024 } 00025 00026 mitk::ExternAbstractTransformGeometry::~ExternAbstractTransformGeometry() 00027 { 00028 } 00029 00030 void mitk::ExternAbstractTransformGeometry::SetVtkAbstractTransform(vtkAbstractTransform* aVtkAbstractTransform) 00031 { 00032 Superclass::SetVtkAbstractTransform(aVtkAbstractTransform); 00033 } 00034 00035 void mitk::ExternAbstractTransformGeometry::SetPlane(const mitk::PlaneGeometry* aPlane) 00036 { 00037 Superclass::SetPlane(aPlane); 00038 } 00039 00040 void mitk::ExternAbstractTransformGeometry::SetParametricBounds(const BoundingBox::BoundsArrayType& bounds) 00041 { 00042 Superclass::SetParametricBounds(bounds); 00043 //@warning affine-transforms and bounding-box should be set by specific sub-classes! 00044 SetBounds(bounds); 00045 00046 if(m_Plane.IsNotNull()) 00047 { 00048 m_Plane->SetSizeInUnits(bounds[1]-bounds[0], bounds[3]-bounds[2]); 00049 m_Plane->SetBounds(bounds); 00050 } 00051 } 00052 00053 mitk::AffineGeometryFrame3D::Pointer mitk::ExternAbstractTransformGeometry::Clone() const 00054 { 00055 Self::Pointer newGeometry = Self::New(); 00056 newGeometry->Initialize(); 00057 InitializeGeometry(newGeometry); 00058 return newGeometry.GetPointer(); 00059 } 00060 00061 void mitk::ExternAbstractTransformGeometry::InitializeGeometry(Self * newGeometry) const 00062 { 00063 Superclass::InitializeGeometry(newGeometry); 00064 }