#include <QMain.h>
Definition at line 13 of file QMain.h.
QMain::QMain | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | flags = 0 | |||
) |
constructor with given QWidget Pointer and additional Flags
parent | Pointer to Parent Widget. | |
flags | additional Flags for window creation |
Definition at line 5 of file QMain.cpp.
References Ui_QMain::actionClose, Ui_QMain::actionFlip_X, Ui_QMain::actionFlip_Y, Ui_QMain::actionFlip_Z, Ui_QMain::actionLoad, Ui_QMain::actionNo_TF, Ui_QMain::actionOpen, Ui_QMain::actionSave, Ui_QMain::actionSave_Image, Ui_QMain::actionSave_Volume, Ui_QMain::actionTF_1D, Ui_QMain::actionTF_2D, Ui_QMain::backgroundSelect, Ui_QMain::cb_apply_tf_to_slices, Ui_QMain::cb_pcikdensity, clicked, Ui_QMain::clipcb_xneg, clipcb_xneg_clicked(), Ui_QMain::clipcb_xpos, clipcb_xpos_clicked(), Ui_QMain::clipcb_yneg, clipcb_yneg_clicked(), Ui_QMain::clipcb_ypos, clipcb_ypos_clicked(), Ui_QMain::clipcb_zneg, clipcb_zneg_clicked(), Ui_QMain::clipcb_zpos, clipcb_zpos_clicked(), Ui_QMain::clipslider_xneg, Ui_QMain::clipslider_xpos, Ui_QMain::clipslider_yneg, Ui_QMain::clipslider_ypos, Ui_QMain::clipslider_zneg, Ui_QMain::clipslider_zpos, clipxneg_valuechanged(), clipxpos_valuechanged(), clipyneg_valuechanged(), clipypos_valuechanged(), clipzneg_valuechanged(), clipzpos_valuechanged(), Ui_QMain::contours_cb, Ui_QMain::contours_cb_2, flipX(), flipY(), flipZ(), QTFCanvas::getTransferFunction2DPtr(), QTFCanvas::getTransferFunctionPtr(), Ui_QMain::lightdir_cb, lightmode_changed(), lightModification(), Ui_QMain::lighttf_combo, load_data_file(), load_tf_file(), m_BackgroundColor, Ui_QMain::mode_tab, QTFCanvas::modeChanged(), Ui_QMain::modes_combo, modetab_switched(), pixoffsetx_rcanvas, pixoffsety_rcanvas, pixposx_rcanvas, pixposy_rcanvas, Ui_QMain::proj_combo, projectionMode(), pTimer, pTimer_redraw, redraw(), Ui_QMain::renderer_canvas, rendermode_changed(), save_data_file(), save_image(), save_tf_file(), QVolRendCanvas::setBackColorPtr(), setContourMode(), QTFCanvas::setHScroll(), QTFCanvas::setModePtr(), setShadowMode(), QVolRendCanvas::setTransferFunction2DPtr(), QVolRendCanvas::setTransferFunctionPtr(), Ui_QMain::setupUi(), QBackgroundCanvas::setVolBackColorPtr(), QTFCanvas::setVScroll(), VVector::setX(), VVector::setY(), VVector::setZ(), Ui_QMain::sliceslider_corronal, Ui_QMain::sliceslider_saggital, Ui_QMain::sliceslider_transversal, slicesslider_corronal_valuechanged(), slicesslider_saggital_valuechanged(), slicesslider_transversal_valuechanged(), Ui_QMain::tf_canvas, tf_horizscroll_valuechanged(), tf_menu(), tf_menu_1d(), tf_menu_2d(), tf_menu_no(), tf_vertscroll_valuechanged(), Ui_QMain::tfhorizscroll, Ui_QMain::tfmode, Ui_QMain::tfvertscroll, Ui_QMain::thresholdH_label, Ui_QMain::thresholdH_name, Ui_QMain::thresholdH_slider, Ui_QMain::thresholdL_label, Ui_QMain::thresholdL_name, Ui_QMain::thresholdL_slider, thresholdvalH_valuechanged(), thresholdvalL_valuechanged(), voldimx, voldimy, voldimz, w_sizex, w_sizey, and watch().
QMain::~QMain | ( | ) | [virtual] |
void QMain::watch | ( | ) | [slot] |
watches for any events
Definition at line 173 of file QMain.cpp.
References QTFCanvas::checkForLongClick(), pixoffsetx_rcanvas, pixoffsety_rcanvas, pixposx_rcanvas, pixposy_rcanvas, Ui_QMain::renderer_canvas, QVolRendCanvas::resizeGL(), Ui_QMain::tf_canvas, w_sizex, and w_sizey.
Referenced by QMain().
void QMain::redraw | ( | ) | [slot] |
handles redrawing of the whole window
Definition at line 140 of file QMain.cpp.
References Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::tf_menu | ( | int | index | ) | [slot] |
callback function called when an item in the Transferfunction menu is clicked.
index | index of menu point |
Definition at line 427 of file QMain.cpp.
References QTFCanvas::modeChanged(), Ui_QMain::renderer_canvas, QVolRendCanvas::setApplyTFInSV(), Ui_QMain::tf, Ui_QMain::tf_canvas, and Ui_QMain::tfmode.
Referenced by load_data_file(), load_tf_file(), and QMain().
void QMain::tf_menu_no | ( | ) | [slot] |
method to disable the TF via the menu
Definition at line 701 of file QMain.cpp.
References QTFCanvas::modeChanged(), Ui_QMain::renderer_canvas, QVolRendCanvas::setApplyTFInSV(), Ui_QMain::tf, and Ui_QMain::tf_canvas.
Referenced by load_data_file(), and QMain().
void QMain::tf_menu_1d | ( | ) | [slot] |
method to enable 1d tf via the menu
Definition at line 712 of file QMain.cpp.
References QTFCanvas::modeChanged(), Ui_QMain::renderer_canvas, QVolRendCanvas::setApplyTFInSV(), Ui_QMain::tf, and Ui_QMain::tf_canvas.
Referenced by load_tf_file(), and QMain().
void QMain::tf_menu_2d | ( | ) | [slot] |
method to enable 2d tf via the menu
Definition at line 723 of file QMain.cpp.
References QTFCanvas::modeChanged(), Ui_QMain::renderer_canvas, QVolRendCanvas::setApplyTFInSV(), Ui_QMain::tf, and Ui_QMain::tf_canvas.
Referenced by load_tf_file(), and QMain().
void QMain::modetab_switched | ( | int | id | ) | [slot] |
method that handles the switching of the modetabs (sliceview/volumeview)
id | id of tab chosen |
Definition at line 475 of file QMain.cpp.
References QVolRendCanvas::activate_sliceview(), QVolRendCanvas::activate_volview(), Ui_QMain::renderer_canvas, SLICE_VIEW_TAB, and VOL_VIEW_TAB.
Referenced by QMain().
void QMain::slicesslider_corronal_valuechanged | ( | int | val | ) | [slot] |
method handling the changes in the sliceslider
val | current value of slider |
Definition at line 494 of file QMain.cpp.
References Ui_QMain::cor_slicenum, Ui_QMain::renderer_canvas, QVolRendCanvas::setActiveCorronalSlice(), and voldimy.
Referenced by QMain().
void QMain::slicesslider_saggital_valuechanged | ( | int | val | ) | [slot] |
method handling the changes in the sliceslider
val | current value of slider |
Definition at line 505 of file QMain.cpp.
References Ui_QMain::renderer_canvas, Ui_QMain::sag_slicenum, QVolRendCanvas::setActiveSaggitalSlice(), and voldimx.
Referenced by QMain().
void QMain::slicesslider_transversal_valuechanged | ( | int | val | ) | [slot] |
method handling the changes in the sliceslider
val | current value of slider |
Definition at line 513 of file QMain.cpp.
References Ui_QMain::renderer_canvas, QVolRendCanvas::setActiveTransversalSlice(), Ui_QMain::tran_slicenum, and voldimz.
Referenced by QMain().
void QMain::thresholdvalL_valuechanged | ( | int | val | ) | [slot] |
method handling the changes in the threshold slider
val | current value of slider |
Definition at line 200 of file QMain.cpp.
References QVolRendCanvas::m_VolumeRenderer, Ui_QMain::renderer_canvas, VVolumeRenderer::setThresholdL(), Ui_QMain::thresholdH_slider, Ui_QMain::thresholdL_label, and thresholdvalH_valuechanged().
Referenced by QMain(), and thresholdvalH_valuechanged().
void QMain::thresholdvalH_valuechanged | ( | int | val | ) | [slot] |
method handling the changes in the threshold slider
val | current value of slider |
Definition at line 217 of file QMain.cpp.
References QVolRendCanvas::m_VolumeRenderer, Ui_QMain::renderer_canvas, VVolumeRenderer::setThresholdH(), Ui_QMain::thresholdH_label, Ui_QMain::thresholdL_slider, and thresholdvalL_valuechanged().
Referenced by QMain(), and thresholdvalL_valuechanged().
void QMain::rendermode_changed | ( | int | mod | ) | [slot] |
handles the changes in the rendermode drop down
mod | chosen rendermode |
Definition at line 409 of file QMain.cpp.
References Ui_QMain::renderer_canvas, QVolRendCanvas::rendermode_changed(), Ui_QMain::thresholdH_label, Ui_QMain::thresholdH_name, Ui_QMain::thresholdH_slider, Ui_QMain::thresholdL_label, Ui_QMain::thresholdL_name, and Ui_QMain::thresholdL_slider.
Referenced by QMain().
void QMain::lightmode_changed | ( | int | mod | ) | [slot] |
handles the changes in the lightmode drop down
mod | chosen lightmode |
Definition at line 422 of file QMain.cpp.
References QVolRendCanvas::lightmode_changed(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::load_data_file | ( | ) | [slot] |
method called when the file loading option in the menu is chosen
Definition at line 528 of file QMain.cpp.
References apply_tf_in_slicieviewer(), Ui_QMain::cb_apply_tf_to_slices, Ui_QMain::cor_slicenum, QVolRendCanvas::getData2DHistogram(), QVolRendCanvas::getDataHistogram(), QVolRendCanvas::load_data(), Ui_QMain::renderer_canvas, Ui_QMain::sag_slicenum, QTFCanvas::setHistogram(), Ui_QMain::sliceslider_corronal, Ui_QMain::sliceslider_saggital, Ui_QMain::sliceslider_transversal, Ui_QMain::tf_canvas, tf_menu(), tf_menu_no(), Ui_QMain::tfmode, Ui_QMain::tran_slicenum, voldimx, voldimy, and voldimz.
Referenced by QMain().
void QMain::save_data_file | ( | ) | [slot] |
method called when the file saving option in the menu is chosen
Definition at line 603 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::save_data().
Referenced by QMain().
void QMain::apply_tf_in_slicieviewer | ( | bool | val | ) | [slot] |
method called when a tf should be applied in the sliceviewer
val | boolean containing if it should be applied |
Definition at line 522 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setApplyTFInSV().
Referenced by load_data_file().
void QMain::load_tf_file | ( | ) | [slot] |
method called for loading the transferfunction
Definition at line 632 of file QMain.cpp.
References QTFCanvas::defaultSize(), QTFCanvas::loadTf(), Ui_QMain::renderer_canvas, Ui_QMain::tf_canvas, tf_menu(), tf_menu_1d(), tf_menu_2d(), and Ui_QMain::tfmode.
Referenced by QMain().
void QMain::save_tf_file | ( | ) | [slot] |
method called for saving the transferfunction
Definition at line 666 of file QMain.cpp.
References QTFCanvas::saveTf(), and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::save_image | ( | ) | [slot] |
method called for saving the current displayed image
Definition at line 681 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::saveImage().
Referenced by QMain().
void QMain::clipxneg_valuechanged | ( | int | val | ) | [slot] |
method called for loading the transferfunction
val | value of slider |
Definition at line 233 of file QMain.cpp.
References Ui_QMain::clipcb_xneg, Ui_QMain::clipcb_xpos, Ui_QMain::clipslider_xpos, Ui_QMain::clipxneg_val, Ui_QMain::clipxpos_val, LEFT_RIGHT, Ui_QMain::renderer_canvas, RIGHT_LEFT, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipxpos_valuechanged | ( | int | val | ) | [slot] |
method called for loading the transferfunction
val | value of slider |
Definition at line 251 of file QMain.cpp.
References Ui_QMain::clipcb_xneg, Ui_QMain::clipcb_xpos, Ui_QMain::clipslider_xneg, Ui_QMain::clipxneg_val, Ui_QMain::clipxpos_val, LEFT_RIGHT, Ui_QMain::renderer_canvas, RIGHT_LEFT, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipyneg_valuechanged | ( | int | val | ) | [slot] |
method called for loading the transferfunction
val | value of slider |
Definition at line 269 of file QMain.cpp.
References BOTTOM_TOP, Ui_QMain::clipcb_yneg, Ui_QMain::clipcb_ypos, Ui_QMain::clipslider_ypos, Ui_QMain::clipyneg_val, Ui_QMain::clipypos_val, Ui_QMain::renderer_canvas, QVolRendCanvas::setClipPlane(), and TOP_BOTTOM.
Referenced by QMain().
void QMain::clipypos_valuechanged | ( | int | val | ) | [slot] |
method called for loading the transferfunction
val | value of slider |
Definition at line 286 of file QMain.cpp.
References BOTTOM_TOP, Ui_QMain::clipcb_yneg, Ui_QMain::clipcb_ypos, Ui_QMain::clipslider_yneg, Ui_QMain::clipyneg_val, Ui_QMain::clipypos_val, Ui_QMain::renderer_canvas, QVolRendCanvas::setClipPlane(), and TOP_BOTTOM.
Referenced by QMain().
void QMain::clipzneg_valuechanged | ( | int | val | ) | [slot] |
method called for loading the transferfunction
val | value of slider |
Definition at line 303 of file QMain.cpp.
References BACK_FRONT, Ui_QMain::clipcb_zneg, Ui_QMain::clipcb_zpos, Ui_QMain::clipslider_zpos, Ui_QMain::clipzneg_val, Ui_QMain::clipzpos_val, FRONT_BACK, Ui_QMain::renderer_canvas, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipzpos_valuechanged | ( | int | val | ) | [slot] |
method called for loading the transferfunction
val | value of slider |
Definition at line 320 of file QMain.cpp.
References BACK_FRONT, Ui_QMain::clipcb_zneg, Ui_QMain::clipcb_zpos, Ui_QMain::clipslider_zneg, Ui_QMain::clipzneg_val, Ui_QMain::clipzpos_val, FRONT_BACK, Ui_QMain::renderer_canvas, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipcb_xneg_clicked | ( | bool | val | ) | [slot] |
method for capturing the checkbox state for clipping
val | bool if it is clicked |
Definition at line 337 of file QMain.cpp.
References Ui_QMain::clipslider_xneg, LEFT_RIGHT, Ui_QMain::renderer_canvas, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipcb_xpos_clicked | ( | bool | val | ) | [slot] |
method for capturing the checkbox state for clipping
val | bool if it is clicked |
Definition at line 349 of file QMain.cpp.
References Ui_QMain::clipslider_xpos, Ui_QMain::renderer_canvas, RIGHT_LEFT, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipcb_yneg_clicked | ( | bool | val | ) | [slot] |
method for capturing the checkbox state for clipping
val | bool if it is clicked |
Definition at line 361 of file QMain.cpp.
References BOTTOM_TOP, Ui_QMain::clipslider_yneg, Ui_QMain::renderer_canvas, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipcb_ypos_clicked | ( | bool | val | ) | [slot] |
method for capturing the checkbox state for clipping
val | bool if it is clicked |
Definition at line 373 of file QMain.cpp.
References Ui_QMain::clipslider_ypos, Ui_QMain::renderer_canvas, QVolRendCanvas::setClipPlane(), and TOP_BOTTOM.
Referenced by QMain().
void QMain::clipcb_zneg_clicked | ( | bool | val | ) | [slot] |
method for capturing the checkbox state for clipping
val | bool if it is clicked |
Definition at line 385 of file QMain.cpp.
References BACK_FRONT, Ui_QMain::clipslider_zpos, Ui_QMain::renderer_canvas, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::clipcb_zpos_clicked | ( | bool | val | ) | [slot] |
method for capturing the checkbox state for clipping
val | bool if it is clicked |
Definition at line 397 of file QMain.cpp.
References Ui_QMain::clipslider_zneg, FRONT_BACK, Ui_QMain::renderer_canvas, and QVolRendCanvas::setClipPlane().
Referenced by QMain().
void QMain::tf_vertscroll_valuechanged | ( | int | val | ) | [slot] |
method for capturing scrolling of the tf window
val | value of slider |
Definition at line 145 of file QMain.cpp.
References Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::tf_horizscroll_valuechanged | ( | int | val | ) | [slot] |
method for capturing scrolling of the tf window
val | value of slider |
Definition at line 158 of file QMain.cpp.
References Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::lightModification | ( | bool | val | ) | [slot] |
method caputuring the checkbox en/disabling the light change mode
val | value of cb |
Definition at line 762 of file QMain.cpp.
References QVolRendCanvas::modifyLight(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::setContourMode | ( | bool | val | ) | [slot] |
method caputuring the checkbox en/disabling the contour mode
val | value of cb |
Definition at line 767 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setContourMode().
Referenced by QMain().
void QMain::setShadowMode | ( | bool | val | ) | [slot] |
method caputuring the checkbox en/disabling the shadow mode
val | value of cb |
Definition at line 772 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setShadowMode().
Referenced by QMain().
void QMain::projectionMode | ( | int | id | ) | [slot] |
method capturing the state of the projection mode for volumes
id | id of mode |
Definition at line 735 of file QMain.cpp.
References PARALLELPROJECTION, PERSPECTIVEPROJECTION, Ui_QMain::renderer_canvas, and QVolRendCanvas::setOrthoProjection().
Referenced by QMain().
void QMain::flipX | ( | ) | [slot] |
method called when flipx is chosen
Definition at line 747 of file QMain.cpp.
References QVolRendCanvas::flipX(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::flipY | ( | ) | [slot] |
method called when flipy is chosen
Definition at line 752 of file QMain.cpp.
References QVolRendCanvas::flipY(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::flipZ | ( | ) | [slot] |
method called when flipz is chosen
Definition at line 757 of file QMain.cpp.
References QVolRendCanvas::flipZ(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
QTimer* QMain::pTimer [private] |
QTimer* QMain::pTimer_redraw [private] |
VVector QMain::m_BackgroundColor [private] |
int QMain::w_sizex [private] |
int QMain::w_sizey [private] |
int QMain::pixoffsetx_rcanvas [private] |
int QMain::pixoffsety_rcanvas [private] |
int QMain::pixposx_rcanvas [private] |
int QMain::pixposy_rcanvas [private] |
const int QMain::SLICE_VIEW_TAB [private] |
Constants that is set in certain mode.
Definition at line 286 of file QMain.h.
Referenced by modetab_switched().
const int QMain::VOL_VIEW_TAB [private] |
Constants that is set in certain mode.
Definition at line 287 of file QMain.h.
Referenced by modetab_switched().
const int QMain::PARALLELPROJECTION [private] |
Constants that is set in certain mode.
Definition at line 289 of file QMain.h.
Referenced by projectionMode().
const int QMain::PERSPECTIVEPROJECTION [private] |
Constants that is set in certain mode.
Definition at line 291 of file QMain.h.
Referenced by projectionMode().
unsigned short QMain::voldimx [private] |
dimension of the Volume.
Definition at line 293 of file QMain.h.
Referenced by load_data_file(), QMain(), and slicesslider_saggital_valuechanged().
unsigned short QMain::voldimy [private] |
dimension of the Volume.
Definition at line 294 of file QMain.h.
Referenced by load_data_file(), QMain(), and slicesslider_corronal_valuechanged().
unsigned short QMain::voldimz [private] |
dimension of the Volume.
Definition at line 295 of file QMain.h.
Referenced by load_data_file(), QMain(), and slicesslider_transversal_valuechanged().