#include <HxRgbStretch.h>
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... | |
pixV is strectched between lowVal and highVal.
|
|||||
|
The "double" arithtype.
|
|
||||||||||
|
Constructor.
|
|
||||||||||
|
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 }
|
|
||||||||||
|
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 }
|
|
|||||||||
|
The name : "Stretch".
00058 { return HxString("Stretch"); }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001