1 #include "PartSetPlugin_Plugin.h"
2 #include "PartSetPlugin_Part.h"
3 #include <ModelAPI_PluginManager.h>
4 #include <ModelAPI_Document.h>
8 // the only created instance of this plugin
9 static PartSetPlugin_Plugin* MY_INSTANCE = new PartSetPlugin_Plugin();
11 PartSetPlugin_Plugin::PartSetPlugin_Plugin()
13 // register this plugin
14 ModelAPI_PluginManager::get()->registerPlugin(this);
17 shared_ptr<ModelAPI_Feature> PartSetPlugin_Plugin::createFeature(string theFeatureID)
19 if (theFeatureID == "Part") {
20 return shared_ptr<ModelAPI_Feature>(new PartSetPlugin_Part);
22 // feature of such kind is not found
23 return shared_ptr<ModelAPI_Feature>();