]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_ViewerProxy.cpp
Salome HOME
Debug information to check selection with SHIFT: group, selection of edges on created...
[modules/shaper.git] / src / XGUI / XGUI_ViewerProxy.cpp
index aad07467f392ca64b492c1f251358eac385fb22c..a504708cf4fb4363b8e8ed45866cce1a245b2d16 100644 (file)
   #include <AppElements_Viewer.h>
 #endif
 
+#ifdef VINSPECTOR\r
+#include <VInspectorAPI_PluginMgr.h>\r
+#include <VInspectorAPI_Communicator.h>\r
+
+static bool FirstCall = true;\r
+
+#endif
+
 #include <ModuleBase_IViewWindow.h>
 
 #include <QEvent>
@@ -35,11 +43,22 @@ void XGUI_ViewerProxy::connectViewProxy()
 
 Handle(AIS_InteractiveContext) XGUI_ViewerProxy::AISContext() const
 {
+  Handle(AIS_InteractiveContext) aContext;
 #ifdef HAVE_SALOME
-  return myWorkshop->salomeConnector()->viewer()->AISContext();
+  aContext = myWorkshop->salomeConnector()->viewer()->AISContext();
 #else
-  return myWorkshop->mainWindow()->viewer()->AISContext();
+  aContext = myWorkshop->mainWindow()->viewer()->AISContext();
 #endif
+
+#ifdef VINSPECTOR\r
+  if (FirstCall) {\r
+    VInspectorAPI_PluginMgr::activateVInspector("VInspector.dll", aContext);
+    FirstCall = false;
+  }
+#endif
+
+
+  return aContext;
 }
 
 Handle(AIS_Trihedron) XGUI_ViewerProxy::trihedron() const