X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_AbstractDisplayer.h;h=7b3a11db9cb8e4137476448214caac1b36b1d2c8;hb=adf1c2cc49502c366a2637adfcda9c1c71b11887;hp=ec3f9ed4039579538c929f75fc5a1d050089df80;hpb=8c3bb27be497dd3fea078b26d8b801ed77579a47;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_AbstractDisplayer.h b/src/HYDROGUI/HYDROGUI_AbstractDisplayer.h index ec3f9ed4..7b3a11db 100644 --- a/src/HYDROGUI/HYDROGUI_AbstractDisplayer.h +++ b/src/HYDROGUI/HYDROGUI_AbstractDisplayer.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 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 @@ -6,7 +6,7 @@ // 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. +// 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 @@ -26,6 +26,7 @@ #include class HYDROGUI_Module; +class SUIT_ViewManager; /** * \class HYDROGUI_DataModel @@ -46,6 +47,20 @@ public: virtual ~HYDROGUI_AbstractDisplayer(); public: + /** + * \brief Check if this displayer is applicable to the given view manager. + * The view manager method getType is used. + * \param theViewerId viewer identifier + */ + virtual bool IsApplicable( const int theViewerId ) const; + + /** + * \brief Check if this displayer is applicable to the given view manager. + * The view manager method getType is used. + * \param theViewMgr the view manager to check + */ + virtual bool IsApplicable( const SUIT_ViewManager* theViewMgr ) const; + /** * \brief Update all objects in the viewer. * \param theViewerId viewer identifier @@ -65,6 +80,11 @@ public: virtual void SetToUpdate( const HYDROData_SequenceOfObjects& theObjs, const int theViewerId ) = 0; + /** + * \brief Get the applicable viewer type. + */ + virtual QString GetType() const = 0; + protected: /** * \brief Update and display all objects in the viewer. @@ -113,6 +133,7 @@ protected: const bool theIsForced, const bool theDoFitAll ) = 0; +protected: /** * \brief Purge all invalid objects in the viewer. * \param theViewerId viewer identifier