Medical Imaging Interaction Toolkit  2018.4.99-b585543d
Medical Imaging Interaction Toolkit
mitkPAFluenceYOffsetPair.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 ============================================================================*/
13 
14 mitk::pa::FluenceYOffsetPair::FluenceYOffsetPair(mitk::pa::Volume::Pointer fluenceValue, double yOffset)
15 {
16  m_FluenceValue = fluenceValue;
17  m_YOffsetInCentimeters = yOffset;
18 }
19 
20 mitk::pa::FluenceYOffsetPair::~FluenceYOffsetPair()
21 {
22  m_FluenceValue = nullptr;
23 }
24 
25 mitk::pa::FluenceYOffsetPair::FluenceYOffsetPair(const mitk::pa::FluenceYOffsetPair::Pointer other)
26 {
27  m_FluenceValue = other->GetFluenceValue();
28  m_YOffsetInCentimeters = other->GetYOffsetInCentimeters();
29 }
30 
31 mitk::pa::Volume::Pointer mitk::pa::FluenceYOffsetPair::GetFluenceValue() const
32 {
33  return m_FluenceValue;
34 }
35 
37 {
38  return m_YOffsetInCentimeters;
39 }
FluenceYOffsetPair(const FluenceYOffsetPair::Pointer other)
float yOffset
Definition: MitkMCxyz.cpp:622
mitk::pa::Volume::Pointer GetFluenceValue() const