MeVisLab Toolbox Reference
mlImageFormatLoad.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_LOAD_H
14
#define ML_IMAGE_FORMAT_LOAD_H
15
16
20
21
#include "
MLImageFormatSystem.h
"
22
23
// ML includes
24
#include "
mlModuleIncludes.h
"
25
26
#include "
mlDataCompressor.h
"
27
28
#include "
mlImageFormatIOBase.h
"
29
30
31
ML_START_NAMESPACE
32
34
class
MLImageFormat;
35
36
// ----------------------------------------------------------
39
// ----------------------------------------------------------
40
class
MLIMAGEFORMAT_EXPORT
MLImageFormatLoad
:
public
MLImageFormatIOBase
41
{
42
public
:
43
45
enum
ApplyModes
{
46
Off
= 0,
47
AutoApply
,
48
AutoClear
,
49
50
NumApplyModes
51
};
52
54
MLImageFormatLoad
();
55
57
~MLImageFormatLoad
()
override
;
58
59
protected
:
60
61
// ----------------------------------------------------------
64
// ----------------------------------------------------------
66
virtual
void
_open
();
67
69
virtual
void
_close
();
71
72
// ----------------------------------------------------------
75
// ----------------------------------------------------------
77
void
activateAttachments
()
override
;
78
80
void
handleNotification
(
Field
*field)
override
;
82
83
// ----------------------------------------------------------
86
// ----------------------------------------------------------
88
void
calculateOutputImageProperties
(
int
outputIndex,
PagedImage
* outputImage)
override
;
89
95
void
calculateOutputSubImage
(
SubImage
*outSubImg,
int
outIndex,
SubImage
*inSubImgs)
override
;
96
98
99
private
:
100
101
// ----------------------------------------------------------
104
// ----------------------------------------------------------
106
MLImageFormat
*_loader;
107
109
EnumField
*_applyModeFld;
110
112
NotifyField
*_closeFld;
113
115
NotifyField
*_openFld;
116
120
BoolField
*_suppressCheckSumTestsFld;
122
124
ML_MODULE_CLASS_HEADER
(
MLImageFormatLoad
)
125
};
126
127
128
ML_END_NAMESPACE
129
130
#endif
// __mlImageFormatLoad_H
131
132
MLImageFormatSystem.h
MLIMAGEFORMAT_EXPORT
#define MLIMAGEFORMAT_EXPORT
Global and OS specific declarations for the MLImageFormat project.
Definition
MLImageFormatSystem.h:25
ml::BoolField
Definition
mlFields.h:56
ml::EnumField
Definition
mlFields.h:173
ml::Field
Definition
mlField.h:73
ml::MLImageFormatIOBase::MLImageFormatIOBase
MLImageFormatIOBase(int numIns=0, int numOuts=0)
Constructor for a module with numIns inputs and numOuts outputs.
ml::MLImageFormatLoad::ApplyModes
ApplyModes
Modes how module reacts on parameter changes.
Definition
mlImageFormatLoad.h:45
ml::MLImageFormatLoad::AutoApply
@ AutoApply
Updates loaded image on all parameter changes.
Definition
mlImageFormatLoad.h:47
ml::MLImageFormatLoad::NumApplyModes
@ NumApplyModes
Number of modes, not to be used as mode.
Definition
mlImageFormatLoad.h:50
ml::MLImageFormatLoad::AutoClear
@ AutoClear
Invalidates loaded image on each change.
Definition
mlImageFormatLoad.h:48
ml::MLImageFormatLoad::Off
@ Off
Leave loaded image as it it even on change.
Definition
mlImageFormatLoad.h:46
ml::MLImageFormatLoad::_close
virtual void _close()
Closes file and deletes loader instance.
ml::MLImageFormatLoad::MLImageFormatLoad
MLImageFormatLoad()
Constructor.
ml::MLImageFormatLoad::handleNotification
void handleNotification(Field *field) override
Handle field changes of the field field.
ml::MLImageFormatLoad::activateAttachments
void activateAttachments() override
Update internal module state after load or clone.
ml::MLImageFormatLoad::calculateOutputImageProperties
void calculateOutputImageProperties(int outputIndex, PagedImage *outputImage) override
Sets properties of the output image at output outIndex.
ml::MLImageFormatLoad::~MLImageFormatLoad
~MLImageFormatLoad() override
Destructor, closes file if still not done.
ml::MLImageFormatLoad::calculateOutputSubImage
void calculateOutputSubImage(SubImage *outSubImg, int outIndex, SubImage *inSubImgs) override
ml::MLImageFormatLoad::_open
virtual void _open()
Create loader instance, opens file and provide it at module output.
ml::MLImageFormat
File format class to store, load, and modify a PagedImage in a file.
Definition
mlImageFormat.h:36
ml::NotifyField
Definition
mlFields.h:598
ml::PagedImage
Definition
mlPagedImage.h:66
ml::SubImage
Definition
mlSubImage.h:75
ML_MODULE_CLASS_HEADER
#define ML_MODULE_CLASS_HEADER(className)
Definition
mlRuntimeSubClass.h:235
mlDataCompressor.h
mlImageFormatIOBase.h
mlModuleIncludes.h
MeVisLab
Standard
Sources
ML
MLImageFormat
mlImageFormatLoad.h
Generated by
1.15.0