mirror of
				https://github.com/OPM/ResInsight.git
				synced 2025-02-25 18:55:39 -06:00 
			
		
		
		
	#3698 Scale bar. Enable check box for showing/hiding scale bar
This commit is contained in:
		| @@ -66,9 +66,6 @@ RimContourMapView::RimContourMapView() | ||||
|     m_contourMapProjectionPartMgr = new RivContourMapProjectionPartMgr(contourMapProjection(), this); | ||||
|  | ||||
|     ((RiuViewerToViewInterface*)this)->setCameraPosition(defaultViewMatrix); | ||||
|  | ||||
|     //CAF_PDM_InitFieldNoDefault(&m_scaleLegendConfig, "ScaleLegendConfig", "Scale Legend Config", "", "", ""); | ||||
|     //m_scaleLegendConfig = new RimScaleLegendConfig(); | ||||
| } | ||||
|  | ||||
| //-------------------------------------------------------------------------------------------------- | ||||
| @@ -307,8 +304,7 @@ void RimContourMapView::updateLegends() | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         //m_viewer->addColorLegendToBottomLeftCorner(m_scaleLegendConfig->titledOverlayFrame()); | ||||
|         m_viewer->showScaleLegend(true); | ||||
|         m_viewer->showScaleLegend(m_showScaleLegend()); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @@ -364,6 +360,11 @@ void RimContourMapView::fieldChangedByUi(const caf::PdmFieldHandle* changedField | ||||
|     { | ||||
|         scheduleCreateDisplayModelAndRedraw(); | ||||
|     } | ||||
|     else if (changedField == &m_showScaleLegend) | ||||
|     { | ||||
|         updateLegends(); | ||||
|         scheduleCreateDisplayModelAndRedraw(); | ||||
|     } | ||||
| } | ||||
|  | ||||
| //-------------------------------------------------------------------------------------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user