#include <TFWidget.h>
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< TFPoint > | transferPoints |
float | pointSize |
int | currentSelectedPoint |
std::vector< int > * | histogram |
unsigned int | histogramDisplayList |
int | histScale |
float | maxDensity |
Volume * | volume |
GLuint | texture1d |
float | texData [MAX_DENSITY_VALUES *4] |
int | textureHeight |
float | xRatio |
float | yRatio |
std::vector< GLWidget * > | GLlisteners |
std::vector< RCWidget * > | RClisteners |
TFWidget::TFWidget | ( | QWidget * | parent = 0 , |
|
int | width = 0 , |
|||
int | height = 0 | |||
) |
TFWidget::~TFWidget | ( | ) |
void TFWidget::addListener | ( | RCWidget * | newListener | ) |
void TFWidget::addListener | ( | GLWidget * | newListener | ) |
void TFWidget::changeTransferPoint | ( | ) | [private] |
void TFWidget::createTransferPoint | ( | ) | [private] |
void TFWidget::createTransferTexture | ( | ) | [private] |
void TFWidget::delete1dTexture | ( | ) | [private] |
void TFWidget::deleteTransferPoint | ( | ) | [private] |
void TFWidget::generateDisplayList | ( | ) | [private] |
const int TFWidget::GetNextPowerOfTwo | ( | const int | iNumber | ) | [private] |
std::vector< TFPoint > * TFWidget::getTransferPoints | ( | ) |
void TFWidget::initializeGL | ( | ) | [protected] |
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] |
void TFWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
void TFWidget::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected] |
void TFWidget::paintGL | ( | ) | [protected] |
void TFWidget::resizeGL | ( | int | width, | |
int | height | |||
) | [protected] |
void TFWidget::setHistoScale | ( | int | scale | ) |
void TFWidget::setKeyEvent | ( | QKeyEvent * | event | ) |
bool TFWidget::setTransferPoints | ( | std::vector< TFPoint > * | tfpoints | ) |
void TFWidget::setVolume | ( | Volume * | vol | ) |
QSize TFWidget::sizeHint | ( | ) | const |
void TFWidget::sortTransferPoints | ( | ) | [private] |
void TFWidget::unsetKeyEvent | ( | QKeyEvent * | event | ) |
void TFWidget::update1dTexture | ( | ) | [private] |
void TFWidget::updateAll | ( | ) | [private] |
void TFWidget::updateListeners | ( | ) |
int TFWidget::currentSelectedPoint [private] |
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] |
Volume* TFWidget::volume [private] |
int TFWidget::widgetHeight [private] |
int TFWidget::widgetWidth [private] |
float TFWidget::xRatio [private] |
float TFWidget::yRatio [private] |