#ifndef FeaturesPlugin_Extrusion_H_
#define FeaturesPlugin_Extrusion_H_
-#include "FeaturesPlugin.h"
+#include <FeaturesPlugin.h>
#include <ModelAPI_Feature.h>
-#include <ModelAPI_ResultBody.h>
-#include <GeomAlgoAPI_Extrusion.h>
#include <GeomAlgoAPI_Prism.h>
-#include <GeomAPI_Shape.h>
+
+class GeomAPI_Shape;
+class ModelAPI_ResultBody;
/**\class FeaturesPlugin_Extrusion
* \ingroup Plugins
return MY_TO_OBJECT_ID;
}
+ /// attribute name for creation method
+ inline static const std::string& CREATION_METHOD()
+ {
+ static const std::string METHOD_ATTR("CreationMethod");
+ return METHOD_ATTR;
+ }
+
/// attribute name of extrusion size
inline static const std::string& TO_SIZE_ID()
{
return MY_TO_OBJECT_ID;
}
+ /// attribute name of extrusion offset
+ inline static const std::string& TO_OFFSET_ID()
+ {
+ static const std::string MY_TO_OFFSET_ID("to_offset");
+ return MY_TO_OFFSET_ID;
+ }
+
/// attribute name of tool object
inline static const std::string& FROM_OBJECT_ID()
{
return MY_FROM_OBJECT_ID;
}
+ /// attribute name of extrusion offset
+ inline static const std::string& FROM_OFFSET_ID()
+ {
+ static const std::string MY_FROM_OFFSET_ID("from_offset");
+ return MY_FROM_OFFSET_ID;
+ }
+
/// Returns the kind of a feature
FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
{
FeaturesPlugin_Extrusion();
private:
/// Load Naming data structure of the feature to the document
- void LoadNamingDS(GeomAlgoAPI_Prism& theFeature, std::shared_ptr<ModelAPI_ResultBody> theResultBody,
- std::shared_ptr<GeomAPI_Shape> theBasis,
- std::shared_ptr<GeomAPI_Shape> theContext);
-
- /// Set an empty shape to the result of extrusion
- void clearResult();
+ void loadNamingDS(GeomAlgoAPI_Prism& thePrismAlgo,
+ std::shared_ptr<ModelAPI_ResultBody> theResultBody,
+ std::shared_ptr<GeomAPI_Shape> theBasis);
};
#endif