mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3426 Fix missing update of well targets when view is scaled
This commit is contained in:
parent
d9e8537974
commit
e3c7b4ffa4
@ -631,6 +631,17 @@ PdmUiSelectionVisualizer3d::~PdmUiSelectionVisualizer3d()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiSelectionVisualizer3d::updateVisibleEditors()
|
||||
{
|
||||
for (auto editor: m_active3DEditors)
|
||||
{
|
||||
if (editor) editor->updateUi();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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<int>& changedSelectionLevels ) override;
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -45,6 +45,7 @@ class QProgressBar;
|
||||
namespace caf
|
||||
{
|
||||
class TitledOverlayFrame;
|
||||
class PdmUiSelectionVisualizer3d;
|
||||
}
|
||||
|
||||
namespace cvf
|
||||
@ -171,6 +172,8 @@ private:
|
||||
cvf::ref<RivWindowEdgeAxesOverlayItem> m_windowEdgeAxisOverlay;
|
||||
bool m_showWindowEdgeAxes;
|
||||
|
||||
caf::PdmUiSelectionVisualizer3d* m_selectionVisualizerManager;
|
||||
|
||||
cvf::Vec3d m_cursorPositionDomainCoords;
|
||||
bool m_isNavigationRotationEnabled;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user