mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Set background and frame color from the view plus update frame margins.
This commit is contained in:
@@ -583,12 +583,7 @@ void Rim3dView::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const
|
||||
}
|
||||
else if (changedField == &m_backgroundColor)
|
||||
{
|
||||
if (m_viewer != nullptr)
|
||||
{
|
||||
m_viewer->mainCamera()->viewport()->setClearColor(cvf::Color4f(backgroundColor()));
|
||||
}
|
||||
updateGridBoxData();
|
||||
updateAnnotationItems();
|
||||
this->applyBackgroundColor();
|
||||
}
|
||||
else if (changedField == &maximumFrameRate)
|
||||
{
|
||||
@@ -730,6 +725,19 @@ void Rim3dView::createHighlightAndGridBoxDisplayModel()
|
||||
m_viewer->showGridBox(m_showGridBox());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dView::applyBackgroundColor()
|
||||
{
|
||||
if (m_viewer != nullptr)
|
||||
{
|
||||
m_viewer->mainCamera()->viewport()->setClearColor(cvf::Color4f(backgroundColor()));
|
||||
}
|
||||
updateGridBoxData();
|
||||
updateAnnotationItems();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user