#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::actionLoad, Ui_QMain::actionOpen, Ui_QMain::actionOpen_Single_Dat, Ui_QMain::actionSave, Ui_QMain::actionSave_Big_Image, Ui_QMain::actionSave_Image, Ui_QMain::actionSave_Volume, Ui_QMain::actionStreamlineLoad, Ui_QMain::actionStreamlineSave, activate_arrows(), activate_streamlines(), activateLIC(), activateStrGlyphes(), activateTapering(), activeTF, animateLic(), arrowTFactivated, Ui_QMain::button_computecpu, button_computecpu_clicked(), Ui_QMain::checkBox_activatearrows, Ui_QMain::checkBox_activateLIC, Ui_QMain::checkBox_activatestreamlines, Ui_QMain::checkBox_animateLic, Ui_QMain::checkBox_enableIcons, Ui_QMain::checkBox_enableTF_arrows, Ui_QMain::checkBox_enableTF_lic, Ui_QMain::checkBox_enableTF_streamlines, Ui_QMain::checkBox_streamlinesinteractive, Ui_QMain::checkBox_strglyphes, Ui_QMain::checkBox_tapering, clicked, combo_choose_arrow(), Ui_QMain::combo_seedplacing, combo_seedsplacing_switched(), Ui_QMain::comboBox, comboseeds_active, enableArrowTF(), enableIcons(), enableLicTF(), enableStreamLineTF(), QTFCanvas::getTransferFunctionPtr(), interactivate(), licTFactivated, load_data_file(), load_single_file(), load_tf_file(), loadStreamLines(), m_ArrowsColor, m_StreamlinesColor, m_streamlinesinteractive, pixoffsetx_rcanvas, pixoffsety_rcanvas, pixposx_rcanvas, pixposy_rcanvas, pTimer, pTimer_redraw, Ui_QMain::rb_arrowcol_datavalue, rb_arrowcol_tf(), Ui_QMain::rb_arrowscale_norm, rb_arrowscale_norm_clicked(), Ui_QMain::rb_euler, rb_euler_clicked(), Ui_QMain::rb_strcol_datavalue, rb_strcol_tf(), redraw(), Ui_QMain::renderer_canvas, save_big_image(), save_data_file(), save_image(), save_tf_file(), saveStreamLines(), Ui_QMain::select_arrowlinescolor, Ui_QMain::select_streamlinescolor, QVolRendCanvas::setArrowsColorPtr(), QBackgroundCanvas::setArrowsColorPtr(), QTFCanvas::setHScroll(), QVolRendCanvas::setStreamlinesColorPtr(), QBackground_Streamline::setStreamlinesColorPtr(), QVolRendCanvas::setTransferFunctionPtr(), Ui_QMain::setupUi(), QTFCanvas::setVScroll(), VVector::setX(), VVector::setY(), VVector::setZ(), Ui_QMain::slider_arrowalpha, slider_arrowalpha_valuechanged(), Ui_QMain::slider_arrowscale, slider_arrowscale_valuechanged(), Ui_QMain::slider_arrowspacing, slider_arrowspacing_valuechanged(), Ui_QMain::slider_colmapping, slider_colprop_valuechanged(), Ui_QMain::slider_dsep, slider_dsep_valuechanged(), Ui_QMain::slider_dt, slider_dt_valuechanged(), Ui_QMain::slider_dtest, slider_dtest_valuechanged(), Ui_QMain::slider_iconscale, slider_iconscale_valuechanged(), slider_icontail_valuechanged(), Ui_QMain::slider_licalpha, slider_licalpha_valuechanged(), Ui_QMain::slider_licsteps, slider_licsteps_valuechanged(), Ui_QMain::slider_licstepsize, slider_licstepsize_valuechanged(), slider_salpha_valuechanged(), Ui_QMain::slider_steps, slider_steps_valuechanged(), Ui_QMain::slider_stralpha, Ui_QMain::slider_taillength, Ui_QMain::slider_tapering, slider_tapering_scale(), Ui_QMain::slider_timestep, slider_timestep_valuechanged(), streamLineTFactivated, Ui_QMain::tf_canvas, tf_horizscroll_valuechanged(), tf_vertscroll_valuechanged(), Ui_QMain::tfhorizscroll, Ui_QMain::tfvertscroll, w_sizex, w_sizey, and watch().
QMain::~QMain | ( | ) | [virtual] |
void QMain::watch | ( | ) | [slot] |
watches for any events
Definition at line 595 of file QMain.cpp.
References pixoffsetx_rcanvas, pixoffsety_rcanvas, pixposx_rcanvas, pixposy_rcanvas, Ui_QMain::renderer_canvas, QVolRendCanvas::resizeGL(), w_sizex, and w_sizey.
Referenced by QMain().
void QMain::redraw | ( | ) | [slot] |
handles redrawing of the whole window
Definition at line 141 of file QMain.cpp.
References 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 623 of file QMain.cpp.
References Ui_QMain::checkBox_tapering, combo_seedsplacing_switched(), comboseeds_active, QVolRendCanvas::getFlowDataMax(), QVolRendCanvas::getFlowDataMin(), QVolRendCanvas::getNumDataValues(), QVolRendCanvas::getNumTimeSteps(), Ui_QMain::label_maxcolmapping, Ui_QMain::label_maximum, Ui_QMain::label_maxtimesteps, Ui_QMain::label_min, QVolRendCanvas::load_data(), Ui_QMain::renderer_canvas, Ui_QMain::slider_colmapping, slider_colprop_valuechanged(), Ui_QMain::slider_timestep, slider_timestep_valuechanged(), and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::load_single_file | ( | ) | [slot] |
loads a grid file with a single dat file
Definition at line 694 of file QMain.cpp.
References Ui_QMain::checkBox_tapering, combo_seedsplacing_switched(), comboseeds_active, QVolRendCanvas::getFlowDataMax(), QVolRendCanvas::getFlowDataMin(), QVolRendCanvas::getNumDataValues(), QVolRendCanvas::getNumTimeSteps(), Ui_QMain::label_maxcolmapping, Ui_QMain::label_maximum, Ui_QMain::label_maxtimesteps, Ui_QMain::label_min, QVolRendCanvas::load_single_data(), Ui_QMain::renderer_canvas, Ui_QMain::slider_colmapping, slider_colprop_valuechanged(), Ui_QMain::slider_timestep, slider_timestep_valuechanged(), and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::save_data_file | ( | ) | [slot] |
method called when the file saving option in the menu is chosen
Definition at line 774 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::save_data().
Referenced by QMain().
void QMain::load_tf_file | ( | ) | [slot] |
method called for loading the transferfunction
Definition at line 805 of file QMain.cpp.
References QTFCanvas::defaultSize(), QTFCanvas::loadTf(), Ui_QMain::renderer_canvas, and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::save_tf_file | ( | ) | [slot] |
method called for saving the transferfunction
Definition at line 829 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 844 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::saveImage().
Referenced by QMain().
void QMain::save_big_image | ( | ) | [slot] |
method called for saving the current displayed image
Definition at line 864 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::saveBigImage().
Referenced by QMain().
void QMain::loadStreamLines | ( | ) | [slot] |
loads the StreamLines
Definition at line 884 of file QMain.cpp.
References QVolRendCanvas::loadStreamLines(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::saveStreamLines | ( | ) | [slot] |
saves the StreamLines
Definition at line 902 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::saveStreamLines().
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 146 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 161 of file QMain.cpp.
References Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::slider_timestep_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the time step slider
val | value of slider |
Definition at line 176 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), Ui_QMain::label_activetimestep, m_streamlinesinteractive, Ui_QMain::renderer_canvas, and QVolRendCanvas::timestep_changed_event().
Referenced by load_data_file(), load_single_file(), and QMain().
void QMain::slider_colprop_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the color mapping slider
val | value of slider |
Definition at line 193 of file QMain.cpp.
References activeTF, arrowTFactivated, QVolRendCanvas::coloringproperty_changed_event(), QVolRendCanvas::getFlowDataMax(), QVolRendCanvas::getFlowDataMin(), QVolRendCanvas::getLoaded(), QTFCanvas::getTransferFunctionPtr(), Ui_QMain::label_colmapping, Ui_QMain::label_maximum, Ui_QMain::label_min, licTFactivated, Ui_QMain::renderer_canvas, QTFCanvas::setActiveTF(), QVolRendCanvas::setTransferFunctionPtr(), streamLineTFactivated, and Ui_QMain::tf_canvas.
Referenced by enableArrowTF(), enableLicTF(), enableStreamLineTF(), load_data_file(), load_single_file(), and QMain().
void QMain::slider_arrowalpha_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the arrow alpha slider
val | value of slider |
Definition at line 286 of file QMain.cpp.
References QVolRendCanvas::arrowalpha_changed_event(), Ui_QMain::label_arrowalpha, and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_salpha_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the streamlines alpha slider
val | value of slider |
Definition at line 299 of file QMain.cpp.
References Ui_QMain::label_stralpha, Ui_QMain::renderer_canvas, and QVolRendCanvas::salpha_changed_event().
Referenced by QMain().
void QMain::slider_arrowscale_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the arrow scale slider
val | value of slider |
Definition at line 312 of file QMain.cpp.
References QVolRendCanvas::arrowscale_valuechanged(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_iconscale_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the icon scale slider
val | value of slider |
Definition at line 317 of file QMain.cpp.
References QVolRendCanvas::iconscale_valuechanged(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_icontail_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the icon tail's length slider
val | value of slider |
Definition at line 322 of file QMain.cpp.
References QVolRendCanvas::icontail_valuechanged(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_arrowspacing_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the arrow scale slider
val | value of slider |
Definition at line 327 of file QMain.cpp.
References QVolRendCanvas::arrowspacing_valuechanged(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_dsep_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of spacing of streamlines seedpoints slider
val | value of slider |
Definition at line 332 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), QVolRendCanvas::dsep_valuechanged(), Ui_QMain::label_valdsep, m_streamlinesinteractive, and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_dtest_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of spacing od streamlines slider
val | value of slider |
Definition at line 345 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), QVolRendCanvas::dtest_valuechanged(), Ui_QMain::label_valdtest, m_streamlinesinteractive, and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_steps_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the maximal number of steps slider
val | value of slider |
Definition at line 359 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), Ui_QMain::label_valsteps, m_streamlinesinteractive, Ui_QMain::renderer_canvas, and QVolRendCanvas::steps_valuechanged().
Referenced by QMain().
void QMain::slider_dt_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the time difference (dt) slider
val | value of slider |
Definition at line 373 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), QVolRendCanvas::dt_valuechanged(), Ui_QMain::label_valdt, m_streamlinesinteractive, and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_licalpha_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the licalpha slider
val | value of slider |
Definition at line 387 of file QMain.cpp.
References Ui_QMain::label_licalpha, QVolRendCanvas::licalpha_changed_event(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_licsteps_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the licsteps slider
val | value of slider |
Definition at line 400 of file QMain.cpp.
References Ui_QMain::label_valdt_2, QVolRendCanvas::licsteps_changed_event(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::slider_licstepsize_valuechanged | ( | int | val | ) | [slot] |
method for capturing the event of the licstepsize slider
val | value of slider |
Definition at line 410 of file QMain.cpp.
References Ui_QMain::label_valsteps_2, QVolRendCanvas::licstepsize_changed_event(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::rb_arrowscale_norm_clicked | ( | bool | val | ) | [slot] |
method for capturing the event of the arrowscale radio button
val | value of radio button |
Definition at line 420 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setArrowScaleModus().
Referenced by QMain().
void QMain::rb_euler_clicked | ( | bool | val | ) | [slot] |
method for capturing the event of the euler radio button
val | value of radio button |
Definition at line 428 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), m_streamlinesinteractive, Ui_QMain::renderer_canvas, and QVolRendCanvas::setIntegrationMethod().
Referenced by QMain().
void QMain::rb_arrowcol_tf | ( | bool | val | ) | [slot] |
method for enabling/disabling color coding of arrows via tf
val | if enabled |
Definition at line 441 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setArrowTF().
Referenced by QMain().
void QMain::rb_strcol_tf | ( | bool | val | ) | [slot] |
method for enabling/disabling color coding of arrows via tf
val | if enabled |
Definition at line 446 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setStrTF().
Referenced by QMain().
void QMain::button_computecpu_clicked | ( | bool | val | ) | [slot] |
method for capturing the event of the compute on the CPU button
val | value the event |
Definition at line 452 of file QMain.cpp.
References QVolRendCanvas::computeCPUStreamlines(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::combo_seedsplacing_switched | ( | int | val | ) | [slot] |
sets the placing method for placing seedpoinds for streamlines
val | is the index of the activated mode |
Definition at line 460 of file QMain.cpp.
References comboseeds_active, QVolRendCanvas::computeCPUStreamlines(), m_streamlinesinteractive, Ui_QMain::renderer_canvas, and QVolRendCanvas::setPlacingMethod().
Referenced by load_data_file(), load_single_file(), and QMain().
void QMain::combo_choose_arrow | ( | int | val | ) | [slot] |
sets the displayed arrow
val | is the index of the activated mode |
Definition at line 472 of file QMain.cpp.
References comboseeds_active, Ui_QMain::renderer_canvas, and QVolRendCanvas::setGlyph().
Referenced by QMain().
void QMain::activate_arrows | ( | bool | state | ) | [slot] |
method for activating arrow plot
state | value the check box |
Definition at line 480 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setArrowplotState().
Referenced by QMain().
void QMain::activateLIC | ( | bool | state | ) | [slot] |
method for activating lic plot
state | value the check box |
Definition at line 487 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setLicplotState().
Referenced by QMain().
void QMain::enableIcons | ( | bool | state | ) | [slot] |
method for enabling icons
state | value the check box |
Definition at line 493 of file QMain.cpp.
References QVolRendCanvas::enableIcons(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::activateTapering | ( | bool | state | ) | [slot] |
method for activating tapering
state | value the check box |
Definition at line 499 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setTaperingState().
Referenced by QMain().
void QMain::activateStrGlyphes | ( | bool | state | ) | [slot] |
method for activating tapering
state | value the check box |
Definition at line 505 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setStrGlyphes().
Referenced by QMain().
void QMain::slider_tapering_scale | ( | int | val | ) | [slot] |
method for activating tapering
val | value the slider |
Definition at line 511 of file QMain.cpp.
References Ui_QMain::checkBox_tapering, Ui_QMain::renderer_canvas, and QVolRendCanvas::setTaperingScale().
Referenced by QMain().
void QMain::enableArrowTF | ( | bool | state | ) | [slot] |
enables display of TF
state | if arrow tf |
Definition at line 525 of file QMain.cpp.
References activeTF, arrowTFactivated, QTFCanvas::getTransferFunctionPtr(), Ui_QMain::renderer_canvas, QTFCanvas::setActiveTF(), QVolRendCanvas::setArrowTransferFunctionPtr(), slider_colprop_valuechanged(), and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::enableStreamLineTF | ( | bool | state | ) | [slot] |
enables display of TF
state | if arrow tf |
Definition at line 542 of file QMain.cpp.
References activeTF, QTFCanvas::getTransferFunctionPtr(), Ui_QMain::renderer_canvas, QTFCanvas::setActiveTF(), QVolRendCanvas::setStreamLineTransferFunctionPtr(), slider_colprop_valuechanged(), streamLineTFactivated, and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::enableLicTF | ( | bool | state | ) | [slot] |
enables display of TF
state | if arrow tf |
Definition at line 559 of file QMain.cpp.
References activeTF, QTFCanvas::getTransferFunctionPtr(), licTFactivated, Ui_QMain::renderer_canvas, QTFCanvas::setActiveTF(), QVolRendCanvas::setLicTF(), QVolRendCanvas::setLicTransferFunctionPtr(), slider_colprop_valuechanged(), and Ui_QMain::tf_canvas.
Referenced by QMain().
void QMain::animateLic | ( | bool | state | ) | [slot] |
enables animation of Lic
state | if animation |
Definition at line 578 of file QMain.cpp.
References QVolRendCanvas::animateLic(), and Ui_QMain::renderer_canvas.
Referenced by QMain().
void QMain::activate_streamlines | ( | bool | state | ) | [slot] |
method for activating streamline plot
state | value the check box |
Definition at line 583 of file QMain.cpp.
References Ui_QMain::renderer_canvas, and QVolRendCanvas::setStreamlinesState().
Referenced by QMain().
void QMain::interactivate | ( | bool | state | ) | [slot] |
method for activating the intearactive computation fo strmliness
state | value the check box |
Definition at line 590 of file QMain.cpp.
References m_streamlinesinteractive.
Referenced by QMain().
QTimer* QMain::pTimer [private] |
QTimer* QMain::pTimer_redraw [private] |
VVector QMain::m_ArrowsColor [private] |
VVector QMain::m_StreamlinesColor [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] |
bool QMain::m_streamlinesinteractive [private] |
Definition at line 328 of file QMain.h.
Referenced by combo_seedsplacing_switched(), interactivate(), QMain(), rb_euler_clicked(), slider_dsep_valuechanged(), slider_dt_valuechanged(), slider_dtest_valuechanged(), slider_steps_valuechanged(), and slider_timestep_valuechanged().
int QMain::comboseeds_active [private] |
Definition at line 329 of file QMain.h.
Referenced by combo_choose_arrow(), combo_seedsplacing_switched(), load_data_file(), load_single_file(), and QMain().
int QMain::activeTF [private] |
Which tf should be active per tab.
Definition at line 333 of file QMain.h.
Referenced by enableArrowTF(), enableLicTF(), enableStreamLineTF(), QMain(), and slider_colprop_valuechanged().
bool QMain::arrowTFactivated [private] |
If Arrow Tf is activated.
Definition at line 334 of file QMain.h.
Referenced by enableArrowTF(), QMain(), and slider_colprop_valuechanged().
bool QMain::streamLineTFactivated [private] |
If StreamLine Tf is activated.
Definition at line 335 of file QMain.h.
Referenced by enableStreamLineTF(), QMain(), and slider_colprop_valuechanged().
bool QMain::licTFactivated [private] |
If Lic TransferFunction is activated.
Definition at line 336 of file QMain.h.
Referenced by enableLicTF(), QMain(), and slider_colprop_valuechanged().