SliceViewer Class Reference

#include <SliceViewer.h>

List of all members.

Public Member Functions

 SliceViewer (VolumeLoader *volume_ldr)
virtual ~SliceViewer ()
RGBAColorgetSlice (SliceOrientation orientation, unsigned int *slice_depth)
unsigned short getSliceVoxel (unsigned int curr_x_dim, unsigned int curr_y_dim, unsigned int slice_depth)
void isThreshholdSet (bool thresh)
void loadNewVolume ()
void createSlicePixel (SliceOrientation orientation, unsigned int x_val, unsigned int y_val, unsigned short data_point)
VolumegetVolume ()

Public Attributes

Volumevolume_
 The whole volume data.
RGBAColorfront_color_data_
 The color values for the front slice.
RGBAColorside_color_data_
 The color values for the side slice.
RGBAColortop_color_data_
 The color values for the top slice.
bool * showGradientsPt

Protected Attributes

VolumeLoadervolume_loader_
unsigned int slice_x_dim_
 The x dimension of the slice image.
unsigned int slice_y_dim_
 The y dimension of the slice image.
unsigned int slice_z_dim_
 The z dimension of the slice image.
unsigned int slice_number
 The dimension of the current slice.
unsigned int x_dim
unsigned int y_dim
bool is_transfer_func_


Constructor & Destructor Documentation

SliceViewer::SliceViewer ( VolumeLoader volume_ldr  ) 

The constructor sets all relevant variables for the slices.

Parameters:
slice_data The data values for the slices.

SliceViewer::~SliceViewer (  )  [virtual]

The destructor.


Member Function Documentation

void SliceViewer::createSlicePixel ( SliceOrientation  orientation,
unsigned int  x_val,
unsigned int  y_val,
unsigned short  data_point 
)

Creates the color of the pixel.

Parameters:
orientation Sets the orientation of the slice.
x_val The x position of the pixel.
y_val The y position of the pixel.
data_point The data values for the current slice.

RGBAColor * SliceViewer::getSlice ( SliceOrientation  orientation,
unsigned int *  slice_depth 
)

Returns the slice.

Parameters:
orientation The orientation of the slice.
slice_depth The depth of the slice through the volume.
Returns:
Returns the pointer to the slice array depending on the orientation and depth.

unsigned short SliceViewer::getSliceVoxel ( unsigned int  curr_x_dim,
unsigned int  curr_y_dim,
unsigned int  slice_depth 
)

Returns the front slice opacity value.

Parameters:
curr_x_dim The x position of the requested pixel.
curr_y_dim The y position of the requested pixel.
slice_depth The requested slice number.

Volume * SliceViewer::getVolume (  ) 

void SliceViewer::isThreshholdSet ( bool  thresh  ) 

Sets the flag for the threshold.

Parameters:
is_thresh If this pararmeter is true, the threshold is enabled.

void SliceViewer::loadNewVolume (  ) 

Loads a new volume.


Member Data Documentation

RGBAColor* SliceViewer::front_color_data_

The color values for the front slice.

bool SliceViewer::is_transfer_func_ [protected]

bool* SliceViewer::showGradientsPt

RGBAColor* SliceViewer::side_color_data_

The color values for the side slice.

unsigned int SliceViewer::slice_number [protected]

The dimension of the current slice.

unsigned int SliceViewer::slice_x_dim_ [protected]

The x dimension of the slice image.

unsigned int SliceViewer::slice_y_dim_ [protected]

The y dimension of the slice image.

unsigned int SliceViewer::slice_z_dim_ [protected]

The z dimension of the slice image.

RGBAColor* SliceViewer::top_color_data_

The color values for the top slice.

Volume* SliceViewer::volume_

The whole volume data.

VolumeLoader* SliceViewer::volume_loader_ [protected]

unsigned int SliceViewer::x_dim [protected]

unsigned int SliceViewer::y_dim [protected]


The documentation for this class was generated from the following files:
Generated on Wed Dec 6 11:27:27 2006 by  doxygen 1.4.7