Salome HOME
Copyright update 2022
[modules/shaper.git] / src / PrimitivesPlugin / PrimitivesPlugin_Plugin.cpp
index 876f4dd9ad2ead88b2a668e02d5f26708cadaafd..dba0c41698434f19e2c6846277c0f15d11980d7a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+// 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
@@ -24,6 +24,7 @@
 #include <PrimitivesPlugin_Cylinder.h>
 #include <PrimitivesPlugin_Sphere.h>
 #include <PrimitivesPlugin_Torus.h>
+#include <PrimitivesPlugin_Tube.h>
 
 #include <ModelAPI_Session.h>
 
@@ -52,6 +53,8 @@ FeaturePtr PrimitivesPlugin_Plugin::createFeature(std::string theFeatureID)
     return FeaturePtr(new PrimitivesPlugin_Sphere);
   } else if (theFeatureID == PrimitivesPlugin_Torus::ID()) {
     return FeaturePtr(new PrimitivesPlugin_Torus);
+  } else if (theFeatureID == PrimitivesPlugin_Tube::ID()) {
+    return FeaturePtr(new PrimitivesPlugin_Tube);
   }
   // feature of such kind is not found
   return FeaturePtr();