Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImgFtorRgb2d Class Template Reference

Instantiation of generic algorithm for display of 2d images. More...

#include <HxImgFtorRgb2d.h>

Inheritance diagram for HxImgFtorRgb2d::

HxImgFtorI1Cast HxImgFtorI1 HxImgFunctor List of all members.

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...


Detailed Description

template<class ImgSigT, class RgbT>
class HxImgFtorRgb2d< ImgSigT, RgbT >

Instantiation of generic algorithm for display of 2d images.

Template parameters:


Member Typedef Documentation

template<class ImgSigT, class RgbT>
typedef HxImgFtorRgbKey HxImgFtorRgb2d::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI1Cast.


Constructor & Destructor Documentation

template<class ImgSigT, class RgbT>
HxImgFtorRgb2d< ImgSigT, RgbT >::HxImgFtorRgb2d   [inline]
 

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 }

template<class ImgSigT, class RgbT>
HxImgFtorRgb2d< ImgSigT, RgbT >::~HxImgFtorRgb2d   [virtual]
 

Destructor.

00034 {
00035 #ifdef CD_TRACE
00036     HxEnvironment::instance()->outputStream()
00037         << "HxImgFtorRgb2d::~HxImgFtorRgb2d()" << STD_ENDL;
00038 #endif
00039 }


Member Function Documentation

template<class ImgSigT, class RgbT>
void HxImgFtorRgb2d< ImgSigT, RgbT >::doIt ImgDataPtrType    ptr,
HxSizes    size,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Do it.

Parameters:
ptr  Input image: IS = size, IBS = 0
Calls HxFuncRgbOp2d to do the actual work.

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 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 3 14:19:00 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001