Plot2d view window.
#include <Plot2d_ViewWindow.h>

Public Slots | |
| void | onChangeHorMode () |
| Called when the scale mode for the horizontal axis is changed. More... | |
| void | onChangeVerMode () |
| Called when the scale mode for the vertical axis is changed. More... | |
| void | onChangeCurveMode () |
| Called when the curve type is changed. More... | |
| void | onChangeLegendMode () |
| Called when the legend mode is changed. More... | |
| void | onChangeNormLMode () |
| Called when the normalization mode (by left Y axis) for curves is changed. More... | |
| void | onChangeNormRMode () |
| Called when the normalization mode (by left Y axis) for curves is changed. More... | |
| void | onFitAll () |
| Called when the "Fit all" action is activated. More... | |
| void | onFitRect () |
| Called when the "Fit rect" action is activated. More... | |
| void | onZoom () |
| Called when the "Zoom" action is activated. More... | |
| void | onPanning () |
| Called when the "Panning" action is activated. More... | |
| void | onGlobalPanning () |
| Called when the "Global panning" action is activated. More... | |
| void | onViewHorMode () |
| Called when horizontal axis scale mode action is activated. More... | |
| void | onViewVerMode () |
| Called when vertical axis scale mode action is activated. More... | |
| void | onViewNormLMode () |
| Called when normalization mode action (by left Y axis) is activated. More... | |
| void | onViewNormRMode () |
| Called when normalization mode action (by right Y axis) is activated. More... | |
| void | onLegend () |
| Called when the "Show legend" action is activated. More... | |
| void | onCurves () |
| Called when the "Change curve type" action is activated. More... | |
| void | onDumpView () |
| Called when the "Dump view" action is activated. More... | |
| void | onPrintView () |
| Called when the "Print view" action is activated. More... | |
Public Slots inherited from SUIT_ViewWindow | |
| virtual void | onDumpView () |
Signals | |
| void | cloneView () |
| Emitted when the "Clone View" action is activated. More... | |
Signals inherited from SUIT_ViewWindow | |
| void | tryClosing (SUIT_ViewWindow *) |
| void | closing (SUIT_ViewWindow *) |
| void | mousePressed (SUIT_ViewWindow *, QMouseEvent *) |
| void | mouseReleased (SUIT_ViewWindow *, QMouseEvent *) |
| void | mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *) |
| void | mouseMoving (SUIT_ViewWindow *, QMouseEvent *) |
| void | wheeling (SUIT_ViewWindow *, QWheelEvent *) |
| void | keyPressed (SUIT_ViewWindow *, QKeyEvent *) |
| void | keyReleased (SUIT_ViewWindow *, QKeyEvent *) |
| void | contextMenuRequested (QContextMenuEvent *e) |
| void | viewModified (SUIT_ViewWindow *) |
Public Member Functions | |
| Plot2d_ViewWindow (SUIT_Desktop *, Plot2d_Viewer *) | |
| Constructor. More... | |
| virtual | ~Plot2d_ViewWindow () |
| Destructor. More... | |
| Plot2d_Viewer * | getModel () |
| Get view model. More... | |
| void | putInfo (const QString &) |
| Put message to the status bar. More... | |
| Plot2d_ViewFrame * | getViewFrame () |
| Get view frame window. More... | |
| QToolBar * | getToolBar () |
| Get view window's toolbar. More... | |
| virtual void | initLayout () |
| Internal initialization. More... | |
| void | contextMenuPopup (QMenu *) |
| Fill popup menu with the actions,. More... | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Custom event filter. More... | |
| void | createActions () |
| Create actions for the view window. More... | |
| void | createToolBar () |
| Create toolbar for the view window. More... | |
| virtual QString | getVisualParameters () |
| Get the visual parameters of the view window. More... | |
| virtual void | setVisualParameters (const QString &) |
| Restore visual parameters of the view window from the formated string. More... | |
| virtual void | RefreshDumpImage () |
| Grab the view window to the internal image. More... | |
Public Member Functions inherited from SUIT_ViewWindow | |
| SUIT_ViewWindow (SUIT_Desktop *) | |
| virtual | ~SUIT_ViewWindow () |
| virtual void | setViewManager (SUIT_ViewManager *) |
| SUIT_ViewManager * | getViewManager () const |
| bool | event (QEvent *) |
| bool | dumpViewToFormat (const QString &fileName, const QString &format) |
| bool | onAccelAction (int) |
| bool | closable () const |
| bool | setClosable (const bool) |
| void | setDestructiveClose (const bool) |
| int | getId () const |
| QtxActionToolMgr * | toolMgr () const |
| virtual void | setDropDownButtons (bool) |
Set buttons mode to drop-down (on = true) or ligned (on = false) More... | |
| bool | dropDownButtons () const |
| Get current buttons mode. More... | |
| virtual SUIT_CameraProperties | cameraProperties () |
Protected Member Functions | |
| virtual QImage | dumpView () |
| Dump the contents of the view window to the image. More... | |
| virtual bool | dumpViewToFormat (const QImage &, const QString &, const QString &) |
| Dump scene rendered in the view window to the file. More... | |
| virtual QString | filter () const |
| Get supported image files wildcards. More... | |
Protected Member Functions inherited from SUIT_ViewWindow | |
| void | closeEvent (QCloseEvent *) |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| virtual bool | action (const int) |
| virtual QAction * | synchronizeAction () |
Private Attributes | |
| Plot2d_Viewer * | myModel |
| Plot2d_ViewFrame * | myViewFrame |
| int | myToolBar |
| QImage | myDumpImage |
Additional Inherited Members | |
Protected Slots inherited from SUIT_ViewWindow | |
| void | updateSyncViews () |
| void | onSynchronizeView (bool) |
| virtual void | synchronize (SUIT_ViewWindow *) |
| void | emitViewModified () |
Static Protected Member Functions inherited from SUIT_ViewWindow | |
| static void | synchronizeView (SUIT_ViewWindow *viewWindow, int id) |
Protected Attributes inherited from SUIT_ViewWindow | |
| SUIT_Desktop * | myDesktop |
| SUIT_ViewManager * | myManager |
| anonymous enum |
| Plot2d_ViewWindow::Plot2d_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
| Plot2d_Viewer * | theModel | ||
| ) |
| theDesktop | parent desktop window |
| theModel | plt2d view model |
References myModel.
|
virtual |
|
signal |
| void Plot2d_ViewWindow::contextMenuPopup | ( | QMenu * | thePopup | ) |
| thePopup | popup menu |
References QtxActionMgr::action(), CurvLinesId, CurvPointsId, CurvSettingsId, CurvSplinesId, LegendId, myViewFrame, PModeNormLMaxId, PModeNormLMinId, PModeNormRMaxId, PModeNormRMinId, PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId, and SUIT_ViewWindow::toolMgr().
| void Plot2d_ViewWindow::createActions | ( | ) |
References QtxActionMgr::action(), AnalyticalCurveId, CloneId, cloneView(), CurvLinesId, CurvPointsId, CurvSettingsId, CurvSplinesId, DumpId, FitAllId, FitRectId, GlobalPanId, QtxActionSet::insertAction(), LegendId, QtxResourceMgr::loadPixmap(), MoveOpId, myViewFrame, onChangeCurveMode(), onChangeHorMode(), onChangeLegendMode(), onChangeNormLMode(), onChangeNormRMode(), onChangeVerMode(), onCurves(), onDumpView(), onFitAll(), onFitRect(), onGlobalPanning(), onLegend(), onPanning(), onPrintView(), onViewHorMode(), onViewNormLMode(), onViewNormRMode(), onViewVerMode(), onZoom(), PanId, PModeNormLMaxId, PModeNormLMinId, PModeNormRMaxId, PModeNormRMinId, PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId, PrintId, QtxActionMgr::registerAction(), SUIT_Session::resourceMgr(), ScaleOpId, SUIT_Session::session(), SUIT_ViewWindow::toolMgr(), and ZoomId.
| void Plot2d_ViewWindow::createToolBar | ( | ) |
References AnalyticalCurveId, QtxActionToolMgr::append(), CloneId, QtxActionToolMgr::createToolBar(), CurvLinesId, CurvPointsId, CurvSettingsId, CurvSplinesId, DumpId, LegendId, MoveOpId, myToolBar, PModeNormLMaxId, PModeNormLMinId, PModeNormRMaxId, PModeNormRMinId, PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId, PrintId, ScaleOpId, and SUIT_ViewWindow::toolMgr().
|
protectedvirtual |
Reimplemented from SUIT_ViewWindow.
References getToolBar(), myDumpImage, myViewFrame, and px().
|
protectedvirtual |
| img | image |
| fileName | name of file |
| format | image format ("BMP" [default], "JPEG", "JPG", "PNG") |
Reimplemented from SUIT_ViewWindow.
References SUIT_ViewWindow::dumpViewToFormat(), myViewFrame, and Plot2d_ViewFrame::print().
| watched | event receiver object |
| e | event |
true if further event processing should be stopped References SUIT_ViewWindow::mouseMoving(), SUIT_ViewWindow::mousePressed(), SUIT_ViewWindow::mouseReleased(), and myViewFrame.
|
protectedvirtual |
Reimplemented from SUIT_ViewWindow.
References SUIT_ViewWindow::filter().
| Plot2d_Viewer * Plot2d_ViewWindow::getModel | ( | ) |
| QToolBar * Plot2d_ViewWindow::getToolBar | ( | ) |
References myToolBar, QtxActionToolMgr::toolBar(), and SUIT_ViewWindow::toolMgr().
| Plot2d_ViewFrame * Plot2d_ViewWindow::getViewFrame | ( | ) |
References myViewFrame.
|
virtual |
Reimplemented from SUIT_ViewWindow.
References Plot2d_ViewFrame::getVisualParameters(), and myViewFrame.
|
virtual |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
References myViewFrame, and SUIT_ViewWindow::onDumpView().
|
slot |
References myViewFrame, and Plot2d_ViewFrame::onViewFitAll().
|
slot |
References myViewFrame, and Plot2d_ViewFrame::onViewFitArea().
|
slot |
References myViewFrame, and Plot2d_ViewFrame::onViewGlobalPan().
|
slot |
|
slot |
References myViewFrame, and Plot2d_ViewFrame::onViewPan().
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
References myViewFrame, and Plot2d_ViewFrame::onViewZoom().
| void Plot2d_ViewWindow::putInfo | ( | const QString & | theMsg | ) |
| theMsg | message text |
References SUIT_ViewWindow::myDesktop.
|
virtual |
References myDumpImage, myViewFrame, and px().
|
virtual |
| parameters | view window visual parameters |
Reimplemented from SUIT_ViewWindow.
References myViewFrame, and Plot2d_ViewFrame::setVisualParameters().
|
private |
|
private |
|
private |
|
private |