MeVisLab Toolbox Reference
mlImageFormatSave.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_IMAGE_FORMAT_SAVE_H
14 #define ML_IMAGE_FORMAT_SAVE_H
15 
16 
20 
21 #include "MLImageFormatSystem.h"
22 
23 // ML includes
24 #include "mlModuleIncludes.h"
25 
26 #include "mlImageFormatIOBase.h"
27 
28 
29 ML_START_NAMESPACE
30 
31  // ----------------------------------------------------------
34  // ----------------------------------------------------------
36  {
37  public:
38 
41 
42  protected:
44  void activateAttachments() override;
45 
47  void handleNotification (Field *field) override;
48 
52  virtual void _save(bool onlyCreate);
53 
54  private:
55 
57  NotifyField *_saveFld;
58 
60  NotifyField *_createFld;
61 
63  DoubleField *_saveTimeFld;
64 
67  DoubleField *_calcTimeFld;
68 
71  DoubleField *_totalTimeFld;
72 
75  };
76 
77 
78 ML_END_NAMESPACE
79 
80 #endif // __mlImageFormatSave_H
81 
82 
#define MLIMAGEFORMAT_EXPORT
Global and OS specific declarations for the MLImageFormat project.
Field to encapsulate a double value.
Definition: mlFields.h:806
Base class for all fields used in the ML.
Definition: mlField.h:73
IO base class to manage/save/load/modify .mlimage files and to derive specific save,...
ML module class to save an ML PagedImage as file of type MLImageFormat with .mlimage suffix.
void handleNotification(Field *field) override
Handle field changes of the field field.
MLImageFormatSave()
Constructor.
void activateAttachments() override
Update internal module state after (field)reload or clone.
virtual void _save(bool onlyCreate)
Stores the connected input image in file if onlyCreate is false; if onlyCreate is true then an one-va...
Field without value for notifications.
Definition: mlFields.h:1049
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.