#include <vuVHImage.h>
Collaboration diagram for vuVHImage:
Public Member Functions | |
vuVHImage () | |
Constructor. | |
vuVHImage (const vuString &filename) | |
Constructor. | |
virtual | ~vuVHImage () |
destructor | |
bool | loadSlice (const vuString &filename) |
Load. | |
bool | magicMatch () |
Indicate that the load procedure was successful. | |
dword | getWidth () |
Returns width (maxX) of the image. | |
dword | getHeight () |
Returns height (maxY) of the image. | |
dword | getDepth () |
Returns number of bits per sample. | |
const char * | getTextTable () |
Returns text table of the image. | |
const byte * | getData () |
Returns a pointer to the data. | |
Protected Attributes | |
dword | magic |
Magic key. | |
dword | offset |
offset of the raw data in the file | |
dword | width |
width of the image | |
dword | height |
height of the image | |
dword | depth |
number of bits per sample | |
dword | compressType |
compression type 1 means no compression --> raw data | |
dword | defaultWindowWidth |
See the visible human project for details on this entry. | |
dword | defaultLevelVal |
See the visible human project for details on this entry. | |
dword | defaultBGShade |
See the visible human project for details on this entry. | |
dword | overflowPixVal |
See the visible human project for details on this entry. | |
dword | underflowPixVal |
See the visible human project for details on this entry. | |
dword | blankLineTop |
See the visible human project for details on this entry. | |
dword | blankLineBot |
See the visible human project for details on this entry. | |
word | hdrVersion |
See the visible human project for details on this entry. | |
word | checksum |
See the visible human project for details on this entry. | |
char * | txtTable |
Short info text in file. | |
byte * | data |
This is the raw data of the image. |
Definition at line 11 of file vuVHImage.h.
|
Constructor.
Definition at line 10 of file vuVHImage.cpp. |
|
Constructor. Calls loadSlice(). Definition at line 17 of file vuVHImage.cpp. References data, dword, loadSlice(), magic, and txtTable. |
Here is the call graph for this function:
|
destructor
Definition at line 25 of file vuVHImage.cpp. |
|
Returns a pointer to the data. Two byte per pixel. So overall size is width*height*2. Order is swizzled from original file to little endian (lower byte at lower address). Maybe we should distinguish systems with big endian as native format (SGI?) and leave it like this. That would allow that always a word[] array could be mapped easily. By now we don't have such a switch. Definition at line 44 of file vuVHImage.h. References byte. Referenced by readFreZ(). |
|
Returns number of bits per sample. Should be 16. Definition at line 34 of file vuVHImage.h. References dword. |
|
Returns height (maxY) of the image.
Definition at line 31 of file vuVHImage.h. References dword. Referenced by readFreZ(). |
|
Returns text table of the image.
Definition at line 36 of file vuVHImage.h. |
|
Returns width (maxX) of the image.
Definition at line 29 of file vuVHImage.h. References dword. Referenced by readFreZ(). |
|
Load.
Definition at line 37 of file vuVHImage.cpp. References blankLineBot, blankLineTop, byte, checksum, vuString::compare(), compressType, data, defaultBGShade, defaultLevelVal, defaultWindowWidth, depth, dword, vuString::getLength(), hdrVersion, height, magic, offset, overflowPixVal, vuString::substr(), swizzle(), txtTable, underflowPixVal, width, and word. Referenced by readFreZ(), and vuVHImage(). |
Here is the call graph for this function:
|
Indicate that the load procedure was successful.
Definition at line 26 of file vuVHImage.h. Referenced by readFreZ(). |
|
See the visible human project for details on this entry.
Definition at line 74 of file vuVHImage.h. Referenced by loadSlice(). |
|
See the visible human project for details on this entry.
Definition at line 72 of file vuVHImage.h. Referenced by loadSlice(). |
|
See the visible human project for details on this entry.
Definition at line 78 of file vuVHImage.h. Referenced by loadSlice(). |
|
compression type 1 means no compression --> raw data
Definition at line 60 of file vuVHImage.h. Referenced by loadSlice(). |
|
This is the raw data of the image. Two byte per pixel. So overall size is width*height*2. Order is swizzled from original file to little endian (lower byte at lower address). Definition at line 86 of file vuVHImage.h. Referenced by loadSlice(), vuVHImage(), and ~vuVHImage(). |
|
See the visible human project for details on this entry.
Definition at line 66 of file vuVHImage.h. Referenced by loadSlice(). |
|
See the visible human project for details on this entry.
Definition at line 64 of file vuVHImage.h. Referenced by loadSlice(). |
|
See the visible human project for details on this entry.
Definition at line 62 of file vuVHImage.h. Referenced by loadSlice(). |
|
number of bits per sample
Definition at line 57 of file vuVHImage.h. Referenced by loadSlice(). |
|
See the visible human project for details on this entry.
Definition at line 76 of file vuVHImage.h. Referenced by loadSlice(). |
|
height of the image
Definition at line 55 of file vuVHImage.h. Referenced by loadSlice(). |
|
Magic key. Should be VH_MAGIC (0x494d4746) Definition at line 49 of file vuVHImage.h. Referenced by loadSlice(), and vuVHImage(). |
|
offset of the raw data in the file
Definition at line 51 of file vuVHImage.h. Referenced by loadSlice(). |
|
See the visible human project for details on this entry.
Definition at line 68 of file vuVHImage.h. Referenced by loadSlice(). |
|
Short info text in file.
Definition at line 81 of file vuVHImage.h. Referenced by loadSlice(), vuVHImage(), and ~vuVHImage(). |
|
See the visible human project for details on this entry.
Definition at line 70 of file vuVHImage.h. Referenced by loadSlice(). |
|
width of the image
Definition at line 53 of file vuVHImage.h. Referenced by loadSlice(). |