|
Public Member Functions |
| VolHeader (const size_t width, const size_t height, const size_t depth) |
| Everything accept dimensions set to defaults.
|
| VolHeader (const size_t width, const size_t height, const size_t depth, const size_t bitsPerVoxel, const float scaleX, const float scaleY, const float scaleZ, const float rotX, const float rotY, const float rotZ) |
| VolHeader (const std::string filename, bool &ok) |
| Read a volume header from a file.
|
size_t | write (FILE *outFile) |
| Use fwrite to put out the header.
|
uint32_t | getMagicNumber () const |
| Return value in host byte order.
|
uint32_t | getHeaderLength () const |
| Return value in host byte order.
|
uint32_t | getWidth () const |
| Return in host byte order.
|
uint32_t | getHeight () const |
| Return in host byte order.
|
uint32_t | getImages () const |
| Return in host byte order.
|
uint32_t | getBitsPerVoxel () const |
| Return in host byte order.
|
uint32_t | getIndexBits () const |
| Return in host byte order.
|
float | getScaleX () const |
| Return in host byte order.
|
float | getScaleY () const |
| Return in host byte order.
|
float | getScaleZ () const |
| Return in host byte order.
|
float | getRotX () const |
| Return in host byte order.
|
float | getRotY () const |
| Return in host byte order.
|
float | getRotZ () const |
| Return in host byte order.
|
size_t | getDataSize () const |
| How many bytes do we expect of data in the vol file?
|
void | setMagicNumber (const size_t v) |
| DANGER DANGER.
|
void | setHeaderLength (const size_t v) |
| DANGER DANGER DANGER.
|
void | setWidth (const size_t v) |
| Do you really know what you are doing here?
|
void | setHeight (const size_t v) |
| I hope your data is the right size!
|
void | setImages (const size_t v) |
| How many do you want?
|
void | setBitsPerVoxel (const size_t v) |
| True??? FIX: this plus index bits should be a multiple of 8.
|
void | setIndexBits (const size_t v) |
| True??? FIX: this plus bpv bits should be a multiple of 8.
|
void | setScaleX (const float v) |
| Should be safe to do this.
|
void | setScaleY (const float v) |
| Should be safe to do this.
|
void | setScaleZ (const float v) |
| Should be safe to do this.
|
void | setRotX (const float v) |
| Should be safe to do this. Value in radians.
|
void | setRotY (const float v) |
| Should be safe to do this. Value in radians.
|
void | setRotZ (const float v) |
| Should be safe to do this. Value in radians.
|
Static Public Member Functions |
static size_t | requiredSize () |
| This is the expected size of the header.
|
static uint32_t | hMagicNum () |
| Host byte order magic number.
|
static uint32_t | nMagicNum () |
| Network byte order magic number - what goes in the file.
|
Private Attributes |
uint32_t | magic_number |
| hton_uint32(0x0b7e7759)
|
uint32_t | header_length |
| This had better be the same as sizeof(VolHeader).
|
uint32_t | width |
| Width in cells/pixels in the x direction. How many cells wide?
|
uint32_t | height |
| Height in cells/pixels in the y direction.
|
uint32_t | images |
| Depth in cells/pixels in the z direction.
|
uint32_t | bits_per_voxel |
uint32_t | index_bits |
| FIX does the bug tag not work? bug Do not know what to do with index bits.
|
float | scaleX |
| Scale the model in the x-axis. Usually 1.0.
|
float | scaleY |
float | scaleZ |
float | rotX |
| You could rotate this model here.
|
float | rotY |
float | rotZ |