Salome HOME
Correct misprint
[modules/shaper.git] / src / SketchSolver / SolveSpaceSolver / SolveSpaceSolver_ConstraintType.h
index c9243e6657ae45b5b273bf8ceebe1931c16c23d1..9b12e2a3d4883cc3b8b9cb3fa5b77e11af304e3e 100644 (file)
@@ -1,15 +1,28 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:    SolveSpaceSolver_ConstraintType.h
-// Created: 8 Dec 2015
-// Author:  Artem ZHIDKOV
+// Copyright (C) 2014-2017  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<mailto:webmaster.salome@opencascade.com>
+//
 
 #ifndef SolveSpaceSolver_ConstraintType_H_
 #define SolveSpaceSolver_ConstraintType_H_
 
 #include <SketchSolver_IConstraintWrapper.h>
 #include <SolveSpaceSolver_Solver.h>
-#include <slvs.h>
 
 namespace ConstraintType
 {
@@ -20,6 +33,7 @@ namespace ConstraintType
     case CONSTRAINT_PT_PT_COINCIDENT:   return SLVS_C_POINTS_COINCIDENT;
     case CONSTRAINT_PT_ON_LINE:         return SLVS_C_PT_ON_LINE;
     case CONSTRAINT_PT_ON_CIRCLE:       return SLVS_C_PT_ON_CIRCLE;
+    case CONSTRAINT_MIDDLE_POINT:       return SLVS_C_AT_MIDPOINT;
     case CONSTRAINT_PT_PT_DISTANCE:     return SLVS_C_PT_PT_DISTANCE;
     case CONSTRAINT_PT_LINE_DISTANCE:   return SLVS_C_PT_LINE_DISTANCE;
     case CONSTRAINT_ANGLE:              return SLVS_C_ANGLE;
@@ -49,6 +63,7 @@ namespace ConstraintType
     case SLVS_C_POINTS_COINCIDENT:    return CONSTRAINT_PT_PT_COINCIDENT;
     case SLVS_C_PT_ON_LINE:           return CONSTRAINT_PT_ON_LINE;
     case SLVS_C_PT_ON_CIRCLE:         return CONSTRAINT_PT_ON_CIRCLE;
+    case SLVS_C_AT_MIDPOINT:          return CONSTRAINT_MIDDLE_POINT;
     case SLVS_C_PT_PT_DISTANCE:       return CONSTRAINT_PT_PT_DISTANCE;
     case SLVS_C_PT_LINE_DISTANCE:     return CONSTRAINT_PT_LINE_DISTANCE;
     case SLVS_C_EQUAL_LENGTH_LINES:   return CONSTRAINT_EQUAL_LINES;