X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Point.h;h=f845a54aed0b2d6409548a52988cd42330754f68;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=439805742a9959d329c71ed480c24d822bbc1051;hpb=36d8d2f185af24ba6c3c8d3855c74c5910288754;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Point.h b/src/ConstructionPlugin/ConstructionPlugin_Point.h index 439805742..f845a54ae 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Point.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Point.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,6 +39,21 @@ public: /// Returns the kind of a feature. CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind(); + /// Default color for a point. + inline static const std::string& DEFAULT_COLOR() + { + static const std::string POINT_COLOR("85,85,0"); + return POINT_COLOR; + } + + /// Default color property name. + inline static const std::string& COLOR_NAME() + { + static const std::string POINT_COLOR_NAME("construction_point_color"); + return POINT_COLOR_NAME; + } + + /// Point kind. inline static const std::string& ID() { @@ -328,8 +343,7 @@ public: ConstructionPlugin_Point(); /// Customize presentation of the feature - virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs, - std::shared_ptr theDefaultPrs); + virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs); private: std::shared_ptr createByXYZ();