Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
mitkSegmentAnythingProcessExecutor.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 mitkSegmentAnythingProcessExecutor_h
14
#define mitkSegmentAnythingProcessExecutor_h
15
16
#include <
MitkSegmentationExports.h
>
17
#include <
mitkProcessExecutor.h
>
18
#include <itksys/Process.h>
19
#include <
mitkCommon.h
>
20
21
namespace
mitk
22
{
29
class
MITKSEGMENTATION_EXPORT
SegmentAnythingProcessExecutor
:
public
mitk::ProcessExecutor
30
{
31
public
:
32
using
Self
=
SegmentAnythingProcessExecutor
;
33
using
Superclass
=
mitk::ProcessExecutor
;
34
using
Pointer
=
::itk::SmartPointer<Self>
;
35
using
ConstPointer
=
::itk::SmartPointer<const Self>
;
36
using
mitk::ProcessExecutor::Execute
;
37
38
itkTypeMacro(
SegmentAnythingProcessExecutor
,
mitk::ProcessExecutor
);
39
mitkNewMacro1Param
(
SegmentAnythingProcessExecutor
,
double
&);
40
41
itkSetMacro(Stop,
bool
);
42
itkGetConstMacro(Stop,
bool
);
43
48
bool
Execute(
const
std::string &executionPath,
const
ArgumentListType
&argumentList);
49
50
void
SetTimeout(
double
&timeout);
51
52
protected
:
53
SegmentAnythingProcessExecutor
() =
delete
;
54
SegmentAnythingProcessExecutor
(
double
&);
55
~
SegmentAnythingProcessExecutor
() =
default
;
56
57
private
:
58
itksysProcess *m_ProcessID =
nullptr
;
59
double
m_Timeout;
60
bool
m_Stop =
false
;
// Exit token to force stop the daemon.
61
};
62
63
}
// namespace mitk
64
#endif
mitk::ProcessExecutor::Execute
bool Execute(const std::string &executionPath, const std::string &executableName, ArgumentListType &argumentList)
mitk::ProcessExecutor::ArgumentListType
std::vector< std::string > ArgumentListType
Definition:
mitkProcessExecutor.h:81
mitkProcessExecutor.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition:
mitkCommon.h:68
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
mitk::SegmentAnythingProcessExecutor
You may register an observer for an ExternalProcessOutputEvent, ExternalProcessStdOutEvent or Externa...
Definition:
mitkSegmentAnythingProcessExecutor.h:29
MitkSegmentationExports.h
mitk::ProcessExecutor
You may register an observer for an ExternalProcessOutputEvent, ExternalProcessStdOutEvent or Externa...
Definition:
mitkProcessExecutor.h:67
mitk::ProcessExecutor::Superclass
::itk::Object Superclass
Definition:
mitkProcessExecutor.h:71
src
MITK
Modules
Segmentation
Interactions
mitkSegmentAnythingProcessExecutor.h
Generated on Mon Jun 17 2024 12:43:28 for Medical Imaging Interaction Toolkit by
1.8.17