X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_ICustomPrs.h;h=8a595d1028e2cdd8a5c9691962d1154be122d65b;hb=026f5b80ebe2c718246d80f9cb9bea3887406c12;hp=c398a33bce83e204803d9bfc3fa7dd6bfbba7e80;hpb=3d7368386762b057fff327d24d0079b4a73c3004;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_ICustomPrs.h b/src/GeomAPI/GeomAPI_ICustomPrs.h index c398a33bc..8a595d102 100644 --- a/src/GeomAPI/GeomAPI_ICustomPrs.h +++ b/src/GeomAPI/GeomAPI_ICustomPrs.h @@ -1,24 +1,49 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_ICustomPrs.hxx -// Created: 11 Dec 2014 -// Author: Vitaly SMETANNIKOV +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// 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. +// +// 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 +// #ifndef GeomAPI_ICustomPrs_H #define GeomAPI_ICustomPrs_H +#include "GeomAPI.h" +#include "GeomAPI_AISObject.h" #include "GeomAPI_AISObject.h" -/** -* Interface of a class which can provide specific customization of -* object presentation -*/ +#include + +class ModelAPI_Result; + +/** \class GeomAPI_ICustomPrs + * \ingroup DataModel + * \brief Interface of a class which can provide specific customization of + * object presentation + */ class GeomAPI_ICustomPrs { public: - virtual void customisePresentation(AISObjectPtr thePrs) = 0; + GEOMAPI_EXPORT virtual ~GeomAPI_ICustomPrs(); + + /// Modifies the given presentation in the custom way. + virtual bool customisePresentation(std::shared_ptr theResult, + AISObjectPtr thePrs, + std::shared_ptr theDefaultPrs) = 0; }; typedef std::shared_ptr GeomCustomPrsPtr; -#endif \ No newline at end of file +#endif