#1173 Hide legend in the Well Log part of the Well Alloc Plot by default

This commit is contained in:
Jacob Støren 2017-02-10 11:33:44 +01:00
parent 3e7413831a
commit 2e806e0cb7
3 changed files with 10 additions and 0 deletions

View File

@ -75,6 +75,7 @@ RimWellAllocationPlot::RimWellAllocationPlot()
m_accumulatedWellFlowPlot = new RimWellLogPlot; m_accumulatedWellFlowPlot = new RimWellLogPlot;
m_accumulatedWellFlowPlot->setDepthUnit(RimDefines::UNIT_NONE); m_accumulatedWellFlowPlot->setDepthUnit(RimDefines::UNIT_NONE);
m_accumulatedWellFlowPlot->setDepthType(RimWellLogPlot::CONNECTION_NUMBER); m_accumulatedWellFlowPlot->setDepthType(RimWellLogPlot::CONNECTION_NUMBER);
m_accumulatedWellFlowPlot->setTrackLegendsVisible(false);
CAF_PDM_InitFieldNoDefault(&m_totalWellAllocationPlot, "TotalWellFlowPlot", "Total Well Flow", "", "", ""); CAF_PDM_InitFieldNoDefault(&m_totalWellAllocationPlot, "TotalWellFlowPlot", "Total Well Flow", "", "", "");
m_totalWellAllocationPlot.uiCapability()->setUiHidden(true); m_totalWellAllocationPlot.uiCapability()->setUiHidden(true);

View File

@ -637,6 +637,14 @@ bool RimWellLogPlot::isTrackLegendsVisible() const
return m_showTrackLegends(); return m_showTrackLegends();
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlot::setTrackLegendsVisible(bool doShow)
{
m_showTrackLegends = doShow;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -69,6 +69,7 @@ public:
QString depthPlotTitle() const; QString depthPlotTitle() const;
bool isTrackLegendsVisible() const; bool isTrackLegendsVisible() const;
void setTrackLegendsVisible(bool doShow);
void addTrack(RimWellLogTrack* track); void addTrack(RimWellLogTrack* track);
void insertTrack(RimWellLogTrack* track, size_t index); void insertTrack(RimWellLogTrack* track, size_t index);