diff --git a/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.cpp b/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.cpp index 86841f57ae..10a8fa81f0 100644 --- a/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.cpp +++ b/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.cpp @@ -631,6 +631,17 @@ PdmUiSelectionVisualizer3d::~PdmUiSelectionVisualizer3d() } } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void PdmUiSelectionVisualizer3d::updateVisibleEditors() +{ + for (auto editor: m_active3DEditors) + { + if (editor) editor->updateUi(); + } +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.h b/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.h index 213862c1f6..46e77d1be6 100644 --- a/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.h +++ b/ApplicationCode/Commands/WellPathCommands/PointTangentManipulator/RicPointTangentManipulator.h @@ -229,6 +229,8 @@ class PdmUiSelectionVisualizer3d : public QObject, caf::SelectionChangedReceiver public: PdmUiSelectionVisualizer3d(caf::Viewer* ownerViewer); ~PdmUiSelectionVisualizer3d(); + + void updateVisibleEditors(); protected: virtual void onSelectionManagerSelectionChanged( const std::set& changedSelectionLevels ) override; diff --git a/ApplicationCode/UserInterface/RiuViewer.cpp b/ApplicationCode/UserInterface/RiuViewer.cpp index c00b795ad3..e52adb12f7 100644 --- a/ApplicationCode/UserInterface/RiuViewer.cpp +++ b/ApplicationCode/UserInterface/RiuViewer.cpp @@ -187,7 +187,7 @@ RiuViewer::RiuViewer(const QGLFormat& format, QWidget* parent) m_windowEdgeAxisOverlay = new RivWindowEdgeAxesOverlayItem(standardFont); m_showWindowEdgeAxes = false; - new caf::PdmUiSelectionVisualizer3d(this); + m_selectionVisualizerManager = new caf::PdmUiSelectionVisualizer3d(this); } //-------------------------------------------------------------------------------------------------- @@ -834,6 +834,8 @@ void RiuViewer::updateGridBoxData(double scaleZ, m_gridBoxGenerator->setGridBoxDomainCoordBoundingBox(domainCoordBoundingBox); m_gridBoxGenerator->createGridBoxParts(); + + m_selectionVisualizerManager->updateVisibleEditors(); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/UserInterface/RiuViewer.h b/ApplicationCode/UserInterface/RiuViewer.h index 247ce36b45..caaf8f2ff8 100644 --- a/ApplicationCode/UserInterface/RiuViewer.h +++ b/ApplicationCode/UserInterface/RiuViewer.h @@ -45,6 +45,7 @@ class QProgressBar; namespace caf { class TitledOverlayFrame; + class PdmUiSelectionVisualizer3d; } namespace cvf @@ -171,6 +172,8 @@ private: cvf::ref m_windowEdgeAxisOverlay; bool m_showWindowEdgeAxes; + caf::PdmUiSelectionVisualizer3d* m_selectionVisualizerManager; + cvf::Vec3d m_cursorPositionDomainCoords; bool m_isNavigationRotationEnabled; };