#include <glwidget.h>
Public Slots | |
void | setSlicing (bool checked) |
[0] | |
void | setXAxis () |
void | setYAxis () |
void | setZAxis () |
void | setSlice (int slice) |
void | setMinDensity (int value) |
void | setMaxDensity (int value) |
void | setCompositeMode () |
void | setAverageMode () |
void | setMIPMode () |
Signals | |
void | xRotationChanged (int angle) |
void | yRotationChanged (int angle) |
void | zRotationChanged (int angle) |
Public Member Functions | |
GLWidget (QWidget *parent=0) | |
[0] | |
~GLWidget () | |
[0] | |
QSize | minimumSizeHint () const |
[1] | |
QSize | sizeHint () const |
[2] | |
Volume * | loadVolumne (std::string file) |
int | getSlicesCount () |
void | generateColorTexture (std::vector< HistogramPoint > *points, int width, int height) |
void | createShaderForSlices () |
void | saveImage () |
Protected Member Functions | |
void | initializeGL () |
[1] | |
void | paintGL () |
[6] | |
void | resizeGL (int width, int height) |
[7] | |
void | mousePressEvent (QMouseEvent *event) |
[8] | |
void | mouseMoveEvent (QMouseEvent *event) |
[9] | |
Private Member Functions | |
GLuint | makeObject () |
[2] | |
void | quad (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2, GLdouble x3, GLdouble y3, GLdouble x4, GLdouble y4) |
void | extrude (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) |
void | normalizeAngle (int *angle) |
void | refreshSlices () |
char * | textFileRead (char *fn) |
int | GetNextPowerOfTwo (const int iNumber) |
void | refreshRaycast () |
void | drawBoundingBox () |
Private Attributes | |
int | m_active_axis |
bool | m_slicing_active |
bool | m_colorMapLoaded |
std::vector< Volume::Voxel > | m_toDraw |
GLuint | m_slicingTexture [2] |
float | m_slice_index |
Volume | m_Volume |
int | m_iWidth |
int | m_iHeight |
std::vector< Color > | m_transferColors |
GLuint | m_fSlices |
GLuint | m_vSlices |
GLuint | m_pSlices |
GLuint | m_fFBO |
GLuint | m_vFBO |
GLuint | m_pFBO |
GLuint | m_fraycast |
GLuint | m_vraycast |
GLuint | m_praycast |
GLuint | m_front_back_Texture [2] |
GLuint | m_front_back_FBO [2] |
int | m_min_density |
int | m_max_density |
int | m_xRot |
int | m_yRot |
QPoint | m_lastPos |
int | m_mode |
GLuint | object |
int | zRot |
QColor | trolltechGreen |
QColor | trolltechPurple |
GLWidget::GLWidget | ( | QWidget * | parent = 0 |
) |
[0]
References m_active_axis, m_colorMapLoaded, m_fSlices, m_iHeight, m_iWidth, m_max_density, m_min_density, m_mode, m_pSlices, m_slice_index, m_slicing_active, m_transferColors, m_xRot, m_yRot, trolltechGreen, trolltechPurple, and zRot.
GLWidget::~GLWidget | ( | ) |
[0]
[1]
void GLWidget::createShaderForSlices | ( | ) |
References m_fFBO, m_fraycast, m_fSlices, m_pFBO, m_praycast, m_pSlices, m_vFBO, m_vraycast, m_vSlices, and textFileRead().
Referenced by initializeGL().
void GLWidget::drawBoundingBox | ( | ) | [private] |
Referenced by paintGL().
void GLWidget::extrude | ( | GLdouble | x1, | |
GLdouble | y1, | |||
GLdouble | x2, | |||
GLdouble | y2 | |||
) | [private] |
void GLWidget::generateColorTexture | ( | std::vector< HistogramPoint > * | points, | |
int | width, | |||
int | height | |||
) |
References HistogramPoint::color, m_colorMapLoaded, m_max_density, m_min_density, m_slicingTexture, m_transferColors, and HistogramPoint::point.
Referenced by Histogram::mouseDoubleClickEvent(), and Histogram::mousePressEvent().
int GLWidget::GetNextPowerOfTwo | ( | const int | iNumber | ) | [private] |
Referenced by refreshSlices().
int GLWidget::getSlicesCount | ( | ) |
References Volume::GetDepth(), Volume::GetHeight(), Volume::GetWidth(), m_active_axis, and m_Volume.
Referenced by setSlice(), MainWindow::setXAxis(), MainWindow::setYAxis(), and MainWindow::setZAxis().
void GLWidget::initializeGL | ( | ) | [protected] |
[1]
[4]
[2]
[6]
References createShaderForSlices(), m_front_back_FBO, m_front_back_Texture, m_iHeight, m_iWidth, and m_slicingTexture.
Volume * GLWidget::loadVolumne | ( | std::string | file | ) |
References Volume::load(), m_Volume, refreshRaycast(), and refreshSlices().
Referenced by MainWindow::loadFile().
GLuint GLWidget::makeObject | ( | ) | [private] |
[2]
[10]
[3]
QSize GLWidget::minimumSizeHint | ( | ) | const |
[1]
[2]
void GLWidget::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
void GLWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
void GLWidget::normalizeAngle | ( | int * | angle | ) | [private] |
void GLWidget::paintGL | ( | ) | [protected] |
[6]
[7]
*glDisable(GL_TEXTURE_3D);
References drawBoundingBox(), Volume::GetDepth(), Volume::GetHeight(), Volume::GetWidth(), m_active_axis, m_colorMapLoaded, m_front_back_FBO, m_front_back_Texture, m_mode, m_pFBO, m_praycast, m_pSlices, m_slice_index, m_slicing_active, m_slicingTexture, m_Volume, m_xRot, m_yRot, and Timer::start().
void GLWidget::quad | ( | GLdouble | x1, | |
GLdouble | y1, | |||
GLdouble | x2, | |||
GLdouble | y2, | |||
GLdouble | x3, | |||
GLdouble | y3, | |||
GLdouble | x4, | |||
GLdouble | y4 | |||
) | [private] |
void GLWidget::refreshRaycast | ( | ) | [private] |
void GLWidget::refreshSlices | ( | ) | [private] |
References Volume::Get(), Volume::GetDepth(), Volume::GetHeight(), GetNextPowerOfTwo(), Volume::GetWidth(), m_slicingTexture, m_toDraw, and m_Volume.
Referenced by loadVolumne().
void GLWidget::resizeGL | ( | int | width, | |
int | height | |||
) | [protected] |
void GLWidget::saveImage | ( | ) |
Referenced by MainWindow::keyPressEvent().
void GLWidget::setAverageMode | ( | ) | [inline, slot] |
References m_mode.
void GLWidget::setCompositeMode | ( | ) | [inline, slot] |
References m_mode.
void GLWidget::setMaxDensity | ( | int | value | ) | [inline, slot] |
void GLWidget::setMinDensity | ( | int | value | ) | [inline, slot] |
void GLWidget::setMIPMode | ( | ) | [inline, slot] |
References m_mode.
void GLWidget::setSlice | ( | int | slice | ) | [slot] |
References getSlicesCount(), and m_slice_index.
void GLWidget::setSlicing | ( | bool | checked | ) | [slot] |
void GLWidget::setXAxis | ( | ) | [slot] |
void GLWidget::setYAxis | ( | ) | [slot] |
void GLWidget::setZAxis | ( | ) | [slot] |
QSize GLWidget::sizeHint | ( | ) | const |
[2]
[3] [3] //! [4]
char * GLWidget::textFileRead | ( | char * | fn | ) | [private] |
Referenced by createShaderForSlices().
void GLWidget::xRotationChanged | ( | int | angle | ) | [signal] |
void GLWidget::yRotationChanged | ( | int | angle | ) | [signal] |
void GLWidget::zRotationChanged | ( | int | angle | ) | [signal] |
int GLWidget::m_active_axis [private] |
Referenced by getSlicesCount(), GLWidget(), paintGL(), setXAxis(), setYAxis(), and setZAxis().
bool GLWidget::m_colorMapLoaded [private] |
Referenced by generateColorTexture(), GLWidget(), and paintGL().
GLuint GLWidget::m_fFBO [private] |
Referenced by createShaderForSlices().
GLuint GLWidget::m_fraycast [private] |
Referenced by createShaderForSlices().
GLuint GLWidget::m_front_back_FBO[2] [private] |
Referenced by initializeGL(), paintGL(), and refreshRaycast().
GLuint GLWidget::m_front_back_Texture[2] [private] |
Referenced by initializeGL(), paintGL(), and refreshRaycast().
GLuint GLWidget::m_fSlices [private] |
Referenced by createShaderForSlices(), and GLWidget().
int GLWidget::m_iHeight [private] |
Referenced by GLWidget(), initializeGL(), and resizeGL().
int GLWidget::m_iWidth [private] |
Referenced by GLWidget(), initializeGL(), and resizeGL().
QPoint GLWidget::m_lastPos [private] |
Referenced by mouseMoveEvent(), and mousePressEvent().
int GLWidget::m_max_density [private] |
Referenced by generateColorTexture(), GLWidget(), and setMaxDensity().
int GLWidget::m_min_density [private] |
Referenced by generateColorTexture(), GLWidget(), and setMinDensity().
int GLWidget::m_mode [private] |
Referenced by GLWidget(), paintGL(), setAverageMode(), setCompositeMode(), and setMIPMode().
GLuint GLWidget::m_pFBO [private] |
Referenced by createShaderForSlices(), and paintGL().
GLuint GLWidget::m_praycast [private] |
Referenced by createShaderForSlices(), and paintGL().
GLuint GLWidget::m_pSlices [private] |
Referenced by createShaderForSlices(), GLWidget(), and paintGL().
float GLWidget::m_slice_index [private] |
Referenced by GLWidget(), paintGL(), and setSlice().
bool GLWidget::m_slicing_active [private] |
Referenced by GLWidget(), paintGL(), and setSlicing().
GLuint GLWidget::m_slicingTexture[2] [private] |
Referenced by generateColorTexture(), initializeGL(), paintGL(), and refreshSlices().
std::vector<Volume::Voxel> GLWidget::m_toDraw [private] |
Referenced by refreshSlices().
std::vector<Color> GLWidget::m_transferColors [private] |
Referenced by generateColorTexture(), and GLWidget().
GLuint GLWidget::m_vFBO [private] |
Referenced by createShaderForSlices().
Volume GLWidget::m_Volume [private] |
Referenced by getSlicesCount(), loadVolumne(), paintGL(), and refreshSlices().
GLuint GLWidget::m_vraycast [private] |
Referenced by createShaderForSlices().
GLuint GLWidget::m_vSlices [private] |
Referenced by createShaderForSlices().
int GLWidget::m_xRot [private] |
Referenced by GLWidget(), mouseMoveEvent(), and paintGL().
int GLWidget::m_yRot [private] |
Referenced by GLWidget(), mouseMoveEvent(), and paintGL().
GLuint GLWidget::object [private] |
QColor GLWidget::trolltechGreen [private] |
Referenced by GLWidget().
QColor GLWidget::trolltechPurple [private] |
Referenced by GLWidget().
int GLWidget::zRot [private] |
Referenced by GLWidget().