#include "ConstructionPlugin_Plugin.h"
#include "ConstructionPlugin_Point.h"
+#include "ConstructionPlugin_Axis.h"
+#include "ConstructionPlugin_Plane.h"
#include <ModelAPI_Session.h>
#include <ModelAPI_Document.h>
FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID)
{
- if (theFeatureID == CONSTRUCTION_POINT_KIND) {
+ if (theFeatureID == ConstructionPlugin_Point::ID()) {
return FeaturePtr(new ConstructionPlugin_Point);
}
+ else if (theFeatureID == ConstructionPlugin_Axis::ID()) {
+ return FeaturePtr(new ConstructionPlugin_Axis);
+ }
+ else if (theFeatureID == ConstructionPlugin_Plane::ID()) {
+ return FeaturePtr(new ConstructionPlugin_Plane);
+ }
// feature of such kind is not found
return FeaturePtr();
}