Medical Imaging Interaction Toolkit  2018.4.99-0d336d68
Medical Imaging Interaction Toolkit
mitkPAComposedVolume.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 MITKPHOTOACOUSTICCOMPOSEDVOLUME_H
14 #define MITKPHOTOACOUSTICCOMPOSEDVOLUME_H
15 
17 
20 #include <vector>
21 
22 //Includes for smart pointer usage
23 #include "mitkCommon.h"
24 #include "itkLightObject.h"
25 
26 namespace mitk {
27  namespace pa {
34  class MITKPHOTOACOUSTICSLIB_EXPORT ComposedVolume : public itk::Object
35  {
36  public:
38  mitkNewMacro1Param(Self, InSilicoTissueVolume::Pointer);
39 
45  void AddSlice(mitk::pa::FluenceYOffsetPair::Pointer fluenceYOffsetPair);
46 
51  int GetNumberOfFluenceComponents();
52 
61  double GetFluenceValue(int fluenceComponent, int x, int y, int z);
62 
68  int GetYOffsetForFluenceComponentInPixels(int fluenceComponent);
69 
70  void Sort();
71 
72  itkGetMacro(GroundTruthVolume, InSilicoTissueVolume::Pointer);
73 
74  protected:
75  ComposedVolume(InSilicoTissueVolume::Pointer groundTruthVolume);
76  ~ComposedVolume() override;
77 
78  private:
79  int m_FluenceComponents;
80  InSilicoTissueVolume::Pointer m_GroundTruthVolume;
81  std::vector<mitk::pa::FluenceYOffsetPair::Pointer> m_FluenceValues;
82  };
83  }
84 }
85 
86 #endif // MITKPHOTOACOUSTICCOMPOSEDVOLUME_H
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
The ComposedVolume class provides the means to systematically collect nrrd files that correspond to d...
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
#define MITKPHOTOACOUSTICSLIB_EXPORT