#include <HxImgFtorSetBorder3d.h>
Inheritance diagram for HxImgFtorSetBorder3d::
Public Types | |
typedef HxImgFtorSetBorderKey | KeyType |
The key type of this class. More... | |
Public Methods | |
HxImgFtorSetBorder3d () | |
Constructor. More... | |
virtual | ~HxImgFtorSetBorder3d () |
Destructor. More... | |
Protected Methods | |
virtual void | doIt (ImgDataPtrType imgPtr, HxSizes imgSize, HxTagList &tags, HxImgFtorDescription *=0) |
Calls one of the functions below to do the actual work based on the "borderType" tag: HxFuncBorderConstant3d, HxFuncBorderMirror3d (default), HxFuncBorderPropagate3d. More... |
Template parameters:
|
The key type of this class.
Reimplemented from HxImgFtorI1Cast. |
|
Constructor.
00020 : HxImgFtorI1Cast<ImgSigT>( 00021 HxImgFtorSetBorderKey(HxClassName<ImgSigT>())) 00022 { 00023 } |
|
Destructor.
00027 { 00028 } |
|
Calls one of the functions below to do the actual work based on the "borderType" tag: HxFuncBorderConstant3d, HxFuncBorderMirror3d (default), HxFuncBorderPropagate3d.
Reimplemented from HxImgFtorI1Cast.
00036 { 00037 HxBorderType borderType 00038 = HxGetTag(tags, "borderType", HxBorderType(HXBORDERMIRROR)); 00039 HxSizes borderSize = HxGetTag(tags, "borderSize", HxSizes(0, 0, 0)); 00040 00041 switch (borderType) 00042 { 00043 case HXBORDERCONSTANT : 00044 { 00045 HxValue value = HxGetTag(tags, "borderValue", HxValue(0)); 00046 HxFuncBorderConstant3d(imgPtr, imgSize, borderSize, value); 00047 } 00048 break; 00049 case HXBORDERMIRROR : 00050 HxFuncBorderMirror3d(imgPtr, imgSize, borderSize); 00051 break; 00052 case HXBORDERPROPAGATE : 00053 HxFuncBorderPropagate3d(imgPtr, imgSize, borderSize); 00054 break; 00055 } 00056 } |