Salome HOME
updated copyright message
[modules/shaper.git] / src / SketchAPI / SketchAPI_Offset.h
index 98412a8a20de55d8d96309ae8f3ccb5c0d2f90ef..667eff519388361953547043530122bc9f4a632b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// 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
@@ -50,13 +50,13 @@ public:
   SketchAPI_Offset(const std::shared_ptr<ModelAPI_Feature> & theFeature,
                    const std::list<std::shared_ptr<ModelAPI_Object> > & theObjects,
                    const ModelHighAPI_Double & theOffsetValue,
-                   bool theIsReversed,
-                   bool theIsAuxiliary);
+                   const bool theIsReversed = false,
+                   const std::string & theJointType = SketchPlugin_Offset::JOINT_KEEP_DISTANCE());
   /// Destructor
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_Offset();
 
-  INTERFACE_5(SketchPlugin_Offset::ID(),
+  INTERFACE_4(SketchPlugin_Offset::ID(),
 
               edgesList, SketchPlugin_Offset::EDGES_ID(),
               ModelAPI_AttributeRefList, /** Offset edges list */,
@@ -67,11 +67,8 @@ public:
               reversed, SketchPlugin_Offset::REVERSED_ID(),
               ModelAPI_AttributeBoolean, /** Negative value */,
 
-              auxiliary, SketchPlugin_Offset::AUXILIARY_ID(),
-              ModelAPI_AttributeBoolean, /** Auxiliary */,
-
-              createdList, SketchPlugin_Offset::CREATED_ID(),
-              ModelAPI_AttributeRefList, /** Created edges list */
+              joint, SketchPlugin_Offset::JOINT_ID(),
+              ModelAPI_AttributeString, /** Joint type */
               )
 
   /// List of created objects