Salome HOME
Copyright update 2021
[modules/shaper.git] / src / SketchSolver / PlaneGCSSolver / PlaneGCSSolver_FeatureBuilder.h
index d08d5ab26c3a4e21cef4dd8fe63cc9dd76505a26..c63a188fa6a2c08437332dcb1f5cf34dac4a49c8 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2017-20xx CEA/DEN, EDF R&D
-
-// File:    PlaneGCSSolver_FeatureBuilder.h
-// Created: 10 Feb 2017
-// Author:  Artem ZHIDKOV
+// Copyright (C) 2014-2021  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 PlaneGCSSolver_FeatureBuilder_H_
 #define PlaneGCSSolver_FeatureBuilder_H_
@@ -25,24 +38,16 @@ public:
   ///        Double attributes and 2D points are supported only.
   /// \param theAttribute [in]  attribute to create
   /// \return Created wrapper of the attribute applicable for specific solver
-  virtual EntityWrapperPtr createAttribute(AttributePtr theAttribute) override;
+  virtual EntityWrapperPtr createAttribute(AttributePtr theAttribute);
 
   /// \brief Converts SketchPlugin's feature to the solver's entity.
   ///        Result if based on the list of already converted attributes.
   /// \param theFeature [in]  feature to create
-  virtual EntityWrapperPtr createFeature(FeaturePtr theFeature) override;
-
-  /// \brief Return list of constraints necessary to fix feature's extra DoF
-  virtual const std::list<GCSConstraintPtr>& constraints() const override
-  { return myFeatureConstraints; }
+  virtual EntityWrapperPtr createFeature(FeaturePtr theFeature);
 
 private:
   /// list of converted attributes (will be cleared when the feature is created)
   AttributeEntityMap myAttributes;
-
-  /// constraints for the feature
-  /// (primarily used for constrain arcs, which have 9 parameters but 5 DoF)
-  std::list<GCSConstraintPtr> myFeatureConstraints;
 };
 
 #endif