X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Factory.h;h=286ce0158c251a517f3e5d179da00480cb7ec4fe;hb=f71c1052b2ecc33488b2136947088777adc17584;hp=9b627b940650c0d30720e5c5b2a7e807621a43a8;hpb=150ef68b3ea2df3c2130a4f5ea8128ddb5c76048;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Factory.h b/src/SketcherPrs/SketcherPrs_Factory.h index 9b627b940..286ce0158 100644 --- a/src/SketcherPrs/SketcherPrs_Factory.h +++ b/src/SketcherPrs/SketcherPrs_Factory.h @@ -1,23 +1,38 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: SketcherPrs_Factory.h -// Created: 13 February 2015 -// Author: Vitaly SMETANNIKOV +// Copyright (C) 2014-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 +// 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); /** * Class which creates constraints presentations @@ -25,60 +40,107 @@ class SKETCHERPRS_EXPORT SketcherPrs_Factory { public: - /// Creates coincedent constraint presentation + /// Creates collinear constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane - GET_CONSTRAINT_PRS(coincidentConstraint) + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(collinearConstraint) - /// Creates coincedent parallel presentation + /// Creates parallel constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(parallelConstraint) /// Creates coincedent perpendicular presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(perpendicularConstraint) - /// Creates coincedent perpendicular presentation + /// Creates rigid constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(rigidConstraint) - /// Creates coincedent perpendicular presentation + /// Creates horizontal constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(horisontalConstraint) - /// Creates coincedent perpendicular presentation + /// Creates vertical constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(verticalConstraint) - /// Creates coincedent perpendicular presentation + /// Creates equal constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(equalConstraint) - /// Creates coincedent perpendicular presentation + /// Creates tangent constraiont presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(tangentConstraint) - /// Creates coincedent perpendicular presentation + /// Creates middle constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane - GET_CONSTRAINT_PRS(radiusConstraint) + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(middleConstraint) - /// Creates coincedent perpendicular presentation + /// Creates mirror constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(mirrorConstraint) + + /// Creates translate constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(translateConstraint) + + /// Creates rotate constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \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 coincedent perpendicular presentation + /// Creates angle constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane - GET_CONSTRAINT_PRS(mirrorConstraint) + /// \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