TFWidget Class Reference

#include <TFWidget.h>

Collaboration diagram for TFWidget:
[legend]

List of all members.

Public Member Functions

 TFWidget (QWidget *parent=0, int width=0, int height=0)
 ~TFWidget ()
QSize minimumSizeHint () const
QSize sizeHint () const
void setVolume (Volume *vol)
void setHistoScale (int scale)
void addListener (GLWidget *newListener)
void addListener (RCWidget *newListener)
void updateListeners ()
std::vector< TFPoint > * getTransferPoints ()
bool setTransferPoints (std::vector< TFPoint > *tfpoints)
void setKeyEvent (QKeyEvent *event)
void unsetKeyEvent (QKeyEvent *event)

Protected Member Functions

void initializeGL ()
void paintGL ()
void resizeGL (int width, int height)
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)

Private Member Functions

void makeMeCurrent ()
void generateDisplayList ()
void createTransferPoint ()
void deleteTransferPoint ()
void changeTransferPoint ()
void sortTransferPoints ()
bool compareTransferPoints (TFPoint first, TFPoint second)
void updateAll ()
void createTransferTexture ()
void update1dTexture ()
void delete1dTexture ()
const int GetNextPowerOfTwo (const int iNumber)
float mapX (float x)
float mapY (float y)

Private Attributes

int widgetWidth
int widgetHeight
QPoint mousePos
bool mouseDrag
bool keyPressed
std::vector< TFPointtransferPoints
float pointSize
int currentSelectedPoint
std::vector< int > * histogram
unsigned int histogramDisplayList
int histScale
float maxDensity
Volumevolume
GLuint texture1d
float texData [MAX_DENSITY_VALUES *4]
int textureHeight
float xRatio
float yRatio
std::vector< GLWidget * > GLlisteners
std::vector< RCWidget * > RClisteners


Constructor & Destructor Documentation

TFWidget::TFWidget ( QWidget *  parent = 0,
int  width = 0,
int  height = 0 
)

TFWidget::~TFWidget (  ) 


Member Function Documentation

void TFWidget::addListener ( RCWidget newListener  ) 

void TFWidget::addListener ( GLWidget newListener  ) 

void TFWidget::changeTransferPoint (  )  [private]

Here is the call graph for this function:

bool TFWidget::compareTransferPoints ( TFPoint  first,
TFPoint  second 
) [private]

void TFWidget::createTransferPoint (  )  [private]

Here is the call graph for this function:

void TFWidget::createTransferTexture (  )  [private]

Here is the call graph for this function:

void TFWidget::delete1dTexture (  )  [private]

Here is the call graph for this function:

void TFWidget::deleteTransferPoint (  )  [private]

Here is the call graph for this function:

void TFWidget::generateDisplayList (  )  [private]

Here is the call graph for this function:

const int TFWidget::GetNextPowerOfTwo ( const int  iNumber  )  [private]

std::vector< TFPoint > * TFWidget::getTransferPoints (  ) 

void TFWidget::initializeGL (  )  [protected]

Here is the call graph for this function:

void TFWidget::makeMeCurrent (  )  [private]

float TFWidget::mapX ( float  x  )  [private]

float TFWidget::mapY ( float  y  )  [private]

QSize TFWidget::minimumSizeHint (  )  const

void TFWidget::mouseMoveEvent ( QMouseEvent *  event  )  [protected]

Here is the call graph for this function:

void TFWidget::mousePressEvent ( QMouseEvent *  event  )  [protected]

Here is the call graph for this function:

void TFWidget::mouseReleaseEvent ( QMouseEvent *  event  )  [protected]

Here is the call graph for this function:

void TFWidget::paintGL (  )  [protected]

Here is the call graph for this function:

void TFWidget::resizeGL ( int  width,
int  height 
) [protected]

Here is the call graph for this function:

void TFWidget::setHistoScale ( int  scale  ) 

Here is the call graph for this function:

void TFWidget::setKeyEvent ( QKeyEvent *  event  ) 

bool TFWidget::setTransferPoints ( std::vector< TFPoint > *  tfpoints  ) 

Here is the call graph for this function:

void TFWidget::setVolume ( Volume vol  ) 

Here is the call graph for this function:

QSize TFWidget::sizeHint (  )  const

void TFWidget::sortTransferPoints (  )  [private]

void TFWidget::unsetKeyEvent ( QKeyEvent *  event  ) 

void TFWidget::update1dTexture (  )  [private]

Here is the call graph for this function:

void TFWidget::updateAll (  )  [private]

Here is the call graph for this function:

void TFWidget::updateListeners (  ) 


Member Data Documentation

std::vector<GLWidget*> TFWidget::GLlisteners [private]

std::vector<int>* TFWidget::histogram [private]

unsigned int TFWidget::histogramDisplayList [private]

int TFWidget::histScale [private]

bool TFWidget::keyPressed [private]

float TFWidget::maxDensity [private]

bool TFWidget::mouseDrag [private]

QPoint TFWidget::mousePos [private]

float TFWidget::pointSize [private]

std::vector<RCWidget*> TFWidget::RClisteners [private]

float TFWidget::texData[MAX_DENSITY_VALUES *4] [private]

GLuint TFWidget::texture1d [private]

int TFWidget::textureHeight [private]

std::vector<TFPoint> TFWidget::transferPoints [private]

int TFWidget::widgetHeight [private]

int TFWidget::widgetWidth [private]

float TFWidget::xRatio [private]

float TFWidget::yRatio [private]


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

Generated on Wed Dec 10 13:35:15 2008 for VisLu by  doxygen 1.5.7.1