#include <SliceViewer.h>
Public Member Functions | |
SliceViewer (VolumeLoader *volume_ldr) | |
virtual | ~SliceViewer () |
RGBAColor * | getSlice (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) |
Volume * | getVolume () |
Public Attributes | |
Volume * | volume_ |
The whole volume data. | |
RGBAColor * | front_color_data_ |
The color values for the front slice. | |
RGBAColor * | side_color_data_ |
The color values for the side slice. | |
RGBAColor * | top_color_data_ |
The color values for the top slice. | |
bool * | showGradientsPt |
Protected Attributes | |
VolumeLoader * | volume_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_ |
SliceViewer::SliceViewer | ( | VolumeLoader * | volume_ldr | ) |
The constructor sets all relevant variables for the slices.
slice_data | The data values for the slices. |
SliceViewer::~SliceViewer | ( | ) | [virtual] |
The destructor.
void SliceViewer::createSlicePixel | ( | SliceOrientation | orientation, | |
unsigned int | x_val, | |||
unsigned int | y_val, | |||
unsigned short | data_point | |||
) |
Creates the color of the pixel.
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.
orientation | The orientation of the slice. | |
slice_depth | The depth of the slice through the volume. |
unsigned short SliceViewer::getSliceVoxel | ( | unsigned int | curr_x_dim, | |
unsigned int | curr_y_dim, | |||
unsigned int | slice_depth | |||
) |
Returns the front slice opacity value.
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.
is_thresh | If this pararmeter is true, the threshold is enabled. |
void SliceViewer::loadNewVolume | ( | ) |
Loads a new volume.
The color values for the front slice.
bool SliceViewer::is_transfer_func_ [protected] |
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.
The color values for the top slice.
The whole volume data.
VolumeLoader* SliceViewer::volume_loader_ [protected] |
unsigned int SliceViewer::x_dim [protected] |
unsigned int SliceViewer::y_dim [protected] |