#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>
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