MeVisLab Toolbox Reference
mlRTStructToML.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
5
11//----------------------------------------------------------------------------------
12#pragma once
13
14#include "librarySystem.h"
15#include <mlAlgorithmModule.h>
16#include <CSOBase/CSOList.h>
17
18ML_START_NAMESPACE
19
20class DRTStructureSetIODBase;
21
24 : public AlgorithmModule
25{
26public:
28 virtual ~RTStructToML() override;
29
31 // \param progress Progress value.
32 void setProgress(float progress);
33
34protected:
35 virtual void validateInput() override;
36 virtual void update() override;
37 virtual void clear() override;
38
39private:
40 void tryConvert();
41 void convert();
42 void notifyObservers();
43
44 BaseField *_inRtStructField;
45 BaseField *_outCSOListField;
46 ProgressField *_progressField;
47 DRTStructureSetIODBase *_rtStruct;
48 CSOListPtr _csoList;
49
51};
52
53ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERMODULES_EXPORT
AlgorithmModule(int numInputImages, int numOutputImages)
Forwards given parameters to base class constructor.
Base object class for passing DRTStructureSetIOD objects between MeVisLab modules.
virtual void update() override
Executes the algorithm and updates the values of module's output fields with results.
void setProgress(float progress)
Sets the progress field.
virtual void validateInput() override
Validates the values of module's input fields (object and parameter fields).
virtual ~RTStructToML() override
virtual void clear() override
Clears the values of module's output fields (object and parameter fields).
#define ML_MODULE_CLASS_HEADER(className)