X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintCoincidenceInternal.h;h=6bbcf21d4185865b8be6c06156a4d5437751180a;hb=e8b0963c64ad81be042fffe660ce874ae4d3abd5;hp=fac0060ebb86b2963ba8aeb8100bb30a6efafdcd;hpb=661aafa65364b86fdbfc9fde9462d31bdf3ae151;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintCoincidenceInternal.h b/src/SketchPlugin/SketchPlugin_ConstraintCoincidenceInternal.h index fac0060eb..6bbcf21d4 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintCoincidenceInternal.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintCoincidenceInternal.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019 CEA/DEN, EDF R&D +// Copyright (C) 2019-2020 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 @@ -30,7 +30,7 @@ class SketchPlugin_ConstraintCoincidenceInternal : public SketchPlugin_ConstraintCoincidence { public: - /// Coincidence constraint kind + /// \brief Coincidence constraint kind inline static const std::string& ID() { static const std::string MY_CONSTRAINT_COINCIDENCE_ID("SketchConstraintCoincidenceInternal"); @@ -43,7 +43,20 @@ class SketchPlugin_ConstraintCoincidenceInternal : public SketchPlugin_Constrain return MY_KIND; } - /// Returns the AIS preview + /// \brief Index of point in the array if the first attribute is an array + inline static const std::string& INDEX_ENTITY_A() + { + static const std::string MY_INDEX("ConstraintEntityA_Index"); + return MY_INDEX; + } + /// \brief Index of point in the array if the second attribute is an array + inline static const std::string& INDEX_ENTITY_B() + { + static const std::string MY_INDEX("ConstraintEntityB_Index"); + return MY_INDEX; + } + + /// \brief Returns the AIS preview SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious); /// \brief Creates a new part document if needed