-// Copyright (C) 2014-2021 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
/// 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()
{
ConstructionPlugin_Point();
/// Customize presentation of the feature
- virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
- std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
+ virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs);
private:
std::shared_ptr<GeomAPI_Vertex> createByXYZ();