Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_Viewer Class Reference

#include <Plot2d_ViewModel.h>

Inheritance diagram for Plot2d_Viewer:
Inheritance graph

Signals

void viewCloned (SUIT_ViewWindow *)
 

Public Member Functions

 Plot2d_Viewer (bool theAutoDel=false)
 
 ~Plot2d_Viewer ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *theDesktop)
 
virtual QString getType () const
 
virtual void contextMenuPopup (QMenu *)
 
Plot2d_PrsgetPrs () 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_ViewManagergetViewManager () 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_PrsmyPrs
 
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_ViewManagermyViewManager
 

Constructor & Destructor Documentation

Plot2d_Viewer::Plot2d_Viewer ( bool  theAutoDel = false)
Plot2d_Viewer::~Plot2d_Viewer ( )

Destructor

References clearPrs(), and myPrs.

Member Function Documentation

void Plot2d_Viewer::contextMenuPopup ( QMenu thePopup)
virtual
SUIT_ViewWindow * Plot2d_Viewer::createView ( SUIT_Desktop theDesktop)
virtual

Create new instance of view window on desktop theDesktop.

Return values
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.

Plot2d_Prs* Plot2d_Viewer::getPrs ( ) const
inline
virtual QString Plot2d_Viewer::getType ( ) const
inlinevirtual

Reimplemented from SUIT_ViewModel.

Reimplemented in SPlot2d_Viewer.

void Plot2d_Viewer::onChangeBgColor ( )
protectedslot
void Plot2d_Viewer::onClicked ( const QVariant &  itemInfo,
int  index 
)
protectedvirtualslot
void Plot2d_Viewer::onCloneView ( Plot2d_ViewFrame clonedVF,
Plot2d_ViewFrame newVF 
)
protectedvirtualslot
void Plot2d_Viewer::onDumpView ( )
protectedslot

SLOT: called when action "Dump view" is activated

References SUIT_ViewManager::getActiveView(), SUIT_ViewModel::myViewManager, and Plot2d_ViewWindow::onDumpView().

void Plot2d_Viewer::onShowToolbar ( )
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

Parameters
theDel- new state

References myAutoDel, myPrs, and Plot2d_Prs::setAutoDel().

void Plot2d_Viewer::setPrs ( Plot2d_Prs thePrs)

Sets presentation of viewer

Parameters
thePrs- new presentation

References clearPrs(), myAutoDel, myPrs, and Plot2d_Prs::setAutoDel().

void Plot2d_Viewer::setViewManager ( SUIT_ViewManager mgr)
virtual

Sets view manager

Parameters
mgr- new view manager

Reimplemented from SUIT_ViewModel.

References onCloneView(), and SUIT_ViewModel::setViewManager().

static QString Plot2d_Viewer::Type ( )
inlinestatic
void Plot2d_Viewer::viewCloned ( SUIT_ViewWindow )
signal

Member Data Documentation

bool Plot2d_Viewer::myAutoDel
private
Plot2d_Prs* Plot2d_Viewer::myPrs
private

The documentation for this class was generated from the following files: