Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / SketchAPI / SketchAPI_Projection.h
index cf18e20f3a0671d4b93c594781af709d1b6a43ee..3906f60b72b30482421629524adae28198e2913f 100644 (file)
@@ -1,3 +1,4 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 // Name   : SketchAPI_Projection.h
 // Purpose: 
 //
@@ -30,19 +31,38 @@ public:
   SKETCHAPI_EXPORT
   SketchAPI_Projection(const std::shared_ptr<ModelAPI_Feature> & theFeature,
                        const ModelHighAPI_Selection & theExternalFeature);
+  /// Constructor with values
+  SKETCHAPI_EXPORT
+  SketchAPI_Projection(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+                       const std::string & theExternalName);
   /// Destructor
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_Projection();
 
   INTERFACE_3(SketchPlugin_Projection::ID(),
-              externalFeature, SketchPlugin_Projection::EXTERNAL_FEATURE_ID(), ModelAPI_AttributeSelection, /** External feature */,
-              projectedFeature, SketchPlugin_Projection::EXTERNAL_FEATURE_ID(), ModelAPI_AttributeRefAttr, /** Projected feature */,
-              external, SketchPlugin_Projection::EXTERNAL_ID(), ModelAPI_AttributeSelection, /** External */
+              externalFeature, SketchPlugin_Projection::EXTERNAL_FEATURE_ID(), 
+              ModelAPI_AttributeSelection, /** External feature */,
+              projectedFeature, SketchPlugin_Projection::PROJECTED_FEATURE_ID(), 
+              ModelAPI_AttributeRefAttr, /** Projected feature */,
+              external, SketchPlugin_Projection::EXTERNAL_ID(), 
+              ModelAPI_AttributeSelection, /** External */
   )
 
   /// Set external feature
   SKETCHAPI_EXPORT
   void setExternalFeature(const ModelHighAPI_Selection & theExternalLine);
+
+  /// Set by external name
+  SKETCHAPI_EXPORT
+  void setByExternalName(const std::string & theExternalName);
+
+  /// Returns created feature
+  SKETCHAPI_EXPORT
+  std::shared_ptr<ModelHighAPI_Interface> createdFeature() const;
+
+  /// Dump wrapped feature
+  SKETCHAPI_EXPORT
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 //! Pointer on Projection object