Version: 9.15.0
SPlot2d_Viewer Class Reference

#include <SPlot2d_ViewModel.h>

Inheritance diagram for SPlot2d_Viewer:
Inheritance graph

Signals

void legendSelected (const QString &)
 
void clearSelected ()
 
- Signals inherited from Plot2d_Viewer
void viewCloned (SUIT_ViewWindow *)
 

Public Member Functions

 SPlot2d_Viewer (bool theAutoDel=false)
 
virtual ~SPlot2d_Viewer ()
 
virtual QString getType () const
 
void highlight (const Handle(SALOME_InteractiveObject)&, bool, bool=true)
 
void unHighlightAll ()
 
void rename (const Handle(SALOME_InteractiveObject)&, const QString &, Plot2d_ViewFrame *=0)
 
void renameAll (const Handle(SALOME_InteractiveObject)&, const QString &)
 
bool isInViewer (const Handle(SALOME_InteractiveObject)&IObject)
 
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *theDesktop)
 
void Display (const Handle(SALOME_InteractiveObject)&IObject, bool update=true)
 
void DisplayOnly (const Handle(SALOME_InteractiveObject)&IObject)
 
void Erase (const Handle(SALOME_InteractiveObject)&IObject, bool update=true)
 
void Display (const SALOME_Prs2d *)
 
void Erase (const SALOME_Prs2d *, const bool=false)
 
virtual void EraseAll (SALOME_Displayer *, const bool=false)
 
virtual void Repaint ()
 
virtual SALOME_PrsCreatePrs (const char *entry=0)
 
virtual bool isVisible (const Handle(SALOME_InteractiveObject)&IObject)
 
virtual void GetVisible (SALOME_ListIO &theList)
 
virtual void setObjectsSelected (SALOME_ListIO &theList)
 
SPlot2d_CurvegetCurveByIO (const Handle(SALOME_InteractiveObject)&, Plot2d_ViewFrame *=0)
 
Plot2d_ViewFramegetActiveViewFrame ()
 
 Handle (SALOME_InteractiveObject) FindIObject(const char *Entry)
 
- Public Member Functions inherited from Plot2d_Viewer
 Plot2d_Viewer (bool theAutoDel=false)
 
 ~Plot2d_Viewer ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
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)
 
- Public Member Functions inherited from SALOME_View
virtual ~SALOME_View ()
 Destructor. More...
 
void Display (SALOME_Displayer *, const SALOME_Prs *)
 This Display() method should be called to display given presentation created anywhere by anybody. More...
 
void Erase (SALOME_Displayer *, const SALOME_Prs *, const bool=false)
 This Erase() method should be called to erase given presentation created anywhere by anybody. More...
 
void LocalSelection (const SALOME_Prs *, const int)
 This LocalSelection() method should be called to activate sub-shapes selection created anywhere by anybody. More...
 
void LocalSelection (const SALOME_Prs *, const std::list< int >)
 
virtual void Display (const SALOME_OCCPrs *)
 Display SALOME_OCCPrs presentation. More...
 
virtual void Display (const SALOME_VTKPrs *)
 Display SALOME_VTKPrs presentation. More...
 
virtual void Display (const SALOME_PV3DPrs *)
 Display SALOME_PV3DPrs presentation. More...
 
virtual void Erase (const SALOME_OCCPrs *, const bool=false)
 Erase SALOME_OCCPrs. More...
 
virtual void Erase (const SALOME_VTKPrs *, const bool=false)
 Erase SALOME_VTKPrs. More...
 
virtual void Erase (const SALOME_PV3DPrs *, const bool=false)
 Erase SALOME_PV3DPrs. More...
 
virtual void LocalSelection (const SALOME_OCCPrs *, const int)
 Local selection SALOME_OCCPrs. More...
 
virtual void LocalSelection (const SALOME_OCCPrs *, const std::list< int >)
 Multiple local selection SALOME_OCCPrs. More...
 
virtual void LocalSelection (const SALOME_VTKPrs *, const int)
 Local selection SALOME_VTKPrs. More...
 
virtual void LocalSelection (const SALOME_PV3DPrs *, const int)
 Local selection SALOME_PV3DPrs. More...
 
virtual void LocalSelection (const SALOME_Prs2d *, const int)
 Local selection SALOME_Prs2d. More...
 
virtual void GlobalSelection (const bool=false) const
 Deactivates selection of sub-shapes (must be redefined with OCC viewer) More...
 
virtual void BeforeDisplay (SALOME_Displayer *, const SALOME_Prs *)
 
virtual void AfterDisplay (SALOME_Displayer *, const SALOME_Prs *)
 
virtual void BeforeErase (SALOME_Displayer *, const SALOME_Prs *)
 
virtual void AfterErase (SALOME_Displayer *, const SALOME_Prs *)
 

Static Public Member Functions

static QString Type ()
 
- Static Public Member Functions inherited from Plot2d_Viewer
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

virtual void onClicked (const QVariant &, int)
 
- Protected Slots inherited from Plot2d_Viewer
void onChangeBgColor ()
 
void onDumpView ()
 
void onShowToolbar ()
 
virtual void onCloneView (Plot2d_ViewFrame *, Plot2d_ViewFrame *)
 
virtual void onClicked (const QVariant &, int)
 

Private Attributes

bool myDeselectAnalytical
 

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

◆ SPlot2d_Viewer()

SPlot2d_Viewer::SPlot2d_Viewer ( bool  theAutoDel = false)

Constructor

◆ ~SPlot2d_Viewer()

SPlot2d_Viewer::~SPlot2d_Viewer ( )
virtual

Destructor

Member Function Documentation

◆ clearSelected

void SPlot2d_Viewer::clearSelected ( )
signal

