#include <HxImgFtorRgb2d.h>
Inheritance diagram for HxImgFtorRgb2d::

Public Types | |
| typedef HxImgFtorRgbKey | KeyType |
| The key type of this class. More... | |
Public Methods | |
| HxImgFtorRgb2d () | |
| Constructor. More... | |
| virtual | ~HxImgFtorRgb2d () |
| Destructor. More... | |
Protected Methods | |
| virtual void | doIt (ImgDataPtrType ptr, HxSizes size, HxTagList &tags, HxImgFtorDescription *=0) |
| Do it. More... | |
Template parameters:
|
|||||
|
The key type of this class.
Reimplemented from HxImgFtorI1Cast. |
|
|||||||||
|
Constructor.
00020 : HxImgFtorI1Cast<ImgSigT>(HxImgFtorRgbKey(HxClassName<ImgSigT>(), 00021 HxClassName<RgbT>())) 00022 { 00023 #ifdef CD_TRACE 00024 HxEnvironment::instance()->outputStream() 00025 << "HxImgFtorRgb2d::HxImgFtorRgb2d()" << STD_ENDL; 00026 #endif 00027 static HxRegKey* surKey 00028 = HxRegistry::instance().insertKey("/imagefunctortable/rgb"); 00029 surKey->insertValue(HxClassName<RgbT>(), HxRegData(1)); 00030 } |
|
|||||||||
|
Destructor.
00034 {
00035 #ifdef CD_TRACE
00036 HxEnvironment::instance()->outputStream()
00037 << "HxImgFtorRgb2d::~HxImgFtorRgb2d()" << STD_ENDL;
00038 #endif
00039 }
|
|
||||||||||||||||||||||||
|
Do it.
Reimplemented from HxImgFtorI1Cast.
00045 {
00046 int* pixels = HxGetTag<int*>(tags, "pixels");
00047 int resWidth = HxGetTag<int>(tags, "resWidth");
00048 int resHeight = HxGetTag<int>(tags, "resHeight");
00049 HxGeoIntType gi = HxGetTag<HxGeoIntType>(tags, "gi");
00050
00051 RgbT rgb(tags);
00052
00053 HxFuncRgbOp2d(ptr, size, pixels, resWidth, resHeight, gi, rgb);
00054 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001