Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkPAFluenceYOffsetPair.h
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 #ifndef MITKPAFLUENCEYOFFSETPAIR_H
14 #define MITKPAFLUENCEYOFFSETPAIR_H
15 
17 #include <itkMacro.h>
18 
19 #include "mitkCommon.h"
20 #include "itkLightObject.h"
21 #include <mitkPAVolume.h>
22 
23 namespace mitk
24 {
25  namespace pa {
26  class MITKPHOTOACOUSTICSLIB_EXPORT FluenceYOffsetPair : public itk::LightObject
27  {
28  public:
30  mitkNewMacro2Param(Self, mitk::pa::Volume::Pointer, double)
31 
32  FluenceYOffsetPair(const FluenceYOffsetPair::Pointer other);
33 
34  const FluenceYOffsetPair &operator=(const FluenceYOffsetPair::Pointer other)
35  {
36  if (this == other)
37  return *this;
38 
39  m_FluenceValue = other->GetFluenceValue();
40  m_YOffsetInCentimeters = other->GetYOffsetInCentimeters();
41 
42  return *this;
43  }
44 
45  mitk::pa::Volume::Pointer GetFluenceValue() const;
46  double GetYOffsetInCentimeters() const;
47 
48  private:
49  FluenceYOffsetPair(mitk::pa::Volume::Pointer fluenceValue, double yOffset);
50 
51  ~FluenceYOffsetPair() override;
52 
53  mitk::pa::Volume::Pointer m_FluenceValue;
54  double m_YOffsetInCentimeters;
55  };
56  }
57 }
58 
59 #endif // MITKPHOTOACOUSTICCOMPOSEDVOLUME_H
DataCollection - Class to facilitate loading/accessing structured data.
float yOffset
Definition: MitkMCxyz.cpp:622
mitk::pa::Volume::Pointer GetFluenceValue() const
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
const FluenceYOffsetPair & operator=(const FluenceYOffsetPair::Pointer other)
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
#define MITKPHOTOACOUSTICSLIB_EXPORT