Hist_Transfer Class Reference

#include <Hist_Transfer.h>

List of all members.

Signals

void choose (int label, QColor color)
void valueChange ()

Public Member Functions

 Hist_Transfer (QWidget *parent=0)
void setKnotColor (int label, QColor color)
void setHistogram ()
void setScanData (unsigned short *scanData, unsigned int size)
void updateHist (unsigned int x, unsigned int y)
float * getTexture ()
unsigned int getClassCt ()
void printFunction (QDataStream &fileHandle)
void loadFunction (QDataStream &fileHandle)

Protected Member Functions

void paintEvent (QPaintEvent *evt)
void resizeEvent (QResizeEvent *evt)
void mousePressEvent (QMouseEvent *evt)
void mouseMoveEvent (QMouseEvent *evt)
void mouseReleaseEvent (QMouseEvent *evt)
void keyPressEvent (QKeyEvent *evt)
void paint ()


Detailed Description

This class encapsulates the functionality of the histogram together with the transfer function.

Constructor & Destructor Documentation

Hist_Transfer::Hist_Transfer ( QWidget *  parent = 0  ) 

Constructs a new Transfer Function Histogram Object


Member Function Documentation

unsigned int Hist_Transfer::getClassCt (  ) 

Returns the number of classes the histogram consists of

float * Hist_Transfer::getTexture (  ) 

Returns the assembled data required for the construction of a 1D Texture containing the transfer functions values

void Hist_Transfer::loadFunction ( QDataStream &  fileHandle  ) 

This function reads the transfer function at the given point of the filestream passed, identified by 'fileHandle'

void Hist_Transfer::printFunction ( QDataStream &  fileHandle  ) 

This function streams the transfer function at the given point to the filestream passed, identified by 'fileHandle'

void Hist_Transfer::setHistogram (  ) 

Calculates the histogram for the data actually stored

void Hist_Transfer::setKnotColor ( int  label,
QColor  color 
)

Sets the color for the actual chosen knot identified by 'label' to the color 'color'

void Hist_Transfer::setScanData ( unsigned short *  scanData,
unsigned int  size 
)

Sets up the volumetric data this widget should operate on, where 'scanData' points to an array of 1 dimensional data with the given size 'size'

void Hist_Transfer::updateHist ( unsigned int  x,
unsigned int  y 
)

Inserts a new knot into the transfer function or moves an existing knot, depending on the distance between the mouse position '(x,y)' and the nearest knot


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 14:40:58 2008 by  doxygen 1.5.7.1