1 #include "PartSetPlugin_Plugin.h"
2 #include "PartSetPlugin_Part.h"
3 #include "PartSetPlugin_Point.h"
4 #include <ModelAPI_PluginManager.h>
5 #include <ModelAPI_Document.h>
9 // the only created instance of this plugin
10 static PartSetPlugin_Plugin* MY_INSTANCE = new PartSetPlugin_Plugin();
12 PartSetPlugin_Plugin::PartSetPlugin_Plugin()
14 // register this plugin
15 ModelAPI_PluginManager::get()->registerPlugin(this);
18 shared_ptr<ModelAPI_Feature> PartSetPlugin_Plugin::createFeature(string theFeatureID)
20 if (theFeatureID == "Part") {
21 return shared_ptr<ModelAPI_Feature>(new PartSetPlugin_Part);
22 } else if (theFeatureID == "Point") {
23 return shared_ptr<ModelAPI_Feature>(new PartSetPlugin_Point);
25 // feature of such kind is not found
26 return shared_ptr<ModelAPI_Feature>();