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
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:729
Base object class for passing DRTDoseIOD objects between MeVisLab modules.
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
Field to encapsulate an increasing float value from range [0,1].
Definition mlFields.h:451
ML module converting RTDose to a CSOList and a MLImage.
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
Calculates page outputSubImage of output image with index outputIndex given the input image tiles in ...
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.
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
Definition mlSubImage.h:75
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.