Medical Imaging Interaction Toolkit  2018.4.99-dfa0c14e
Medical Imaging Interaction Toolkit
mitkPAMonteCarloThreadHandler.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 MITKMONTECARLOTHREADHANDLER_H
14 #define MITKMONTECARLOTHREADHANDLER_H
15 
16 #include <mitkCommon.h>
18 #include <mutex>
19 
20 //Includes for smart pointer usage
21 #include "mitkCommon.h"
22 #include "itkLightObject.h"
23 
24 namespace mitk {
25  namespace pa {
31  class MITKPHOTOACOUSTICSLIB_EXPORT MonteCarloThreadHandler : public itk::LightObject
32  {
33  public:
34 
38 
39  long GetNextWorkPackage();
40 
41  void SetPackageSize(long sizeInMilliseconsOrNumberOfPhotons);
42 
43  itkGetMacro(NumberPhotonsToSimulate, long);
44  itkGetMacro(NumberPhotonsRemaining, long);
45  itkGetMacro(WorkPackageSize, long);
46  itkGetMacro(SimulationTime, long);
47  itkGetMacro(SimulateOnTimeBasis, bool);
48  itkGetMacro(Verbose, bool);
49 
50  protected:
55  long m_Time;
57  bool m_Verbose;
59 
65  MonteCarloThreadHandler(long timInMilliseconsOrNumberofPhotons, bool simulateOnTimeBasis);
66 
73  MonteCarloThreadHandler(long timInMilliseconsOrNumberofPhotons, bool simulateOnTimeBasis, bool verbose);
74  ~MonteCarloThreadHandler() override;
75  };
76 
86  MITKPHOTOACOUSTICSLIB_EXPORT bool Equal(const MonteCarloThreadHandler::Pointer leftHandSide,
87  const MonteCarloThreadHandler::Pointer rightHandSide, double eps, bool verbose);
88  }
89 }
90 
91 #endif // MITKMONTECARLOTHREADHANDLER_H
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
MITKPHOTOACOUSTICSLIB_EXPORT bool Equal(const MonteCarloThreadHandler::Pointer leftHandSide, const MonteCarloThreadHandler::Pointer rightHandSide, double eps, bool verbose)
Equal A function comparing two thread handlers for beeing equal.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
bool verbose(false)
MITKCORE_EXPORT const ScalarType eps
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:98
The PhotoacousticStatefulObject class Designed for inheritence. Provides a state member variable and ...
#define MITKPHOTOACOUSTICSLIB_EXPORT