-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <pqTabbedMultiViewWidget.h>
#include <pqApplicationCore.h>
-
+#include "pqActiveObjects.h"
/*!
\class PVViewer_ViewWindow
myDesktop = theDesktop;
myModel = theModel;
setViewManager(myModel->getViewManager());
+ // This may improve synchronization between PV3DViewer and PVViewer
+ // but this make the PVViewer not active when ParaVIS is launched,
+ // which results in a new RenderView being created when a dataset is displayed.
+ // So we comment it for now.
+ //pqActiveObjects::instance().setActiveView(nullptr);
myPVMgr = qobject_cast<pqTabbedMultiViewWidget*>(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET"));
if (myPVMgr) {
SUIT_Application* app = SUIT_Session::session()->activeApplication();
SUIT_ViewWindow::setVisualParameters( parameters );
}
-
/*!
\brief Returns the ParaView multi-view manager previously set with setMultiViewManager()
*/