◆ CreatePrs()

SALOME_Prs * SPlot2d_Viewer::CreatePrs ( const char *  entry = 0)
virtual

◆ createView()

◆ Display() [1/2]

void SPlot2d_Viewer::Display ( const Handle(SALOME_InteractiveObject)&  IObject,
bool  update = true 
)

Actually this method just re-displays curves which refers to the <IObject>

References getActiveViewFrame(), getCurveByIO(), Plot2d_Viewer::update(), and Plot2d_ViewFrame::updateCurve().

◆ Display() [2/2]

void SPlot2d_Viewer::Display ( const SALOME_Prs2d prs)
virtual

Display presentation

Reimplemented from SALOME_View.

References Plot2d_ViewFrame::Display(), and getActiveViewFrame().

◆ DisplayOnly()

void SPlot2d_Viewer::DisplayOnly ( const Handle(SALOME_InteractiveObject)&  IObject)

Actually this method just erases all curves which don't refer to <IOBject> and re-displays curve which is of <IObject>

References Plot2d_ViewFrame::eraseCurve(), getActiveViewFrame(), getCurveByIO(), Plot2d_ViewFrame::getCurves(), Plot2d_ViewFrame::Repaint(), and Plot2d_ViewFrame::updateCurve().

◆ Erase() [1/2]

void SPlot2d_Viewer::Erase ( const Handle(SALOME_InteractiveObject)&  IObject,
bool  update = true 
)

Removes from the viewer the curves which refer to <IObject>

References Plot2d_ViewFrame::eraseCurve(), getActiveViewFrame(), getCurveByIO(), and Plot2d_Viewer::update().

◆ Erase() [2/2]

void SPlot2d_Viewer::Erase ( const SALOME_Prs2d prs,
const bool  = false 
)
virtual

Erase presentation

Reimplemented from SALOME_View.

References Plot2d_ViewFrame::Erase(), and getActiveViewFrame().

◆ EraseAll()

void SPlot2d_Viewer::EraseAll ( SALOME_Displayer d,
const bool  forced = false 
)
virtual

Removes all curves from the view

Reimplemented from SALOME_View.

References Plot2d_ViewFrame::EraseAll(), SALOME_View::EraseAll(), and getActiveViewFrame().

◆ getActiveViewFrame()

Plot2d_ViewFrame * SPlot2d_Viewer::getActiveViewFrame ( )

◆ getCurveByIO()

SPlot2d_Curve * SPlot2d_Viewer::getCurveByIO ( const Handle(SALOME_InteractiveObject)&  theIObject,
Plot2d_ViewFrame fr = 0 
)
Returns
curve by object and viewframe
Parameters
theIObject- object
fr- viewframe

References getActiveViewFrame(), Plot2d_ViewFrame::getCurves(), and SPlot2d_Curve::hasIO().

◆ getType()

virtual QString SPlot2d_Viewer::getType ( ) const
inlinevirtual

Reimplemented from Plot2d_Viewer.

References Plot2d_Viewer::Type().

◆ GetVisible()

void SPlot2d_Viewer::GetVisible ( SALOME_ListIO theList)
virtual

\Collect objects visible in viewer

Parameters
theList- visible objects collection

Reimplemented from SALOME_View.

References getActiveViewFrame(), Plot2d_ViewFrame::getCurves(), SPlot2d_Curve::hasIO(), and Plot2d_ViewFrame::isVisible().

◆ Handle()

SPlot2d_Viewer::Handle ( SALOME_InteractiveObject  ) const

◆ highlight()

void SPlot2d_Viewer::highlight ( const Handle(SALOME_InteractiveObject)&  ,
bool  ,
bool  = true 
)
inline

◆ isInViewer()

bool SPlot2d_Viewer::isInViewer ( const Handle(SALOME_InteractiveObject)&  IObject)

Returns true if interactive object is presented in the viewer

References getActiveViewFrame(), getCurveByIO(), Plot2d_ViewFrame::getCurves(), and SPlot2d_Curve::hasIO().

◆ isVisible()

bool SPlot2d_Viewer::isVisible ( const Handle(SALOME_InteractiveObject)&  IObject)
virtual

Returns true if interactive object is presented in the viewer and displayed

Reimplemented from SALOME_View.

References getActiveViewFrame(), getCurveByIO(), and Plot2d_ViewFrame::isVisible().

◆ legendSelected

void SPlot2d_Viewer::legendSelected ( const QString &  )
signal

◆ onClicked

void SPlot2d_Viewer::onClicked ( const QVariant &  itemInfo,
int   
)
protectedvirtualslot

◆ rename()

void SPlot2d_Viewer::rename ( const Handle(SALOME_InteractiveObject)&  IObject,
const QString &  newName,
Plot2d_ViewFrame fr = 0 
)

◆ renameAll()

void SPlot2d_Viewer::renameAll ( const Handle(SALOME_InteractiveObject)&  IObj,
const QString &  name 
)

Renames all copies of object in all view windows

Parameters
IObj- object to be renamed
name- new name

References Plot2d_ViewWindow::getViewFrame(), SUIT_ViewModel::getViewManager(), SUIT_ViewManager::getViews(), and rename().

◆ Repaint()

void SPlot2d_Viewer::Repaint ( )
virtual

Redraws Viewer contents

Reimplemented from SALOME_View.

References getActiveViewFrame(), and Plot2d_ViewFrame::Repaint().

◆ setObjectsSelected()

◆ Type()

static QString SPlot2d_Viewer::Type ( )
inlinestatic

◆ unHighlightAll()

void SPlot2d_Viewer::unHighlightAll ( )
inline

Member Data Documentation

◆ myDeselectAnalytical

bool SPlot2d_Viewer::myDeselectAnalytical
private

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