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

HxMfIdentity Class Reference

Class definition of method frame for identity. More...

#include <HxMfIdentity.h>

List of all members.

Public Methods

 HxMfIdentity (HxImageData *src, int pixDim=0)
 Constructor. More...

 ~HxMfIdentity ()
 Destructor. More...

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

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


Detailed Description

Class definition of method frame for identity.

The method frame just copies the image data to ensure the value paradigm. So, result() will point to a copy of src (with the same signature, sizes and pixel values) to take care of the value paradigm. However, if (pixDim != 0) it will have the specified pixel dimensionality.


Constructor & Destructor Documentation

HxMfIdentity::HxMfIdentity HxImageData   src,
int    pixDim = 0
 

Constructor.

00016                                                        : _source(src)
00017 {
00018     if (!_source)
00019         return;
00020 
00021     HxImageSignature srcSig(_source->signature());
00022     if (pixDim != 0)
00023         srcSig.setPixelDimensionality(pixDim);
00024     HxSizes sizes = _source->sizes();
00025 
00026     _result = HxImgDataFactory::instance().makeImage(srcSig, sizes);
00027     if (_result)
00028         _result->set(_source);
00029 }

HxMfIdentity::~HxMfIdentity  
 

Destructor.

00032 {
00033 }


Member Function Documentation

HxImageData * HxMfIdentity::source   const
 

The source image of the frame.

00037 { 
00038     return _source; 
00039 }

HxImageData * HxMfIdentity::result   const
 

The result image of the frame.

00043 { 
00044     return _result; 
00045 }


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