Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRegistrationObject.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkRegistrationObject.h"
18 
20  : m_ReferenceGeometry(0),
21  m_Transformation(0)
22 {
23 
24 }
25 
27 {
28  if( m_ReferenceGeometry.IsNull() )
29  m_ReferenceGeometry = mitk::Geometry3D::New();
30 
31  m_ReferenceGeometry = geom->Clone();
32 }
33 
35 {
36  this->SetReferenceGeometry( image->GetTimeGeometry()->GetGeometryForTimeStep() );
37 }
38 
40 {
41  if( m_Transformation.IsNull() )
42  m_Transformation = mitk::AffineGeometryFrame3D::New();
43 
44  m_Transformation = transform;
45 }
itk::SmartPointer< Self > Pointer
void SetReferenceGeometry(mitk::Geometry3D::Pointer)
static Pointer New()
void SetTransformation(mitk::AffineGeometryFrame3D::Pointer)
void SetReferenceImage(mitk::Image::Pointer)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.