Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkLandmarkProjector.h"
14 #include <vtkAbstractTransform.h>
15 
17  : m_InterpolatingAbstractTransform(nullptr),
18  m_CompleteAbstractTransform(nullptr),
19  m_FrameGeometry(nullptr),
20  m_ParameterPlane(nullptr)
21 {
22  m_FinalTargetLandmarks = m_WritableFinalTargetLandmarks = mitk::PointSet::DataType::PointsContainer::New();
23  m_ProjectedLandmarks = mitk::PointSet::DataType::PointsContainer::New();
24 }
25 
27 {
28  if (m_InterpolatingAbstractTransform != nullptr)
30 }
31 
32 void mitk::LandmarkProjector::SetInterpolatingAbstractTransform(vtkAbstractTransform *anInterpolatingAbstractTransform)
33 {
34  if (m_InterpolatingAbstractTransform != anInterpolatingAbstractTransform)
35  {
36  m_InterpolatingAbstractTransform = anInterpolatingAbstractTransform;
37  m_InterpolatingAbstractTransform->Register(nullptr);
38  Modified();
40  }
41 }
42 
44 {
46 }
virtual void ComputeCompleteAbstractTransform()=0
Compute the transform from parameter space to world space incorporating the given interpolating trans...
mitk::PointSet::DataType::PointsContainer::Pointer m_WritableFinalTargetLandmarks
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
vtkAbstractTransform * m_InterpolatingAbstractTransform
vtkAbstractTransform * m_CompleteAbstractTransform
virtual vtkAbstractTransform * GetCompleteAbstractTransform() const
Get the transform from parameter space to world space incorporating the given interpolating transform...
mitk::PointSet::DataType::PointsContainer::Pointer m_ProjectedLandmarks