1 #include "ConstructionPlugin_Plugin.h"
2 #include "ConstructionPlugin_Point.h"
4 #include <ModelAPI_Session.h>
5 #include <ModelAPI_Document.h>
9 // the only created instance of this plugin
10 static ConstructionPlugin_Plugin* MY_CONSTRUCTION_INSTANCE = new ConstructionPlugin_Plugin();
12 ConstructionPlugin_Plugin::ConstructionPlugin_Plugin()
14 // register this plugin
15 ModelAPI_Session::get()->registerPlugin(this);
18 FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID)
20 if (theFeatureID == CONSTRUCTION_POINT_KIND) {
21 return FeaturePtr(new ConstructionPlugin_Point);
23 // feature of such kind is not found