#include <SPlot2d_ViewWindow.h>

Public Types | |
| enum | { DumpId, ScaleOpId, FitAllId, FitRectId, ZoomId, MoveOpId, PanId, GlobalPanId, PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId, CurvPointsId, CurvLinesId, CurvSplinesId, LegendId, CurvSettingsId, CloneId, PrintId } |
Public Slots | |
| void | onChangeHorMode () |
| Called when the scale mode for the horizontal axis is changed. | |
| void | onChangeVerMode () |
| Called when the scale mode for the vertical axis is changed. | |
| void | onChangeCurveMode () |
| Called when the curve type is changed. | |
| void | onChangeLegendMode () |
| Called when the legend mode is changed. | |
| void | onFitAll () |
| Called when the "Fit all" action is activated. | |
| void | onFitRect () |
| Called when the "Fit rect" action is activated. | |
| void | onZoom () |
| Called when the "Zoom" action is activated. | |
| void | onPanning () |
| Called when the "Panning" action is activated. | |
| void | onGlobalPanning () |
| Called when the "Global panning" action is activated. | |
| void | onViewHorMode () |
| Called when horizontal axis scale mode action is activated. | |
| void | onViewVerMode () |
| Called when vertical axis scale mode action is activated. | |
| void | onLegend () |
| Called when the "Show legend" action is activated. | |
| void | onCurves () |
| Called when the "Change curve type" action is activated. | |
| void | onDumpView () |
| Called when the "Dump view" action is activated. | |
| void | onPrintView () |
| Called when the "Print view" action is activated. | |
Signals | |
| void | cloneView () |
| Emitted when the "Clone View" action is activated. | |
| 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) |
Public Member Functions | |
| SPlot2d_ViewWindow (SUIT_Desktop *, Plot2d_Viewer *) | |
| virtual | ~SPlot2d_ViewWindow () |
| Plot2d_Viewer * | getModel () |
| Get view model. | |
| void | putInfo (const QString &) |
| Put message to the status bar. | |
| Plot2d_ViewFrame * | getViewFrame () |
| Get view frame window. | |
| QToolBar * | getToolBar () |
| Get view window's toolbar. | |
| virtual void | initLayout () |
| Internal initialization. | |
| void | contextMenuPopup (QMenu *) |
| Fill popup menu with the actions,. | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Custom event filter. | |
| void | createActions () |
| Create actions for the view window. | |
| void | createToolBar () |
| Create toolbar for the view window. | |
| virtual QString | getVisualParameters () |
| Get the visual parameters of the view window. | |
| virtual void | setVisualParameters (const QString &) |
| Restore visual parameters of the view window from the formated string. | |
| virtual void | RefreshDumpImage () |
| Grab the view window to the internal image. | |
| bool | dumpViewToFormat (const QString &fileName, const QString &format) |
| virtual void | setViewManager (SUIT_ViewManager *) |
| SUIT_ViewManager * | getViewManager () const |
| bool | event (QEvent *) |
| 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) | |
| bool | dropDownButtons () const |
| Get current buttons mode. | |
Protected Member Functions | |
| virtual bool | action (const int) |
| virtual QImage | dumpView () |
| Dump the contents of the view window to the image. | |
| virtual bool | dumpViewToFormat (const QImage &, const QString &, const QString &) |
| Dump scene rendered in the view window to the file. | |
| virtual QString | filter () const |
| Get supported image files wildcards. | |
| void | closeEvent (QCloseEvent *) |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
Protected Attributes | |
| SUIT_Desktop * | myDesktop |
| SUIT_ViewManager * | myManager |
anonymous enum [inherited] |
| SPlot2d_ViewWindow::SPlot2d_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
| Plot2d_Viewer * | theModel | ||
| ) |
Constructor
| SPlot2d_ViewWindow::~SPlot2d_ViewWindow | ( | ) | [virtual] |
Destructor
| bool SPlot2d_ViewWindow::action | ( | const int | theAction | ) | [protected, virtual] |
Performs action
| theAction | - type of action |
Reimplemented from SUIT_ViewWindow.
References SUIT_Accel.PanDown, SUIT_Accel.PanLeft, SUIT_Accel.PanRight, SUIT_Accel.PanUp, SUIT_Accel.ZoomFit, SUIT_Accel.ZoomIn, and SUIT_Accel.ZoomOut.
| Plot2d_Viewer * Plot2d_ViewWindow::getModel | ( | ) | [inherited] |
References Plot2d_ViewWindow.myModel.
| void Plot2d_ViewWindow::putInfo | ( | const QString & | theMsg | ) | [inherited] |
| theMsg | message text |
References SUIT_ViewWindow.myDesktop.
| Plot2d_ViewFrame * Plot2d_ViewWindow::getViewFrame | ( | ) | [inherited] |
References Plot2d_ViewWindow.myViewFrame.
| QToolBar * Plot2d_ViewWindow::getToolBar | ( | ) | [inherited] |
References Plot2d_ViewWindow.myToolBar, QtxActionToolMgr.toolBar(), and SUIT_ViewWindow.toolMgr().
| void Plot2d_ViewWindow::initLayout | ( | ) | [virtual, inherited] |
| void Plot2d_ViewWindow::contextMenuPopup | ( | QMenu * | thePopup | ) | [inherited] |
| thePopup | popup menu |
References QtxActionMgr.action(), Plot2d_ViewWindow.CurvLinesId, Plot2d_ViewWindow.CurvPointsId, Plot2d_ViewWindow.CurvSettingsId, Plot2d_ViewWindow.CurvSplinesId, Plot2d_ViewWindow.LegendId, Plot2d_ViewWindow.myViewFrame, Plot2d_ViewWindow.PModeXLinearId, Plot2d_ViewWindow.PModeXLogarithmicId, Plot2d_ViewWindow.PModeYLinearId, Plot2d_ViewWindow.PModeYLogarithmicId, and SUIT_ViewWindow.toolMgr().
| 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 Plot2d_ViewWindow.myViewFrame.
| void Plot2d_ViewWindow::createActions | ( | ) | [inherited] |
References QtxActionMgr.action(), Plot2d_ViewWindow.CloneId, Plot2d_ViewWindow.cloneView(), Plot2d_ViewWindow.CurvLinesId, Plot2d_ViewWindow.CurvPointsId, Plot2d_ViewWindow.CurvSettingsId, Plot2d_ViewWindow.CurvSplinesId, Plot2d_ViewWindow.DumpId, Plot2d_ViewWindow.FitAllId, Plot2d_ViewWindow.FitRectId, Plot2d_ViewWindow.GlobalPanId, QtxActionSet.insertAction(), Plot2d_ViewWindow.LegendId, QtxResourceMgr.loadPixmap(), Plot2d_ViewWindow.MoveOpId, Plot2d_ViewWindow.myViewFrame, Plot2d_ViewWindow.onChangeCurveMode(), Plot2d_ViewWindow.onChangeHorMode(), Plot2d_ViewWindow.onChangeLegendMode(), Plot2d_ViewWindow.onChangeVerMode(), Plot2d_ViewWindow.onCurves(), Plot2d_ViewWindow.onDumpView(), Plot2d_ViewWindow.onFitAll(), Plot2d_ViewWindow.onFitRect(), Plot2d_ViewWindow.onGlobalPanning(), Plot2d_ViewWindow.onLegend(), Plot2d_ViewWindow.onPanning(), Plot2d_ViewWindow.onPrintView(), Plot2d_ViewWindow.onViewHorMode(), Plot2d_ViewWindow.onViewVerMode(), Plot2d_ViewWindow.onZoom(), Plot2d_ViewWindow.PanId, Plot2d_ViewWindow.PModeXLinearId, Plot2d_ViewWindow.PModeXLogarithmicId, Plot2d_ViewWindow.PModeYLinearId, Plot2d_ViewWindow.PModeYLogarithmicId, Plot2d_ViewWindow.PrintId, QtxActionMgr.registerAction(), SUIT_Session.resourceMgr(), Plot2d_ViewWindow.ScaleOpId, SUIT_Session.session(), SUIT_ViewWindow.toolMgr(), and Plot2d_ViewWindow.ZoomId.
| void Plot2d_ViewWindow::createToolBar | ( | ) | [inherited] |
References QtxActionToolMgr.append(), Plot2d_ViewWindow.CloneId, QtxActionToolMgr.createToolBar(), Plot2d_ViewWindow.CurvLinesId, Plot2d_ViewWindow.CurvPointsId, Plot2d_ViewWindow.CurvSettingsId, Plot2d_ViewWindow.CurvSplinesId, Plot2d_ViewWindow.DumpId, Plot2d_ViewWindow.LegendId, Plot2d_ViewWindow.MoveOpId, Plot2d_ViewWindow.myToolBar, Plot2d_ViewWindow.PModeXLinearId, Plot2d_ViewWindow.PModeXLogarithmicId, Plot2d_ViewWindow.PModeYLinearId, Plot2d_ViewWindow.PModeYLogarithmicId, Plot2d_ViewWindow.PrintId, Plot2d_ViewWindow.ScaleOpId, and SUIT_ViewWindow.toolMgr().
| QString Plot2d_ViewWindow::getVisualParameters | ( | ) | [virtual, inherited] |
Reimplemented from SUIT_ViewWindow.
References Plot2d_ViewFrame.getVisualParameters(), and Plot2d_ViewWindow.myViewFrame.
| void Plot2d_ViewWindow::setVisualParameters | ( | const QString & | parameters | ) | [virtual, inherited] |
| parameters | view window visual parameters |
Reimplemented from SUIT_ViewWindow.
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.setVisualParameters().
| void Plot2d_ViewWindow::RefreshDumpImage | ( | ) | [virtual, inherited] |
References Plot2d_ViewWindow.myDumpImage, and Plot2d_ViewWindow.myViewFrame.
| void Plot2d_ViewWindow::onChangeHorMode | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onChangeVerMode | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onChangeCurveMode | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onChangeLegendMode | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onFitAll | ( | ) | [slot, inherited] |
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.onViewFitAll().
| void Plot2d_ViewWindow::onFitRect | ( | ) | [slot, inherited] |
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.onViewFitArea().
| void Plot2d_ViewWindow::onZoom | ( | ) | [slot, inherited] |
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.onViewZoom().
| void Plot2d_ViewWindow::onPanning | ( | ) | [slot, inherited] |
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.onViewPan().
| void Plot2d_ViewWindow::onGlobalPanning | ( | ) | [slot, inherited] |
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.onViewGlobalPan().
| void Plot2d_ViewWindow::onViewHorMode | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onViewVerMode | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onLegend | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onCurves | ( | ) | [slot, inherited] |
| void Plot2d_ViewWindow::onDumpView | ( | ) | [virtual, slot, inherited] |
Reimplemented from SUIT_ViewWindow.
References Plot2d_ViewWindow.myViewFrame.
| void Plot2d_ViewWindow::onPrintView | ( | ) | [slot, inherited] |
| QImage Plot2d_ViewWindow::dumpView | ( | ) | [protected, virtual, inherited] |
Reimplemented from SUIT_ViewWindow.
References Plot2d_ViewWindow.getToolBar(), Plot2d_ViewWindow.myDumpImage, and Plot2d_ViewWindow.myViewFrame.
| bool Plot2d_ViewWindow::dumpViewToFormat | ( | const QImage & | img, |
| const QString & | fileName, | ||
| const QString & | format | ||
| ) | [protected, virtual, inherited] |
| img | image |
| fileName | name of file |
| format | image format ("BMP" [default], "JPEG", "JPG", "PNG") |
Reimplemented from SUIT_ViewWindow.
References Plot2d_ViewWindow.myViewFrame, and Plot2d_ViewFrame.print().
| bool SUIT_ViewWindow::dumpViewToFormat | ( | const QString & | fileName, |
| const QString & | format | ||
| ) | [inherited] |
Saves scene rendering in window to file
| fileName | - name of file |
| format | - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") |
References SUIT_ViewWindow.dumpView().
| QString Plot2d_ViewWindow::filter | ( | ) | const [protected, virtual, inherited] |
Reimplemented from SUIT_ViewWindow.
| void Plot2d_ViewWindow::cloneView | ( | ) | [signal, inherited] |
| void SUIT_ViewWindow::setViewManager | ( | SUIT_ViewManager * | theManager | ) | [virtual, inherited] |
Sets new view manager for window
| theManager | - new view manager |
Reimplemented in OCCViewer_ViewFrame.
References SUIT_ViewWindow.myManager.
| SUIT_ViewManager * SUIT_ViewWindow::getViewManager | ( | ) | const [inherited] |
References SUIT_ViewWindow.myManager.
| bool SUIT_ViewWindow::event | ( | QEvent * | e | ) | [inherited] |
Reaction view window on event e.
References SUIT_Study.application(), SUIT_MessageBox.critical(), DUMP_EVENT, SUIT_ViewWindow.dumpView(), SUIT_ViewWindow.dumpViewToFormat(), Qtx.extension(), SUIT_ViewWindow.filter(), SUIT_Application.getFileName(), SUIT_ViewWindow.myManager, and SUIT_ViewManager.study().
| bool SUIT_ViewWindow::onAccelAction | ( | int | _action | ) | [inherited] |
Called by SUIT_Accel.onActivated() when a key accelerator was activated and this window was active
References SUIT_ViewWindow.action().
| bool SUIT_ViewWindow::closable | ( | ) | const [inherited] |
Returns true if view window can be closed by the user
| bool SUIT_ViewWindow::setClosable | ( | const bool | on | ) | [inherited] |
Set / reset "closable" option of the view window
References SUIT_ViewWindow.closable().
| void SUIT_ViewWindow::setDestructiveClose | ( | const bool | on | ) | [inherited] |
Set or clear flag Qt.WDestructiveClose
| int SUIT_ViewWindow::getId | ( | ) | const [inherited] |
| QtxActionToolMgr * SUIT_ViewWindow::toolMgr | ( | ) | const [inherited] |
References SUIT_ViewWindow.myToolMgr.
| void SUIT_ViewWindow::setDropDownButtons | ( | bool | on | ) | [virtual, inherited] |
| on | new buttons mode |
Reimplemented in OCCViewer_ViewFrame.
References test_table.a, QtxActionMgr.action(), QtxActionSet.actions(), QtxActionMgr.idList(), QtxActionToolMgr.index(), QtxActionToolMgr.insert(), SUIT_ViewWindow.myIsDropDown, SUIT_ViewWindow.myMultiActions, QtxActionToolMgr.remove(), QtxActionToolMgr.toolBarsIds(), and SUIT_ViewWindow.toolMgr().
| bool SUIT_ViewWindow::dropDownButtons | ( | ) | const [inherited] |
| void SUIT_ViewWindow.tryClosing | ( | SUIT_ViewWindow * | ) | [signal, inherited] |
| void SUIT_ViewWindow.closing | ( | SUIT_ViewWindow * | ) | [signal, inherited] |
| void SUIT_ViewWindow.mousePressed | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.mouseReleased | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.mouseDoubleClicked | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.mouseMoving | ( | SUIT_ViewWindow * | , |
| QMouseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.wheeling | ( | SUIT_ViewWindow * | , |
| QWheelEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.keyPressed | ( | SUIT_ViewWindow * | , |
| QKeyEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.keyReleased | ( | SUIT_ViewWindow * | , |
| QKeyEvent * | |||
| ) | [signal, inherited] |
| void SUIT_ViewWindow.contextMenuRequested | ( | QContextMenuEvent * | e | ) | [signal, inherited] |
| void SUIT_ViewWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected, inherited] |
Close event theEvent.
References SUIT_ViewWindow.closable(), SUIT_ViewWindow.closing(), and SUIT_ViewWindow.tryClosing().
| void SUIT_ViewWindow::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [protected, virtual, inherited] |
Context menu requested for event e.
References SUIT_ViewWindow.contextMenuRequested().
SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected, inherited] |
SUIT_ViewManager* SUIT_ViewWindow.myManager [protected, inherited] |