mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Create Grid plot collection and allow creation of new combination plots
This commit is contained in:
@@ -279,7 +279,7 @@ void RimWellLogTrack::setChecked( bool checked )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const QString RimWellLogTrack::description() const
|
||||
QString RimWellLogTrack::description() const
|
||||
{
|
||||
return m_description;
|
||||
}
|
||||
@@ -734,13 +734,14 @@ void RimWellLogTrack::updateXAxisAndGridTickIntervals()
|
||||
m_xAxisGridVisibility() & RimWellLogPlot::AXIS_GRID_MAJOR,
|
||||
m_xAxisGridVisibility() & RimWellLogPlot::AXIS_GRID_MINOR );
|
||||
|
||||
RimWellLogPlot* plot = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted( plot );
|
||||
|
||||
m_plotWidget->enableGridLines( QwtPlot::yLeft,
|
||||
plot->depthAxisGridLinesEnabled() & RimWellLogPlot::AXIS_GRID_MAJOR,
|
||||
plot->depthAxisGridLinesEnabled() & RimWellLogPlot::AXIS_GRID_MINOR );
|
||||
|
||||
RimWellLogPlot* wellLogPlot = nullptr;
|
||||
this->firstAncestorOrThisOfType( wellLogPlot );
|
||||
if ( wellLogPlot )
|
||||
{
|
||||
m_plotWidget->enableGridLines( QwtPlot::yLeft,
|
||||
wellLogPlot->depthAxisGridLinesEnabled() & RimWellLogPlot::AXIS_GRID_MAJOR,
|
||||
wellLogPlot->depthAxisGridLinesEnabled() & RimWellLogPlot::AXIS_GRID_MINOR );
|
||||
}
|
||||
m_plotWidget->scheduleReplot();
|
||||
}
|
||||
|
||||
@@ -1229,9 +1230,12 @@ void RimWellLogTrack::setXAxisTitle( const QString& text )
|
||||
QString RimWellLogTrack::yAxisTitle() const
|
||||
{
|
||||
RimWellLogPlot* parent;
|
||||
this->firstAncestorOrThisOfTypeAsserted( parent );
|
||||
|
||||
return parent->depthAxisTitle();
|
||||
this->firstAncestorOrThisOfType( parent );
|
||||
if ( parent )
|
||||
{
|
||||
return parent->depthAxisTitle();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1403,29 +1407,10 @@ void RimWellLogTrack::updateParentPlotZoom()
|
||||
void RimWellLogTrack::updateEditors()
|
||||
{
|
||||
this->updateConnectedEditors();
|
||||
RimPlotWindow* plotWindow = nullptr;
|
||||
|
||||
RimWellLogPlot* plot = nullptr;
|
||||
firstAncestorOrThisOfTypeAsserted( plot );
|
||||
plot->updateConnectedEditors();
|
||||
|
||||
RimWellRftPlot* rftPlot( nullptr );
|
||||
|
||||
firstAncestorOrThisOfType( rftPlot );
|
||||
|
||||
if ( rftPlot )
|
||||
{
|
||||
rftPlot->updateConnectedEditors();
|
||||
}
|
||||
else
|
||||
{
|
||||
RimWellPltPlot* pltPlot( nullptr );
|
||||
firstAncestorOrThisOfType( pltPlot );
|
||||
|
||||
if ( pltPlot )
|
||||
{
|
||||
pltPlot->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
firstAncestorOrThisOfTypeAsserted( plotWindow );
|
||||
plotWindow->updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1734,17 +1719,6 @@ void RimWellLogTrack::updateAxisScaleEngine()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellLogTrack::isFirstVisibleTrackInPlot() const
|
||||
{
|
||||
RimGridPlotWindow* plotWindow = nullptr;
|
||||
firstAncestorOrThisOfTypeAsserted( plotWindow );
|
||||
std::vector<RimPlotInterface*> visiblePlots = plotWindow->visiblePlots();
|
||||
return visiblePlots.empty() ? false : visiblePlots.front() == this;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user