Salome HOME
Merge branch 'master' into cgt/devCEA
[modules/shaper.git] / src / ModelAPI / ModelAPI_Session.cpp
index 946096f28cd658795b5a0f204c3f3924e07247d5..b2f0eaf9b95cd362cec0def973df61d6a1eaa046 100644 (file)
 #include <ModelAPI_AttributeSelectionList.h>
 #include <ModelAPI_Events.h>
 #include <ModelAPI_Validator.h>
+#include <ModelAPI_ResultBody.h>
+#include <ModelAPI_ResultConstruction.h>
 
 #include <Config_ModuleReader.h>
+#include <Config_PropManager.h>
 
 #ifdef WIN32
 #include <windows.h>
@@ -37,8 +40,6 @@
 #include <dlfcn.h>
 #endif
 
-using namespace std;
-
 #ifdef _DEBUG
 #include <iostream>
 #endif
@@ -55,11 +56,23 @@ std::shared_ptr<ModelAPI_Session> ModelAPI_Session::get()
 {
   if (!MY_MANAGER) {  // import Model library that implements this interface of ModelAPI
     Config_ModuleReader::loadLibrary("Model");
+
+    Config_PropManager::registerProp("Visualization", "body_deflection",
+                                     "Body deflection coefficient",
+                                     Config_Prop::Double,
+                                     ModelAPI_ResultBody::DEFAULT_DEFLECTION());
+
+    Config_PropManager::registerProp("Visualization", "construction_deflection",
+                                     "Construction deflection coefficient",
+                                     Config_Prop::Double,
+                                     ModelAPI_ResultConstruction::DEFAULT_DEFLECTION());
+
   }
   return MY_MANAGER;
 }
 
-const ModelAPI_EventCreator* MY_API_CREATOR = 0;  ///< instance of the events creator, one pre application
+/// instance of the events creator, one pre application
+const ModelAPI_EventCreator* MY_API_CREATOR = 0;
 
 const ModelAPI_EventCreator* ModelAPI_EventCreator::get()
 {