1 // Copyright (C) 2014-2016 CEA/DEN, EDF R&D -->
3 // File: PrimitivesPlugin_Plugin.hxx
4 // Created: 29 Mar 2016
5 // Author: Clarisse Genrault (CEA)
7 #include <PrimitivesPlugin_Plugin.h>
9 #include <PrimitivesPlugin_Box.h>
11 #include <ModelAPI_Session.h>
21 // the only created instance of this plugin
22 static PrimitivesPlugin_Plugin* MY_PRIMITIVES_INSTANCE = new PrimitivesPlugin_Plugin();
24 PrimitivesPlugin_Plugin::PrimitivesPlugin_Plugin()
26 // register this plugin
27 ModelAPI_Session::get()->registerPlugin(this);
30 FeaturePtr PrimitivesPlugin_Plugin::createFeature(string theFeatureID)
32 if (theFeatureID == PrimitivesPlugin_Box::ID()) {
33 return FeaturePtr(new PrimitivesPlugin_Box);
35 // feature of such kind is not found