X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Factory.h;h=26430129bb5092d6d2608c90a45dee9f5ad1faa6;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=0c463e59e70649e0c0f39924dbad8d6e77fd95cc;hpb=cb0e2ac8865f08af9d9c5e10e88baf1ee6315be3;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Factory.h b/src/SketcherPrs/SketcherPrs_Factory.h index 0c463e59e..26430129b 100644 --- a/src/SketcherPrs/SketcherPrs_Factory.h +++ b/src/SketcherPrs/SketcherPrs_Factory.h @@ -1,22 +1,37 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: SketcherPrs_Factory.h -// Created: 13 February 2015 -// Author: Vitaly SMETANNIKOV +// 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 +// 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 SketcherPrs_Factory_H_ #define SketcherPrs_Factory_H_ #include "SketcherPrs.h" +#include #include +#include #include #include #define GET_CONSTRAINT_PRS(NAME) \ static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \ - const std::shared_ptr& thePlane, \ + SketchPlugin_Sketch* theSketcher, \ AISObjectPtr thePrevious); /** @@ -25,12 +40,6 @@ class SKETCHERPRS_EXPORT SketcherPrs_Factory { public: - /// Creates coincedent constraint presentation - /// \param theConstraint the constraint - /// \param thePlane the current sketch plane - /// \param thePrevious the previous presentation - GET_CONSTRAINT_PRS(coincidentConstraint) - /// Creates collinear constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane @@ -79,18 +88,6 @@ public: /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(tangentConstraint) - /// Creates radius dimension presentation - /// \param theConstraint the constraint - /// \param thePlane the current sketch plane - /// \param thePrevious the previous presentation - GET_CONSTRAINT_PRS(radiusConstraint) - - /// Creates length dimension presentation - /// \param theConstraint the constraint - /// \param thePlane the current sketch plane - /// \param thePrevious the previous presentation - GET_CONSTRAINT_PRS(lengthDimensionConstraint) - /// Creates middle constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane @@ -115,11 +112,35 @@ public: /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(rotateConstraint) + /// Creates coincedent constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(coincidentConstraint) + + /// Creates length dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(lengthDimensionConstraint) + /// Creates angle constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(angleConstraint) + + /// Creates radius dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(radiusConstraint) + + /// Creates radius dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(offsetObject) }; #endif