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

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... | |
Template parameters:
      
  | 
  |||||
| 
 The key type of this class. 
 Reimplemented from HxImgFtorI2Cast.  | 
  
      
  | 
  |||||||||
| 
 Constructor. 
 
 00023 : HxImgFtorI2Cast<ImgSigT,ExtraImgSigT>( 00024 HxImgFtorExportExtraKey(HxClassName<ImgSigT>(), 00025 HxClassName<ExtraImgSigT>(), 00026 HxClassName<ExportExtraT>())) 00027 { 00028 HxImgFtorRuleBase::instance().setExtraType( 00029 HxClassName<ExtraImgSigT>(), "exportExtra", 00030 HxClassName<ImgSigT>(), HxClassName<ExportExtraT>()); 00031 }  | 
  
      
  | 
  |||||||||
| 
 Destructor. 
 
 00035 {
00036 }
 | 
  
      
  | 
  ||||||||||||||||||||||||||||||||
| 
 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 }
 | 
  
1.2.12 written by Dimitri van Heesch,
 © 1997-2001