#include <Navigation.h>
Public Slots | |
void | testit (bool i=0) |
void | loadTF () |
void | saveTF () |
void | resetTF () |
Public Member Functions | |
Navigation (OpenGLWidget *ogl, QWidget *parent=0, Qt::WFlags flags=0) | |
TEST COLORBAR. | |
virtual | ~Navigation () |
void | setBackgroundChooser (int count) |
void | mousePressEvent (QMouseEvent *e) |
void | createColorBar (bool isFileOpen, bool update=false) |
void | resetGuiElements (bool filestatus) |
Definition at line 13 of file Navigation.h.
Navigation::Navigation | ( | OpenGLWidget * | ogl, | |
QWidget * | parent = 0 , |
|||
Qt::WFlags | flags = 0 | |||
) |
TEST COLORBAR.
Change background
select arrow color
select streamline color
select streamline glyph color
update streamline
nk - Checkboxes show arrows
connect check box for showing color coding
connect checkbox for showing streamlines
connect checkbox for tapering
connect checkbox for glyphs in streamline
connect point scale
nk - Slider connect change pointSize
connect change point resolution
connect slider for streamline dsep
connect slider for streamline dtest
connect slider for glyph step size (distance)
connect slider for glyph size
connect euler rb
connect runge rb
Definition at line 18 of file Navigation.cpp.
References Ui_Navigation::m_activateSL, Ui_Navigation::m_activateTF, Ui_Navigation::m_backgroundCB, Ui_Navigation::m_dsepSlider, Ui_Navigation::m_dtestSlider, Ui_Navigation::m_euler, Ui_Navigation::m_glyphDistance, Ui_Navigation::m_glyphSize, Ui_Navigation::m_pointResSlider, Ui_Navigation::m_pointSizeSlider, Ui_Navigation::m_runge, Ui_Navigation::m_scalePoints, Ui_Navigation::m_selectArrowColor, Ui_Navigation::m_selectGlyphColor, Ui_Navigation::m_selectSLColor, Ui_Navigation::m_showArrows, Ui_Navigation::m_showGlyph, Ui_Navigation::m_showTapering, Ui_Navigation::m_updateSL, MAX_SLIDER_VALUE, and Ui_Navigation::setupUi().
Navigation::~Navigation | ( | ) | [virtual] |
Definition at line 213 of file Navigation.cpp.
void Navigation::setBackgroundChooser | ( | int | count | ) |
no background by default
Definition at line 412 of file Navigation.cpp.
References Ui_Navigation::m_backgroundCB.
Referenced by MainWindow::closeFile(), and MainWindow::openFile().
void Navigation::mousePressEvent | ( | QMouseEvent * | e | ) |
no mouse event until file is open!
(nk) get dim from colorBar
only use mouse action within QLabel m_colorBar
(nk) set new gradient stop
(nk) choose color for gradient
get new color from dialog
get current stop position
(nk) remove point & adjacent gradient stop
Definition at line 218 of file Navigation.cpp.
References createColorBar(), and Ui_Navigation::m_colorBar.
void Navigation::createColorBar | ( | bool | isFileOpen, | |
bool | update = false | |||
) |
set file open status for mouseEvent
TEST COLORBAR
(nk) Add default gradient stops
red - left
green - center
blue - right
(nk) add points to determine position in gradient
create texture from gradient stops
Definition at line 131 of file Navigation.cpp.
References Ui_Navigation::m_colorBar, and OpenGLWidget::setColorBarTexture().
Referenced by MainWindow::closeFile(), loadTF(), mousePressEvent(), MainWindow::openFile(), and resetTF().
void Navigation::resetGuiElements | ( | bool | filestatus | ) |
nk - pushbutton for arrow color
nk - transfer function checkbox
nk - slider for streamlines (dsep/dtest)
nk - checkboxes for streamlines
nk - buttons for color select & streamline update
nk - integration method
nk - streamline dependent
Definition at line 82 of file Navigation.cpp.
References Ui_Navigation::m_activateSL, Ui_Navigation::m_activateTF, Ui_Navigation::m_dsepSlider, Ui_Navigation::m_dtestSlider, Ui_Navigation::m_euler, Ui_Navigation::m_glyphDistance, Ui_Navigation::m_glyphSize, Ui_Navigation::m_pointResSlider, Ui_Navigation::m_pointSizeSlider, Ui_Navigation::m_runge, Ui_Navigation::m_scalePoints, Ui_Navigation::m_selectArrowColor, Ui_Navigation::m_selectGlyphColor, Ui_Navigation::m_selectSLColor, Ui_Navigation::m_showArrows, Ui_Navigation::m_showGlyph, Ui_Navigation::m_showTapering, and Ui_Navigation::m_updateSL.
Referenced by MainWindow::closeFile(), MainWindow::MainWindow(), and MainWindow::openFile().
void Navigation::testit | ( | bool | i = 0 |
) | [inline, slot] |
Definition at line 48 of file Navigation.h.
void Navigation::loadTF | ( | ) | [slot] |
clear data structures
search for string "Stop" in line
Definition at line 290 of file Navigation.cpp.
References createColorBar().
void Navigation::saveTF | ( | ) | [slot] |
write point at (i) to file
write gradient stops at (i) to file
Definition at line 355 of file Navigation.cpp.
void Navigation::resetTF | ( | ) | [slot] |