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

HxMfResize Class Reference

Class definition of method frame for resizing of image. More...

#include <HxMfResize.h>

List of all members.

Public Methods

 HxMfResize (HxImageData *src, HxSizes newSize, HxImageData *argImg=0)
 Constructor. More...

 ~HxMfResize ()
 Destructor. More...

HxImageDatasource () const
 The source image of the frame. More...

HxImageDataargument () const
 The argument image of the frame. More...

HxImageDataresult () const
 The result image of the frame. More...


Detailed Description

Class definition of method frame for resizing of image.

The method frame is used when the resulting image has a different size than the operand image.

result() will point to an empty image with the signature of src and the specified sizes. In case the signature of argImg is not equal to the signature of src a temporary image with that signature will be created for argument() with the same pixel values as argImg.


Constructor & Destructor Documentation

HxMfResize::HxMfResize HxImageData   src,
HxSizes    newSize,
HxImageData   argImg = 0
 

Constructor.

00017     : _source(src), _argument(argImg), _tmpArg(0)
00018 {
00019     if (!_source)
00020         return;
00021 
00022     HxImageSignature srcSig(_source->signature());
00023 
00024     if (_argument) {
00025         HxImageSignature argSig(_argument->signature());
00026         if (!argSig.isEqual(srcSig)) {
00027             _tmpArg = HxImgDataFactory::instance().makeImage(srcSig, newSize);
00028             _tmpArg->set(_argument);
00029             _argument = _tmpArg;
00030         }
00031     }
00032 
00033     _result = HxImgDataFactory::instance().makeImage(srcSig, newSize);
00034 //    if (_result)
00035 //        _result->set(_source);
00036 }

HxMfResize::~HxMfResize  
 

Destructor.

00039 {
00040     if (_tmpArg) 
00041         delete _tmpArg;
00042 }


Member Function Documentation

HxImageData * HxMfResize::source   const
 

The source image of the frame.

00046 { 
00047     return _source; 
00048 }

HxImageData * HxMfResize::argument   const
 

The argument image of the frame.

00052 { 
00053     return _argument; 
00054 }

HxImageData * HxMfResize::result   const
 

The result image of the frame.

00058 { 
00059     return _result; 
00060 }


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