+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// Name : SketchAPI_Projection.h
// Purpose:
//
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