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

HxImgFtorExportExtra Class Template Reference

Instantiation of generic algorithm for export operation with an extra image. More...

#include <HxImgFtorExportExtra.h>

Inheritance diagram for HxImgFtorExportExtra::

HxImgFtorI2Cast< ImgSigT, ExtraImgSigT > HxImgFtorI2 HxImgFunctor List of all members.

Public Types

typedef HxImgFtorExportExtraKey KeyType
 The key type of this class. More...


Public Methods

 HxImgFtorExportExtra ()
 Constructor. More...

virtual ~HxImgFtorExportExtra ()
 Destructor. More...


Protected Methods

virtual void doIt (Img1DataPtrType imPtr, Img2DataPtrType extraPtr, HxSizes dstSize, HxSizes srcSize, HxTagList &tags, HxImgFtorDescription *description=0)
 Calls HxFuncExportExtraDispatch to dispatch the actual work. More...


Detailed Description

template<class ImgSigT, class ExtraImgSigT, class ExportExtraT>
class HxImgFtorExportExtra< ImgSigT, ExtraImgSigT, ExportExtraT >

Instantiation of generic algorithm for export operation with an extra image.

Template parameters:


Member Typedef Documentation

template<class ImgSigT, class ExtraImgSigT, class ExportExtraT>
typedef HxImgFtorExportExtraKey HxImgFtorExportExtra::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI2Cast.


Constructor & Destructor Documentation

template<class ImgSigT, class ExtraImgSigT, class ExportExtraT>
HxImgFtorExportExtra< ImgSigT, ExtraImgSigT, ExportExtraT >::HxImgFtorExportExtra   [inline]
 

Constructor.

template<class ImgSigT, class ExtraImgSigT, class ExportExtraT>
HxImgFtorExportExtra< ImgSigT, ExtraImgSigT, ExportExtraT >::~HxImgFtorExportExtra   [virtual]
 

Destructor.

00035 {
00036 }


Member Function Documentation

template<class ImgSigT, class ExtraImgSigT, class ExportExtraT>
void HxImgFtorExportExtra< ImgSigT, ExtraImgSigT, ExportExtraT >::doIt Img1DataPtrType    imPtr,
Img2DataPtrType    extraPtr,
HxSizes    dstSize,
HxSizes    srcSize,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Calls HxFuncExportExtraDispatch to dispatch the actual work.

Reimplemented from HxImgFtorI2Cast.

00043 {
00044     if (description) {
00045         HxString v(typename ExportExtraT::TransVarianceCategory().toString());
00046         v += ", ";
00047         v += typename ExportExtraT::PhaseCategory().toString();
00048         description->setVariation(v);
00049     }
00050 
00051     HxBoundingBox imgBb(dstSize), regionBb(dstSize);
00052     regionBb = HxGetTag(tags, "boundingBox", imgBb);
00053     regionBb = regionBb.intersect(imgBb);
00054     bool doOffsetExtra = HxGetTag(tags, "doOffsetExtra", true);
00055 
00056     ExportExtraT exportOp(tags);
00057 
00058     if (!regionBb.isEmpty()) {
00059         imPtr.incXYZ(regionBb.begin().x(),
00060                      regionBb.begin().y(),
00061                      regionBb.begin().z());
00062         if (doOffsetExtra)
00063             extraPtr.incXYZ(regionBb.begin().x(),
00064                             regionBb.begin().y(),
00065                             regionBb.begin().z());
00066         HxFuncExportExtraDispatch(imPtr, extraPtr, regionBb.size(), exportOp);
00067     }
00068 }


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