X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IViewer.h;h=d3028d42d4f0a5c60e6aa32dcf46d87d88692b05;hb=031fb5e7c551e695afa72a9de299f118a40d8d88;hp=6858fbefc099ee1e140d62cf06b200cbbd828ac6;hpb=e30796dab1aa68c01201b2b89d4292d3fcbbc4d4;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IViewer.h b/src/ModuleBase/ModuleBase_IViewer.h index 6858fbefc..d3028d42d 100644 --- a/src/ModuleBase/ModuleBase_IViewer.h +++ b/src/ModuleBase/ModuleBase_IViewer.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + #ifndef ModuleBase_IViewer_H #define ModuleBase_IViewer_H @@ -9,6 +11,7 @@ class QMouseEvent; class QKeyEvent; class QContextMenuEvent; +class ModuleBase_IViewWindow; /** * A Base object for definition of connector object to @@ -53,19 +56,29 @@ Q_OBJECT /// \param theZ the Z projection value virtual void setViewProjection(double theX, double theY, double theZ) = 0; + /// Add selection filter to the viewer + virtual void addSelectionFilter(const Handle(SelectMgr_Filter)& theFilter) = 0; + + /// Remove selection filter from the viewer + virtual void removeSelectionFilter(const Handle(SelectMgr_Filter)& theFilter) = 0; + + /// Remove all selection filters from the viewer + virtual void clearSelectionFilters() = 0; signals: void lastViewClosed(); - void tryCloseView(); - void deleteView(); - void viewCreated(); - void mousePress(QMouseEvent* theEvent); - void mouseRelease(QMouseEvent* theEvent); - void mouseDoubleClick(QMouseEvent* theEvent); - void mouseMove(QMouseEvent* theEvent); - void keyPress(QKeyEvent* theEvent); - void keyRelease(QKeyEvent* theEvent); - void activated(); + void tryCloseView(ModuleBase_IViewWindow* theWnd); + void deleteView(ModuleBase_IViewWindow* theWnd); + void viewCreated(ModuleBase_IViewWindow* theWnd); + void activated(ModuleBase_IViewWindow* theWnd); + + void mousePress(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); + void mouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); + void mouseDoubleClick(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); + void mouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); + + void keyPress(ModuleBase_IViewWindow* theWnd, QKeyEvent* theEvent); + void keyRelease(ModuleBase_IViewWindow* theWnd, QKeyEvent* theEvent); void selectionChanged(); void contextMenuRequested(QContextMenuEvent*);