Version: 9.15.0
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
 
virtual void applyClippingPlanes (bool theUpdateHatch)
 

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, StatesMapInteractionStyle2StatesMap
 
typedef QMap< InteractionStyle, ButtonsMapInteractionStyle2ButtonsMap
 
- 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::Plot2d_Viewer ( bool  theAutoDel = false)

◆ ~Plot2d_Viewer()

Plot2d_Viewer::~Plot2d_Viewer ( )

Destructor

References clearPrs(), and myPrs.

Member Function Documentation

◆ clearPrs()

◆ contextMenuPopup()

void Plot2d_Viewer::contextMenuPopup ( QMenu thePopup)
virtual

◆ createView()

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.

◆ getPrs()

Plot2d_Prs* Plot2d_Viewer::getPrs ( ) const
inline

◆ getType()

virtual QString Plot2d_Viewer::getType ( ) const
inlinevirtual

Reimplemented from SUIT_ViewModel.

Reimplemented in SPlot2d_Viewer.

◆ onChangeBgColor

void Plot2d_Viewer::onChangeBgColor ( )
protectedslot

◆ onClicked

void Plot2d_Viewer::onClicked ( const QVariant &  ,
int   
)
protectedvirtualslot

◆ onCloneView

void Plot2d_Viewer::onCloneView ( Plot2d_ViewFrame clonedVF,
Plot2d_ViewFrame newVF 
)
protectedvirtualslot

◆ onDumpView

void Plot2d_Viewer::onDumpView ( )
protectedslot

SLOT: called when action "Dump view" is activated

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

◆ onShowToolbar

void Plot2d_Viewer::onShowToolbar ( )
protectedslot

SLOT: called when action "Show toolbar" is activated

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

◆ setAutoDel()

void Plot2d_Viewer::setAutoDel ( bool  theDel)

Sets "auto delete" state of of presentation

Parameters
theDel- new state

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

◆ setPrs()

void Plot2d_Viewer::setPrs ( Plot2d_Prs thePrs)

Sets presentation of viewer

Parameters
thePrs- new presentation

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

◆ setViewManager()

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().

◆ Type()

static QString Plot2d_Viewer::Type ( )
inlinestatic

◆ update()

◆ viewCloned

void Plot2d_Viewer::viewCloned ( SUIT_ViewWindow )
signal

Member Data Documentation

◆ myAutoDel

bool Plot2d_Viewer::myAutoDel
private

◆ myPrs

Plot2d_Prs* Plot2d_Viewer::myPrs
private

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