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 #ifndef __mlRTDoseToML_H
13 #define __mlRTDoseToML_H
14 
16 
17 #include <mlAlgorithmModule.h>
18 #include <CSOBase/CSOList.h>
19 
20 ML_START_NAMESPACE
21 
22 class DRTDoseIODBase;
23 class MultiFileVolume;
24 
27  : public AlgorithmModule
28 {
29 public:
32 
34  // \param progress Progress value.
35  void setProgress(float progress);
36 
37 protected:
38  virtual void validateInput() override;
39  virtual void update() override;
40  virtual void clear() override;
41  virtual void setOutputImageProperties(int outIndex, PagedImage* outImage) override;
42  virtual void calculateOutputSubImage(SubImage *outSubImage, int outIndex, SubImage *inSubImages) override;
43 
44 private:
45  void notifyCSOListObservers();
46  void addAndInitFields();
47  void createVolumeReference();
48  void convertStrucutreSetToCSOList();
49  void touchOutputImages();
50  void clearAndTouchOutputImages();
51  void checkVolumeReference();
52  void setImagePropertiesFromVolumeReference(PagedImage *image);
53 
54  BaseField *_inRtDoseField;
55  BaseField *_outCSOListField;
56  ProgressField *_progressField;
57  DRTDoseIODBase *_rtDose;
58  CSOListPtr _csoList;
59  MultiFileVolume *_volumeReference;
60 
62 };
63 
64 ML_END_NAMESPACE
65 
66 #endif // __mlRTDoseToML_H
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:1187
Base object class for passing DRTDoseIOD objects between MeVisLab modules.
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
Field to encapsulate an increasing float value from range [0,1].
Definition: mlFields.h:744
ML module converting RTDose to a CSOList and a MLImage.
Definition: mlRTDoseToML.h:28
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
Calculate page outputSubImage of output image with index outputIndex given the input image tiles in a...
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 which is organized linearly in memory.
Definition: mlSubImage.h:75
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.