MeVisLab Toolbox Reference
mlMLToRTStruct.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #ifndef __mlMLToRTStruct_H
12 #define __mlMLToRTStruct_H
13 
15 
16 #include <mlAlgorithmModule.h>
17 
18 ML_START_NAMESPACE
19 
20 class CSOList;
21 class DRTStructureSetIODBase;
22 
25  : public AlgorithmModule
26 {
27 public:
29  virtual ~MLToRTStruct() override;
30  void setProgress(float progress);
31 
32 protected:
33  virtual void validateInput() override;
34  virtual void update() override;
35  virtual void clear() override;
36 
37 private:
38  void addFields();
39  void checkInputCSOList();
40  void allocateNewRTStructObject();
41  void convertCSOListToRTStructureSet();
42  void touchOutputFields();
43 
44  CSOList *_csoList;
45  BaseField *_inCSOListField;
46  DRTStructureSetIODBase *_rtStruct;
47  BaseField *_outRTStructField;
48  ProgressField *_progressField;
49 
51 };
52 
53 ML_END_NAMESPACE
54 
55 #endif // __mlMLToRTStruct_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
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Definition: CSOList.h:61
Base object class for passing DRTStructureSetIOD objects between MeVisLab modules.
Convert a CSOList to a RTStructureSet.
virtual void update() override
Executes the algorithm and updates the values of module's output fields with results.
virtual void validateInput() override
Validates the values of module's input fields (object and parameter fields).
virtual ~MLToRTStruct() override
virtual void clear() override
Clears the values of module's output fields (object and parameter fields).
void setProgress(float progress)
Field to encapsulate an increasing float value from range [0,1].
Definition: mlFields.h:744
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.