#include <HxMfExportExtra.h>
Public Methods | |
HxMfExportExtra (HxImageData *source, HxImageData *extra, HxString exName, HxTagList &tags) | |
Constructor. More... | |
~HxMfExportExtra () | |
Destructor. More... | |
HxImageData * | source () const |
The source image of the frame. More... | |
HxImageData * | extra () const |
The extra image of the frame. More... | |
bool | preOpIsOk () const |
Indicates whether initialization was OK. More... |
The required type for the extra image is obtained via
extratype of exportExtra<source,exportName>
|
Constructor.
00020 : _source(srcImg), _extra(extra), _tmpExtra(0), _preOpIsOk(true) 00021 { 00022 if (!_source || !_extra) { 00023 _preOpIsOk = false; 00024 return; 00025 } 00026 00027 HxImageSignature srcSig(_source->signature()); 00028 00029 HxImageSignature extraSig 00030 = HxImgFtorRuleBase::instance().getExtraType( 00031 _extra->signature(), "exportExtra", srcSig.toString(), exName); 00032 00033 if (extraSig != _extra->signature()) { 00034 _tmpExtra = HxImgDataFactory::instance().makeImage( 00035 extraSig, _extra->sizes()); 00036 _tmpExtra->setPartImage(_extra); 00037 _extra = _tmpExtra; 00038 } 00039 } |
|
Destructor.
00042 { 00043 if (_tmpExtra) 00044 delete _tmpExtra; 00045 } |
|
The source image of the frame.
00049 { 00050 return _source; 00051 } |
|
The extra image of the frame.
00055 { 00056 return _extra; 00057 } |
|
Indicates whether initialization was OK.
00054 { 00055 return _preOpIsOk; 00056 } |