Salome HOME
fixed bos#34401
[modules/shaper.git] / src / GDMLPlugin / GDMLPlugin_Plugin.cpp
index e4e0423e8475be7ad5827107b882cf384c40e8c5..b1c5e848ba5e45ffb4a0b71ee34d2e13dd1a2016 100644 (file)
@@ -1,14 +1,28 @@
-// Copyright (C) 2014-2016 CEA/DEN, EDF R&D
-
-// File:        GDMLPlugin_Plugin.cpp
-// Created:     23 Nov 2016
-// Author:      Clarisse Genrault (CEA)
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #include <ModelAPI_Session.h>
 
 #include <GDMLPlugin_Plugin.h>
 
 #include <GDMLPlugin_ConeSegment.h>
+#include <GDMLPlugin_Ellipsoid.h>
 
 // the only created instance of this plugin
 static GDMLPlugin_Plugin* MY_GDML_INSTANCE = new GDMLPlugin_Plugin();
@@ -23,7 +37,10 @@ FeaturePtr GDMLPlugin_Plugin::createFeature(std::string theFeatureID)
 {
   if (theFeatureID == GDMLPlugin_ConeSegment::ID()) {
     return FeaturePtr(new GDMLPlugin_ConeSegment);
+  } else if (theFeatureID == GDMLPlugin_Ellipsoid::ID()) {
+    return FeaturePtr(new GDMLPlugin_Ellipsoid);
   }
+
   // feature of such kind is not found
   return FeaturePtr();
 }