#include <SPlot2d_ViewModel.h>

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_ViewWindow * | createView (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_Prs * | CreatePrs (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_Curve * | getCurveByIO (const Handle(SALOME_InteractiveObject)&, Plot2d_ViewFrame *=0) |
| Plot2d_ViewFrame * | getActiveViewFrame () |
| 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_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 |
| 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, 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 |
| SPlot2d_Viewer::SPlot2d_Viewer | ( | bool | theAutoDel = false | ) |
Constructor
|
virtual |
Destructor
|
signal |
|
virtual |
Create presentation by entry
Reimplemented from SALOME_View.
References Plot2d_Prs::AddObject(), getActiveViewFrame(), Plot2d_ViewFrame::getCurves(), SPlot2d_Curve::getOwners(), SPlot2d_Curve::hasIO(), and SPlot2d_Curve::hasTableIO().
|
virtual |
create SPlot2d_ViewWindow
Reimplemented from Plot2d_Viewer.
References Plot2d_ViewFrame::Display(), Plot2d_Viewer::getPrs(), Plot2d_ViewWindow::getViewFrame(), and Plot2d_ViewWindow::initLayout().
| 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().
|
virtual |
Display presentation
Reimplemented from SALOME_View.
References Plot2d_ViewFrame::Display(), and getActiveViewFrame().
| 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().
| 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().
|
virtual |
Erase presentation
Reimplemented from SALOME_View.
References Plot2d_ViewFrame::Erase(), and getActiveViewFrame().
|
virtual |
Removes all curves from the view
Reimplemented from SALOME_View.
References Plot2d_ViewFrame::EraseAll(), SALOME_View::EraseAll(), and getActiveViewFrame().
| Plot2d_ViewFrame * SPlot2d_Viewer::getActiveViewFrame | ( | ) |
Returns an active Plot2d ViewFrame or NULL
References SUIT_ViewManager::getActiveView(), Plot2d_ViewWindow::getViewFrame(), and SUIT_ViewModel::getViewManager().
| SPlot2d_Curve * SPlot2d_Viewer::getCurveByIO | ( | const Handle(SALOME_InteractiveObject)& | theIObject, |
| Plot2d_ViewFrame * | fr = 0 |
||
| ) |
| theIObject | - object |
| fr | - viewframe |
References getActiveViewFrame(), Plot2d_ViewFrame::getCurves(), and SPlot2d_Curve::hasIO().
|
inlinevirtual |
Reimplemented from Plot2d_Viewer.
References Plot2d_Viewer::Type().
|
virtual |
\Collect objects visible in viewer
| theList | - visible objects collection |
Reimplemented from SALOME_View.
References getActiveViewFrame(), Plot2d_ViewFrame::getCurves(), SPlot2d_Curve::hasIO(), and Plot2d_ViewFrame::isVisible().
| SPlot2d_Viewer::Handle | ( | SALOME_InteractiveObject | ) | const |
|
inline |
| 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().
|
virtual |
Returns true if interactive object is presented in the viewer and displayed
Reimplemented from SALOME_View.
References getActiveViewFrame(), getCurveByIO(), and Plot2d_ViewFrame::isVisible().
|
signal |
|
protectedvirtualslot |
SLOT: called when action "Legend Clicked" is activated. override "onLegendClicked" method from Plot2d_ViewModel.
References clearSelected(), getActiveViewFrame(), Plot2d_ViewFrame::getAnalyticalCurves(), Plot2d_ViewFrame::getCurves(), Plot2d_ViewFrame::getPlot(), Plot2d_ViewFrame::getPlotObject(), legendSelected(), myDeselectAnalytical, Plot2d_AnalyticalCurve::plotItem(), Plot2d_AnalyticalCurve::setSelected(), Plot2d_ViewFrame::updateAnalyticalCurves(), and Plot2d_ViewFrame::updateCurve().
| void SPlot2d_Viewer::rename | ( | const Handle(SALOME_InteractiveObject)& | IObject, |
| const QString & | newName, | ||
| Plot2d_ViewFrame * | fr = 0 |
||
| ) |
Renames curve if it is found
References getActiveViewFrame(), Plot2d_ViewFrame::getCurves(), SPlot2d_Curve::hasIO(), SPlot2d_Curve::hasTableIO(), Plot2d_Object::setName(), Plot2d_Object::setVerTitle(), and Plot2d_ViewFrame::updateTitles().
| void SPlot2d_Viewer::renameAll | ( | const Handle(SALOME_InteractiveObject)& | IObj, |
| const QString & | name | ||
| ) |
Renames all copies of object in all view windows
| IObj | - object to be renamed |
| name | - new name |
References Plot2d_ViewWindow::getViewFrame(), SUIT_ViewModel::getViewManager(), SUIT_ViewManager::getViews(), and rename().
|
virtual |
Redraws Viewer contents
Reimplemented from SALOME_View.
References getActiveViewFrame(), and Plot2d_ViewFrame::Repaint().
|
virtual |
References Plot2d_ViewFrame::deselectAnalyticalCurves(), getActiveViewFrame(), Plot2d_ViewFrame::getObjects(), Handle(), SPlot2d_Curve::hasIO(), SPlot2d_Histogram::hasIO(), Plot2d_Object::isSelected(), myDeselectAnalytical, Plot2d_ViewFrame::Repaint(), Plot2d_Object::setSelected(), Plot2d_ViewFrame::updateAnalyticalCurves(), and Plot2d_ViewFrame::updateObject().
|
inlinestatic |
|
inline |
|
private |