#include <Plot2d_ViewModel.h>
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) |
Public Member Functions inherited from SUIT_ViewModel | |
SUIT_ViewModel () | |
virtual | ~SUIT_ViewModel () |
SUIT_ViewManager * | getViewManager () const |
Static Public Member Functions | |
static QString | Type () |
Static Public Member Functions inherited from SUIT_ViewModel | |
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) |
Protected Slots | |
void | onChangeBgColor () |
void | onDumpView () |
void | onShowToolbar () |
virtual void | onCloneView (Plot2d_ViewFrame *, Plot2d_ViewFrame *) |
virtual void | onClicked (const QVariant &, int) |
Private Attributes | |
Plot2d_Prs * | myPrs |
bool | myAutoDel |
Additional Inherited Members | |
Public Types inherited from SUIT_ViewModel | |
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 |
Static Public Attributes inherited from SUIT_ViewModel | |
static InteractionStyle2StatesMap | myStateMap |
static InteractionStyle2ButtonsMap | myButtonMap |
Protected Attributes inherited from SUIT_ViewModel | |
SUIT_ViewManager * | myViewManager |
Plot2d_Viewer::Plot2d_Viewer | ( | bool | theAutoDel = false | ) |
Constructor
References myAutoDel, myPrs, Plot2d_Object::setHighlightedLegendTextColor(), and Plot2d_Object::setSelectionColor().
Plot2d_Viewer::~Plot2d_Viewer | ( | ) |
Destructor
References clearPrs(), 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.
|
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().
|
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.
|
inline |
|
inlinevirtual |
Reimplemented from SUIT_ViewModel.
Reimplemented in SPlot2d_Viewer.
|
protectedslot |
SLOT: called when action "Change background" is activated
References SUIT_ViewManager::getActiveView(), Plot2d_ViewWindow::getViewFrame(), SUIT_ViewModel::myViewManager, and Plot2d_ViewFrame::onChangeBackground().
|
protectedvirtualslot |
|
protectedvirtualslot |
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().
|
protectedslot |
SLOT: called when action "Dump view" is activated
References SUIT_ViewManager::getActiveView(), SUIT_ViewModel::myViewManager, and Plot2d_ViewWindow::onDumpView().
|
protectedslot |
SLOT: called when action "Show toolbar" is activated
References SUIT_ViewManager::getActiveView(), Plot2d_ViewWindow::getToolBar(), and SUIT_ViewModel::myViewManager.
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::setPrs | ( | Plot2d_Prs * | thePrs | ) |
Sets presentation of viewer
thePrs | - new presentation |
References clearPrs(), myAutoDel, myPrs, and Plot2d_Prs::setAutoDel().
|
virtual |
Sets view manager
mgr | - new view manager |
Reimplemented from SUIT_ViewModel.
References onCloneView(), and SUIT_ViewModel::setViewManager().
|
inlinestatic |
void Plot2d_Viewer::update | ( | ) |
Updates current viewer
References Plot2d_ViewFrame::Display(), Plot2d_ViewWindow::getViewFrame(), SUIT_ViewModel::getViewManager(), SUIT_ViewManager::getViews(), and myPrs.
|
signal |
|
private |
|
private |