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

HxRgbStretch Class Template Reference

Stretched display. More...

#include <HxRgbStretch.h>

List of all members.

Public Types

typedef ValDoubleT ArithTypeDouble
 The "double" arithtype. More...


Public Methods

 HxRgbStretch (HxTagList &tags)
 Constructor. More...

int doIt (const ValT &pixV)
 Actual operation for the "standard" arithtype. More...

int doItDouble (const ValDoubleT &pixV)
 Actual operation for the "double" arithtype. More...


Static Public Methods

HxString className ()
 The name : "Stretch". More...


Detailed Description

template<class ValT, class ValDoubleT>
class HxRgbStretch< ValT, ValDoubleT >

Stretched display.

pixV is strectched between lowVal and highVal.


Member Typedef Documentation

template<class ValT, class ValDoubleT>
typedef ValDoubleT HxRgbStretch::ArithTypeDouble
 

The "double" arithtype.


Constructor & Destructor Documentation

template<class ValT, class ValDoubleT>
HxRgbStretch< ValT, ValDoubleT >::HxRgbStretch HxTagList   tags [inline]
 

Constructor.

00030                             {
00031                                 _lowVal = HxGetTag(tags, "lowVal", double(0));
00032                                 _highVal = HxGetTag(tags, "highVal", double(255));
00033                                 _interval = _highVal - _lowVal;
00034                             }


Member Function Documentation

template<class ValT, class ValDoubleT>
int HxRgbStretch< ValT, ValDoubleT >::doIt const ValT &    pixV [inline]
 

Actual operation for the "standard" arithtype.

00038                             {
00039                                 HxVec3Double v = (HxVec3Double) pixV;
00040                                 int x = (int) (((v.x() - _lowVal) / _interval) * 255);
00041                                 int y = (int) (((v.y() - _lowVal) / _interval) * 255);
00042                                 int z = (int) (((v.z() - _lowVal) / _interval) * 255);
00043                                 return (255 << 24) | (x << 16) | (y << 8) | z;
00044                             }

template<class ValT, class ValDoubleT>
int HxRgbStretch< ValT, ValDoubleT >::doItDouble const ValDoubleT &    pixV [inline]
 

Actual operation for the "double" arithtype.

00048                             {
00049                                 HxVec3Double v = (HxVec3Double) pixV;
00050                                 int x = (int) (((v.x() - _lowVal) / _interval) * 255);
00051                                 int y = (int) (((v.y() - _lowVal) / _interval) * 255);
00052                                 int z = (int) (((v.z() - _lowVal) / _interval) * 255);
00053                                 return (255 << 24) | (x << 16) | (y << 8) | z;
00054                             }

template<class ValT, class ValDoubleT>
HxString HxRgbStretch< ValT, ValDoubleT >::className   [inline, static]
 

The name : "Stretch".

00058                             { return HxString("Stretch"); }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:49:09 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001