MeVisLab Toolbox Reference
|
Helper class for compressor arguments managed inside of a module. More...
#include <mlImageFormatCompressionParams.h>
Public Member Functions | |
MLImageFormatCompressionParams (Module &baseOp) | |
Constructor, only available with a valid Module reference. | |
void | updateHintFieldsFromCompressor (DataCompressor *compressor) |
Set up all hint fields and their visibility according to the compressor configuration. | |
void | updateHintVisibility (const DataCompressor *compressor) |
Sets visibility and hint name fields according to the given compressor configuration. | |
void | updateCompressorArgsFromHintFields (const DataCompressor *compressor) |
Clears the compressor arguments and updates them with new values from those hint fields which are valid according to the given compressor configuration. | |
void | handleCompressionFieldChanges (Field *field) |
Update the compressor and the fields showing compression parameters. | |
void | updateCompressionFieldsToLoaderState (const MLImageFormat &loader) |
Helper function to update compression fields to the compressor settings of the the passed loader. | |
void | resetCompressionParams () |
Reset _compressionFld, _tagListFld, and all _tagListFld. | |
Access functions; see comments or related members for more information. | |
EnumField & | getCompressorNameFld () const |
NotifyField & | getUpdateHintControlsFld () const |
const std::vector< std::string > & | getCompressorNames () const |
MLImageFormatTagList & | getCompressorArgs () |
StringField *const * | getHintNameFlds () const |
DoubleField *const * | getDblHintValFlds () const |
IntField *const * | getIntHintValFlds () const |
StringField *const * | getStrHintValFlds () const |
BoolField *const * | getBoolHintValFlds () const |
BoolField *const * | getIntHintVisibleFlds () const |
BoolField *const * | getStrHintVisibleFlds () const |
BoolField *const * | getDblHintVisibleFlds () const |
BoolField *const * | getBoolHintVisibleFlds () const |
Protected Attributes | |
Module & | _baseOp |
Reference to the related Module. | |
std::vector< std::string > | _compressorNames |
List of available compressor names stored when creating the module. | |
MLImageFormatTagList | _compressorArgs |
List of tags used as parameters for compressors. | |
EnumField * | _compressorNameFld |
Compression scheme used for stored image data, default is first entry. | |
NotifyField * | _updateHintControlsFld |
Field to notify a possible gui layouter of the modules to update the visibility and name displays of the controls of the hint fields. | |
Optional compression arguments used dependent on the hint settings of the compressor. | |
StringField * | _hintNameFld [DataCompressor::MaxHints] |
Name of the parameter. | |
DoubleField * | _dblHintValFld [DataCompressor::MaxHints] |
Value of double parameter. | |
IntField * | _intHintValFld [DataCompressor::MaxHints] |
Value of integer parameter. | |
StringField * | _strHintValFld [DataCompressor::MaxHints] |
Value of string parameter. | |
BoolField * | _boolHintValFld [DataCompressor::MaxHints] |
Value of bool parameter. | |
BoolField * | _intHintVisibleFld [DataCompressor::MaxHints] |
Controls visibility of integer parameter. | |
BoolField * | _strHintVisibleFld [DataCompressor::MaxHints] |
Controls visibility of string parameter. | |
BoolField * | _dblHintVisibleFld [DataCompressor::MaxHints] |
Controls visibility of double parameter. | |
BoolField * | _boolHintVisibleFld [DataCompressor::MaxHints] |
Controls visibility of boolean parameter. | |
Helper class for compressor arguments managed inside of a module.
Definition at line 37 of file mlImageFormatCompressionParams.h.
ml::MLImageFormatCompressionParams::MLImageFormatCompressionParams | ( | Module & | baseOp | ) |
Constructor, only available with a valid Module reference.
Definition at line 54 of file mlImageFormatCompressionParams.h.
Definition at line 58 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 49 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 46 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 48 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 51 of file mlImageFormatCompressionParams.h.
Definition at line 57 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 50 of file mlImageFormatCompressionParams.h.
Definition at line 52 of file mlImageFormatCompressionParams.h.
Definition at line 55 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 53 of file mlImageFormatCompressionParams.h.
Definition at line 56 of file mlImageFormatCompressionParams.h.
|
inline |
Definition at line 47 of file mlImageFormatCompressionParams.h.
Update the compressor and the fields showing compression parameters.
If field is _compressorNameFld then parameters are read from the a temporarily created compressor and passed to the fields, otherwise the field settings are passed to the compressor. Use NULL as argument to update settings from a newly loaded field values.
void ml::MLImageFormatCompressionParams::resetCompressionParams | ( | ) |
Reset _compressionFld, _tagListFld, and all _tagListFld.
void ml::MLImageFormatCompressionParams::updateCompressionFieldsToLoaderState | ( | const MLImageFormat & | loader | ) |
Helper function to update compression fields to the compressor settings of the the passed loader.
It is recommended to use a loader of an opened file to get current values.
void ml::MLImageFormatCompressionParams::updateCompressorArgsFromHintFields | ( | const DataCompressor * | compressor | ) |
Clears the compressor arguments and updates them with new values from those hint fields which are valid according to the given compressor configuration.
If compressor is NULL then compressor arguments are reset/cleared.
void ml::MLImageFormatCompressionParams::updateHintFieldsFromCompressor | ( | DataCompressor * | compressor | ) |
Set up all hint fields and their visibility according to the compressor configuration.
If compressor is NULL then all hint fields are reset to their default state.
void ml::MLImageFormatCompressionParams::updateHintVisibility | ( | const DataCompressor * | compressor | ) |
Sets visibility and hint name fields according to the given compressor configuration.
If compressor is NULL then all hint visibilities are disabled and the names are set empty.
|
protected |
Reference to the related Module.
Definition at line 93 of file mlImageFormatCompressionParams.h.
|
protected |
Value of bool parameter.
Definition at line 119 of file mlImageFormatCompressionParams.h.
|
protected |
Controls visibility of boolean parameter.
Definition at line 124 of file mlImageFormatCompressionParams.h.
|
protected |
List of tags used as parameters for compressors.
Definition at line 100 of file mlImageFormatCompressionParams.h.
|
protected |
Compression scheme used for stored image data, default is first entry.
Definition at line 106 of file mlImageFormatCompressionParams.h.
|
protected |
List of available compressor names stored when creating the module.
Definition at line 97 of file mlImageFormatCompressionParams.h.
|
protected |
Value of double parameter.
Definition at line 116 of file mlImageFormatCompressionParams.h.
|
protected |
Controls visibility of double parameter.
Definition at line 123 of file mlImageFormatCompressionParams.h.
|
protected |
Name of the parameter.
Definition at line 114 of file mlImageFormatCompressionParams.h.
|
protected |
Value of integer parameter.
Definition at line 117 of file mlImageFormatCompressionParams.h.
|
protected |
Controls visibility of integer parameter.
Definition at line 121 of file mlImageFormatCompressionParams.h.
|
protected |
Value of string parameter.
Definition at line 118 of file mlImageFormatCompressionParams.h.
|
protected |
Controls visibility of string parameter.
Definition at line 122 of file mlImageFormatCompressionParams.h.
|
protected |
Field to notify a possible gui layouter of the modules to update the visibility and name displays of the controls of the hint fields.
Definition at line 110 of file mlImageFormatCompressionParams.h.