Salome HOME
#2027 Sketcher Trim Feature: 1. preview/selected attributes in trim; 2. avoid includi...
[modules/shaper.git] / src / SketchAPI / SketchAPI_SketchEntity.h
index fcc8639008b85b916dccf3e3249039ee7581297d..4322e7b149c3bb22b2c25649d9ae843646fe6ea8 100644 (file)
@@ -1,5 +1,6 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 // Name   : SketchAPI_SketchEntity.h
-// Purpose: 
+// Purpose:
 //
 // History:
 // 07/06/16 - Sergey POKHODENKO - Creation of the file
@@ -14,6 +15,8 @@
 
 #include <ModelHighAPI_Interface.h>
 #include <ModelHighAPI_Macro.h>
+
+class ModelAPI_Feature;
 //--------------------------------------------------------------------------------------
 /**\class SketchAPI_SketchEntity
  * \ingroup CPPHighAPI
@@ -40,6 +43,11 @@ public:
   /// Dump wrapped feature
   virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 
+  /// Convert list of features to list of appropriate wrappers
+  SKETCHAPI_EXPORT
+  static std::list<std::shared_ptr<SketchAPI_SketchEntity> >
+  wrap(const std::list<std::shared_ptr<ModelAPI_Feature> >& theFeatures);
+
 protected:
   std::shared_ptr<ModelAPI_AttributeBoolean> myAuxiliary;