MeVisLab Toolbox Reference
mlImageFormatCompressionParams.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_COMPRESSION_PARAMS_H
14#define ML_IMAGE_FORMAT_COMPRESSION_PARAMS_H
15
17
18// Local includes
20
21// ML includes
22#include "mlModuleIncludes.h"
23
25
26#include "mlDataCompressor.h"
27
28
29ML_START_NAMESPACE
30
31// Forward declaration.
32class MLImageFormat;
33
34// ----------------------------------------------------------
36// ----------------------------------------------------------
38
39 public:
40
43
48 const std::vector<std::string> &getCompressorNames () const { return _compressorNames ; }
50 StringField* const* getHintNameFlds () const { return _hintNameFld ; }
51 DoubleField* const* getDblHintValFlds () const { return _dblHintValFld ; }
52 IntField * const* getIntHintValFlds () const { return _intHintValFld ; }
53 StringField* const* getStrHintValFlds () const { return _strHintValFld ; }
54 BoolField * const* getBoolHintValFlds () const { return _boolHintValFld ; }
55 BoolField * const* getIntHintVisibleFlds () const { return _intHintVisibleFld ; }
56 BoolField * const* getStrHintVisibleFlds () const { return _strHintVisibleFld ; }
57 BoolField * const* getDblHintVisibleFlds () const { return _dblHintVisibleFld ; }
60
64
67 void updateHintVisibility(const DataCompressor *compressor);
68
73
80
85
88
89
90 protected:
91
94
95 //--- Members
97 std::vector<std::string> _compressorNames;
98
101
102
103 //--- Fields
104
107
111
115
120
126
127 private:
134
135};
136
137ML_END_NAMESPACE
138
139#endif // __mlImageFormatCompressionParams_H
#define MLIMAGEFORMATBASE_EXPORT
DoubleField * _dblHintValFld[DataCompressor::MaxHints]
Value of double parameter.
void updateCompressorArgsFromHintFields(const DataCompressor *compressor)
void updateCompressionFieldsToLoaderState(const MLImageFormat &loader)
MLImageFormatCompressionParams(Module &baseOp)
Constructor; only available with a valid Module reference.
EnumField * _compressorNameFld
Compression scheme used for stored image data. Default is the first entry.
BoolField * _boolHintValFld[DataCompressor::MaxHints]
Value of bool parameter.
MLImageFormatTagList _compressorArgs
List of tags used as parameters for compressors.
void updateHintFieldsFromCompressor(DataCompressor *compressor)
Module & _baseOp
Reference to the related Module.
void resetCompressionParams()
Reset _compressionFld, _tagListFld, and all _tagListFld.
StringField * _hintNameFld[DataCompressor::MaxHints]
Name of the parameter.
void updateHintVisibility(const DataCompressor *compressor)
BoolField * _boolHintVisibleFld[DataCompressor::MaxHints]
Controls visibility of boolean parameter.
BoolField * _strHintVisibleFld[DataCompressor::MaxHints]
Controls visibility of string parameter.
StringField * _strHintValFld[DataCompressor::MaxHints]
Value of string parameter.
std::vector< std::string > _compressorNames
List of available compressor names stored when creating the module.
BoolField * _intHintVisibleFld[DataCompressor::MaxHints]
Controls visibility of integer parameter.
const std::vector< std::string > & getCompressorNames() const
void handleCompressionFieldChanges(Field *field)
IntField * _intHintValFld[DataCompressor::MaxHints]
Value of integer parameter.
BoolField * _dblHintVisibleFld[DataCompressor::MaxHints]
Controls visibility of double parameter.
Class defining a list of tags used in the MLImageFormat class.
File format class to store, load, and modify a PagedImage in a file.