#include <Plot2d_ViewModel.h>

Public Types | |
| enum | HotOperation { PAN, ZOOM, ROTATE, FIT_AREA } |
| enum | InteractionStyle { STANDARD, KEY_FREE } |
| typedef QMap< HotOperation, Qt::KeyboardModifiers > | StatesMap |
| typedef QMap< HotOperation, Qt::MouseButtons > | ButtonsMap |
| typedef QMap< InteractionStyle, StatesMap > | InteractionStyle2StatesMap |
| typedef QMap< InteractionStyle, ButtonsMap > | InteractionStyle2ButtonsMap |
Signals | |
| void | viewCloned (SUIT_ViewWindow *) |
Public Member Functions | |
| Plot2d_Viewer (bool theAutoDel=false) | |
| ~Plot2d_Viewer () | |
| virtual void | setViewManager (SUIT_ViewManager *) |
| virtual SUIT_ViewWindow * | createView (SUIT_Desktop *theDesktop) |
| virtual QString | getType () const |
| virtual void | contextMenuPopup (QMenu *) |
| Plot2d_Prs * | getPrs () const |
| void | setPrs (Plot2d_Prs *thePrs) |
| void | update () |
| void | clearPrs () |
| void | setAutoDel (bool theDel) |
| SUIT_ViewManager * | getViewManager () const |
Static Public Member Functions | |
| static QString | Type () |
| static void | setHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers theState, Qt::MouseButtons theButton) |
| static void | getHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers &theState, Qt::MouseButtons &theButton) |
Static Public Attributes | |
| static InteractionStyle2StatesMap | myStateMap |
| static InteractionStyle2ButtonsMap | myButtonMap |
Protected Slots | |
| void | onChangeBgColor () |
| void | onDumpView () |
| void | onShowToolbar () |
| virtual void | onCloneView (Plot2d_ViewFrame *, Plot2d_ViewFrame *) |
| virtual void | onLegendClicked (QwtPlotItem *) |
Protected Attributes | |
| SUIT_ViewManager * | myViewManager |
Private Attributes | |
| Plot2d_Prs * | myPrs |
| bool | myAutoDel |
typedef QMap<HotOperation, Qt::KeyboardModifiers> SUIT_ViewModel.StatesMap [inherited] |
typedef QMap<HotOperation, Qt::MouseButtons> SUIT_ViewModel.ButtonsMap [inherited] |
typedef QMap<InteractionStyle, StatesMap> SUIT_ViewModel.InteractionStyle2StatesMap [inherited] |
typedef QMap<InteractionStyle, ButtonsMap> SUIT_ViewModel.InteractionStyle2ButtonsMap [inherited] |
enum SUIT_ViewModel::HotOperation [inherited] |
enum SUIT_ViewModel::InteractionStyle [inherited] |
| Plot2d_Viewer::Plot2d_Viewer | ( | bool | theAutoDel = false | ) |
| Plot2d_Viewer::~Plot2d_Viewer | ( | ) |
Destructor
References clearPrs(), and myPrs.
| static QString Plot2d_Viewer.Type | ( | ) | [static] |
Reimplemented in SPlot2d_Viewer.
| void Plot2d_Viewer::setViewManager | ( | SUIT_ViewManager * | mgr | ) | [virtual] |
Sets view manager
| mgr | - new view manager |
Reimplemented from SUIT_ViewModel.
References onCloneView().
| SUIT_ViewWindow * Plot2d_Viewer::createView | ( | SUIT_Desktop * | theDesktop | ) | [virtual] |
Create new instance of view window on desktop theDesktop.
| SUIT_ViewWindow* | - created view window pointer. |
Reimplemented from SUIT_ViewModel.
Reimplemented in SPlot2d_Viewer.
References Plot2d_ViewFrame.Display(), Plot2d_ViewWindow.getViewFrame(), Plot2d_ViewWindow.initLayout(), and myPrs.
| virtual QString Plot2d_Viewer.getType | ( | ) | const [virtual] |
Reimplemented from SUIT_ViewModel.
Reimplemented in SPlot2d_Viewer.
| void Plot2d_Viewer::contextMenuPopup | ( | QMenu * | thePopup | ) | [virtual] |
Adds custom items to popup menu
| thePopup | - popup menu |
Reimplemented from SUIT_ViewModel.
References Plot2d_ViewWindow.contextMenuPopup(), SUIT_ViewManager.getActiveView(), Plot2d_ViewWindow.getToolBar(), SUIT_ViewModel.myViewManager, onChangeBgColor(), onDumpView(), onShowToolbar(), and Plot2d_ViewWindow.RefreshDumpImage().
| Plot2d_Prs* Plot2d_Viewer.getPrs | ( | ) | const |
| void Plot2d_Viewer::setPrs | ( | Plot2d_Prs * | thePrs | ) |
Sets presentation of viewer
| thePrs | - new presentation |
References clearPrs(), myAutoDel, myPrs, and Plot2d_Prs.setAutoDel().
| void Plot2d_Viewer::update | ( | ) |
Updates current viewer
References Plot2d_ViewFrame.Display(), Plot2d_ViewWindow.getViewFrame(), SUIT_ViewModel.getViewManager(), SUIT_ViewManager.getViews(), and myPrs.
| void Plot2d_Viewer::clearPrs | ( | ) |
Clear viewer presentation
References Plot2d_ViewFrame.Erase(), Plot2d_ViewWindow.getViewFrame(), SUIT_ViewModel.getViewManager(), SUIT_ViewManager.getViews(), myAutoDel, and myPrs.
| void Plot2d_Viewer::setAutoDel | ( | bool | theDel | ) |
Sets "auto delete" state of of presentation
| theDel | - new state |
References myAutoDel, myPrs, and Plot2d_Prs.setAutoDel().
| void Plot2d_Viewer.viewCloned | ( | SUIT_ViewWindow * | ) | [signal] |
| void Plot2d_Viewer::onChangeBgColor | ( | ) | [protected, slot] |
SLOT: called when action "Change background" is activated
References SUIT_ViewManager.getActiveView(), Plot2d_ViewWindow.getViewFrame(), SUIT_ViewModel.myViewManager, and Plot2d_ViewFrame.onChangeBackground().
| void Plot2d_Viewer::onDumpView | ( | ) | [protected, slot] |
SLOT: called when action "Dump view" is activated
References SUIT_ViewManager.getActiveView(), SUIT_ViewModel.myViewManager, and Plot2d_ViewWindow.onDumpView().
| void Plot2d_Viewer::onShowToolbar | ( | ) | [protected, slot] |
SLOT: called when action "Show toolbar" is activated
References SUIT_ViewManager.getActiveView(), Plot2d_ViewWindow.getToolBar(), and SUIT_ViewModel.myViewManager.
| void Plot2d_Viewer::onCloneView | ( | Plot2d_ViewFrame * | clonedVF, |
| Plot2d_ViewFrame * | newVF | ||
| ) | [protected, virtual, slot] |
SLOT: called when action "Clone view" is activated
References Plot2d_ViewFrame.copyPreferences(), Plot2d_ViewFrame.displayCurve(), Plot2d_ViewFrame.getCurves(), Plot2d_ViewFrame.isVisible(), Plot2d_ViewFrame.Repaint(), and viewCloned().
| void Plot2d_Viewer::onLegendClicked | ( | QwtPlotItem * | plotItem | ) | [protected, virtual, slot] |
Reimplemented in SPlot2d_Viewer.
| SUIT_ViewManager * SUIT_ViewModel::getViewManager | ( | ) | const [inherited] |
| void SUIT_ViewModel::setHotButton | ( | InteractionStyle | theInteractionStyle, |
| HotOperation | theOper, | ||
| Qt::KeyboardModifiers | theState, | ||
| Qt::MouseButtons | theButton | ||
| ) | [static, inherited] |
Sets hot button
| theOper | - hot operation |
| theState | - adding state to state map operations. |
| theButton | - adding state to button map operations. |
References SUIT_ViewModel.myButtonMap, and SUIT_ViewModel.myStateMap.
| void SUIT_ViewModel::getHotButton | ( | InteractionStyle | theInteractionStyle, |
| HotOperation | theOper, | ||
| Qt::KeyboardModifiers & | theState, | ||
| Qt::MouseButtons & | theButton | ||
| ) | [static, inherited] |
Gets hot button for operation theOper.
| theOper | - input hot operation |
| theState | - output state from state map operations. |
| theButton | - output state from button map operations. |
References SUIT_ViewModel.myButtonMap, and SUIT_ViewModel.myStateMap.
Plot2d_Prs* Plot2d_Viewer.myPrs [private] |
bool Plot2d_Viewer.myAutoDel [private] |
SUIT_ViewManager* SUIT_ViewModel.myViewManager [protected, inherited] |
SUIT_ViewModel::InteractionStyle2StatesMap SUIT_ViewModel::myStateMap [static, inherited] |
SUIT_ViewModel::InteractionStyle2ButtonsMap SUIT_ViewModel::myButtonMap [static, inherited] |