MeVisLab Toolbox Reference
mlRTDoseToML.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 DRTDoseIODBase;
21class MultiFileVolume;
22
25 : public AlgorithmModule
26{
27public:
30
32 // \param progress Progress value.
33 void setProgress(float progress);
34
35protected:
36 virtual void validateInput() override;
37 virtual void update() override;
38 virtual void clear() override;
39 virtual void setOutputImageProperties(int outIndex, PagedImage* outImage) override;
40 virtual void calculateOutputSubImage(SubImage *outSubImage, int outIndex, SubImage *inSubImages) override;
41
42private:
43 void notifyCSOListObservers();
44 void addAndInitFields();
45 void createVolumeReference();
46 void convertStrucutreSetToCSOList();
47 void touchOutputImages();
48 void clearAndTouchOutputImages();
49 void checkVolumeReference();
50 void setImagePropertiesFromVolumeReference(PagedImage *image);
51
52 BaseField *_inRtDoseField;
53 BaseField *_outCSOListField;
54 ProgressField *_progressField;
55 DRTDoseIODBase *_rtDose;
56 CSOListPtr _csoList;
57 MultiFileVolume *_volumeReference;
58
60};
61
62ML_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 DRTDoseIOD objects between MeVisLab modules.
void setProgress(float progress)
Sets the progress field.
virtual void update() override
Executes the algorithm and updates the values of module's output fields with results.
virtual void calculateOutputSubImage(SubImage *outSubImage, int outIndex, SubImage *inSubImages) override
virtual void validateInput() override
Validates the values of module's input fields (object and parameter fields).
virtual void clear() override
Clears the values of module's output fields (object and parameter fields).
virtual void setOutputImageProperties(int outIndex, PagedImage *outImage) override
Sets properties of the output image at output outputIndex.
#define ML_MODULE_CLASS_HEADER(className)