MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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>
18#include <mlDcmtkMLConverters.h>
19
21
22class DRTStructureSetIODBase;
23
26 : public AlgorithmModule
27{
28public:
30 virtual ~RTStructToML() override;
31
33 // \param progress Progress value.
34 void setProgress(float progress);
35
36protected:
37 virtual void validateInput() override;
38 virtual void update() override;
39 virtual void clear() override;
40
41private:
42 void tryConvert();
43 void convert();
44 void notifyObservers();
45
46 BaseField *_inRtStructField = nullptr;
47 BaseField *_outCSOListField = nullptr;
48 ProgressField *_progressField = nullptr;
49 DRTStructureSetIODBasePtr _rtStruct = nullptr;
50 CSOListPtr _csoList = nullptr;
51
53};
54
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERMODULES_EXPORT
ML-Module base class to simplify development of modules encapsulating an algorithm with dedicated inp...
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:813
Field to encapsulate an increasing float value from range [0,1].
Definition mlFields.h:519
ML module converting RT Structure Set to a CSOList.
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)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
Base object class for passing DRTStructureSetIOD objects between MeVisLab modules.
The tool function class DcmtkMLConverters.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.