Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuVHImage Class Reference

Class to manage import of fre.Z images as used in the visible human project. More...

#include <vuVHImage.h>

Collaboration diagram for vuVHImage:

Collaboration graph
[legend]
List of all members.

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 bytegetData ()
 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.
bytedata
 This is the raw data of the image.

Detailed Description

Class to manage import of fre.Z images as used in the visible human project.

Definition at line 11 of file vuVHImage.h.


Constructor & Destructor Documentation

vuVHImage::vuVHImage  ) 
 

Constructor.

Definition at line 10 of file vuVHImage.cpp.

References data, magic, and txtTable.

vuVHImage::vuVHImage const vuString filename  ) 
 

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:

vuVHImage::~vuVHImage  )  [virtual]
 

destructor

Definition at line 25 of file vuVHImage.cpp.

References data, and txtTable.


Member Function Documentation

const byte* vuVHImage::getData  )  [inline]
 

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().

dword vuVHImage::getDepth  )  [inline]
 

Returns number of bits per sample.

Should be 16.

Definition at line 34 of file vuVHImage.h.

References dword.

dword vuVHImage::getHeight void   )  [inline]
 

Returns height (maxY) of the image.

Definition at line 31 of file vuVHImage.h.

References dword.

Referenced by readFreZ().

const char* vuVHImage::getTextTable  )  [inline]
 

Returns text table of the image.

Definition at line 36 of file vuVHImage.h.

dword vuVHImage::getWidth void   )  [inline]
 

Returns width (maxX) of the image.

Definition at line 29 of file vuVHImage.h.

References dword.

Referenced by readFreZ().

bool vuVHImage::loadSlice const vuString filename  ) 
 

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:

bool vuVHImage::magicMatch  )  [inline]
 

Indicate that the load procedure was successful.

Definition at line 26 of file vuVHImage.h.

Referenced by readFreZ().


Member Data Documentation

dword vuVHImage::blankLineBot [protected]
 

See the visible human project for details on this entry.

Definition at line 74 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::blankLineTop [protected]
 

See the visible human project for details on this entry.

Definition at line 72 of file vuVHImage.h.

Referenced by loadSlice().

word vuVHImage::checksum [protected]
 

See the visible human project for details on this entry.

Definition at line 78 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::compressType [protected]
 

compression type 1 means no compression --> raw data

Definition at line 60 of file vuVHImage.h.

Referenced by loadSlice().

byte* vuVHImage::data [protected]
 

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().

dword vuVHImage::defaultBGShade [protected]
 

See the visible human project for details on this entry.

Definition at line 66 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::defaultLevelVal [protected]
 

See the visible human project for details on this entry.

Definition at line 64 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::defaultWindowWidth [protected]
 

See the visible human project for details on this entry.

Definition at line 62 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::depth [protected]
 

number of bits per sample

Definition at line 57 of file vuVHImage.h.

Referenced by loadSlice().

word vuVHImage::hdrVersion [protected]
 

See the visible human project for details on this entry.

Definition at line 76 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::height [protected]
 

height of the image

Definition at line 55 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::magic [protected]
 

Magic key.

Should be VH_MAGIC (0x494d4746)

Definition at line 49 of file vuVHImage.h.

Referenced by loadSlice(), and vuVHImage().

dword vuVHImage::offset [protected]
 

offset of the raw data in the file

Definition at line 51 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::overflowPixVal [protected]
 

See the visible human project for details on this entry.

Definition at line 68 of file vuVHImage.h.

Referenced by loadSlice().

char* vuVHImage::txtTable [protected]
 

Short info text in file.

Definition at line 81 of file vuVHImage.h.

Referenced by loadSlice(), vuVHImage(), and ~vuVHImage().

dword vuVHImage::underflowPixVal [protected]
 

See the visible human project for details on this entry.

Definition at line 70 of file vuVHImage.h.

Referenced by loadSlice().

dword vuVHImage::width [protected]
 

width of the image

Definition at line 53 of file vuVHImage.h.

Referenced by loadSlice().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:22:08 2004 for vuVolume by  doxygen 1.3.9.1