Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLandmarkProjector.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 "mitkLandmarkProjector.h"
18 #include <vtkAbstractTransform.h>
19 
21  : m_InterpolatingAbstractTransform(nullptr),
22  m_CompleteAbstractTransform(nullptr),
23  m_FrameGeometry(nullptr),
24  m_ParameterPlane(nullptr)
25 {
28 }
29 
31 {
32  if (m_InterpolatingAbstractTransform != nullptr)
33  m_InterpolatingAbstractTransform->Delete();
34 }
35 
36 void mitk::LandmarkProjector::SetInterpolatingAbstractTransform(vtkAbstractTransform *anInterpolatingAbstractTransform)
37 {
38  if (m_InterpolatingAbstractTransform != anInterpolatingAbstractTransform)
39  {
40  m_InterpolatingAbstractTransform = anInterpolatingAbstractTransform;
41  m_InterpolatingAbstractTransform->Register(nullptr);
42  Modified();
43  ComputeCompleteAbstractTransform();
44  }
45 }
46 
48 {
49  return m_CompleteAbstractTransform;
50 }
mitk::PointSet::DataType::PointsContainer::Pointer m_WritableFinalTargetLandmarks
virtual vtkAbstractTransform * GetCompleteAbstractTransform() const
Get the transform from parameter space to world space incorporating the given interpolating transform...
virtual void SetInterpolatingAbstractTransform(vtkAbstractTransform *anInterpolatingAbstractTransform)
Set the interpolating (world-space-to-world-space) transform, which uses the landmarks.
mitk::PointSet::DataType::PointsContainer::ConstPointer m_FinalTargetLandmarks
mitk::PointSet::DataType::PointsContainer::Pointer m_ProjectedLandmarks
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.