X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSPlot2d%2FSPlot2d_ViewModel.h;h=ed19dd23304c8cb2c37f231b9d2b5533efe5b7c9;hb=2400f3659b65727d5a776dccd3d5dd506d755a88;hp=2fc3491e029209c700ab003d8eada2b5b97ffcab;hpb=1c889394b028b786898a995d38c07c8f3d564837;p=modules%2Fgui.git diff --git a/src/SPlot2d/SPlot2d_ViewModel.h b/src/SPlot2d/SPlot2d_ViewModel.h index 2fc3491e0..ed19dd233 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.h +++ b/src/SPlot2d/SPlot2d_ViewModel.h @@ -1,24 +1,25 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. // -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // File : SPlot2d_ViewModel.h // Author : Sergey RUIN // Module : SUIT @@ -26,14 +27,15 @@ #ifndef SPlot2d_ViewModel_H #define SPlot2d_ViewModel_H -#include "SPlot2d.h" - -#include "SALOME_Prs.h" +#include "SPlot2d.h" +#include "SPlot2d_Curve.h" #include "Plot2d_ViewModel.h" -#include "SALOME_InteractiveObject.hxx" #include "Plot2d_ViewFrame.h" #include "Plot2d_ViewWindow.h" -#include "SPlot2d_Curve.h" + +#include +#include +#include class SPLOT2D_EXPORT SPlot2d_Viewer : public Plot2d_Viewer, public SALOME_View { @@ -58,7 +60,7 @@ public: virtual SUIT_ViewWindow* createView(SUIT_Desktop* theDesktop); - /* display */ + /* display */ 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 ); @@ -66,12 +68,14 @@ public: /* Reimplemented from SALOME_View */ void Display( const SALOME_Prs2d* ); void Erase( const SALOME_Prs2d*, const bool = false ); - virtual void EraseAll(const bool = false); + virtual void EraseAll(SALOME_Displayer*, const bool = false); virtual void Repaint(); virtual SALOME_Prs* CreatePrs( const char* entry = 0 ); - virtual void BeforeDisplay( SALOME_Displayer* d ); - virtual void AfterDisplay ( SALOME_Displayer* d ); + virtual bool isVisible( const Handle(SALOME_InteractiveObject)& IObject ); + virtual void GetVisible( SALOME_ListIO& theList ); + + virtual void setObjectsSelected( SALOME_ListIO& theList ); /* operations */ @@ -80,10 +84,13 @@ public: Handle(SALOME_InteractiveObject) FindIObject( const char* Entry ); protected slots: - virtual void onLegendClicked( QwtPlotItem* plotItem ); + virtual void onClicked( const QVariant&, int ); signals: void legendSelected( const QString& ); + void clearSelected(); +private: + bool myDeselectAnalytical; };