Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #2876: Fix synchronization of objects display on module activation
[modules/shaper.git]
/
src
/
GDMLPlugin
/
GDMLPlugin_Plugin.cpp
diff --git
a/src/GDMLPlugin/GDMLPlugin_Plugin.cpp
b/src/GDMLPlugin/GDMLPlugin_Plugin.cpp
index 28ff7cea4aff80556a0cdac9893bfb1614e151fd..ba58aac346670b75c91b8497e0cc270be73eeb5a 100644
(file)
--- a/
src/GDMLPlugin/GDMLPlugin_Plugin.cpp
+++ b/
src/GDMLPlugin/GDMLPlugin_Plugin.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-201
9
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
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// 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
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <ModelAPI_Session.h>
//
#include <ModelAPI_Session.h>
@@
-23,6
+22,7
@@
#include <GDMLPlugin_Plugin.h>
#include <GDMLPlugin_ConeSegment.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();
// the only created instance of this plugin
static GDMLPlugin_Plugin* MY_GDML_INSTANCE = new GDMLPlugin_Plugin();
@@
-37,7
+37,10
@@
FeaturePtr GDMLPlugin_Plugin::createFeature(std::string theFeatureID)
{
if (theFeatureID == GDMLPlugin_ConeSegment::ID()) {
return FeaturePtr(new GDMLPlugin_ConeSegment);
{
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();
}
// feature of such kind is not found
return FeaturePtr();
}