X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_ICustomPrs.h;h=4bd30427a579fcb571d8f065f49ac685c7073067;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=72c362d657e7e46787e30f3852cc878781de4e70;hpb=456f3a5a34c59422d6016cb68417515920ed06fd;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_ICustomPrs.h b/src/GeomAPI/GeomAPI_ICustomPrs.h index 72c362d65..4bd30427a 100644 --- a/src/GeomAPI/GeomAPI_ICustomPrs.h +++ b/src/GeomAPI/GeomAPI_ICustomPrs.h @@ -1,26 +1,46 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_ICustomPrs.hxx -// Created: 11 Dec 2014 -// Author: Vitaly SMETANNIKOV +// Copyright (C) 2014-2023 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" + +#include + +class ModelAPI_Result; -/** -* Interface of a class which can provide specific customization of -* object presentation -*/ +/** \class GeomAPI_ICustomPrs + * \ingroup DataModel + * \brief Interface of a class which can provide specific customization of + * object presentation + */ class GeomAPI_ICustomPrs { public: GEOMAPI_EXPORT virtual ~GeomAPI_ICustomPrs(); /// Modifies the given presentation in the custom way. - virtual void customisePresentation(AISObjectPtr thePrs) = 0; + virtual bool customisePresentation(std::shared_ptr theResult, + AISObjectPtr thePrs) = 0; }; typedef std::shared_ptr GeomCustomPrsPtr;