mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Initial WIP * Identical results with spreadsheet * Improved and more robust smoothing by filtering points first * Improved smoothing and more GUI * Include mixed-label for smoothing threshold * Implement WBS parameters track * Much better alignment of tracks without flickering * Don't replace user description when dragging and dropping tracks * Fix missing OBG and SH curves * Fix curve and track D&D * Make sure parameter curves aren't WBS curves
This commit is contained in:
@@ -362,6 +362,22 @@ std::vector<RimWellLogTrack*> RimWellLogPlot::tracks() const
|
||||
return m_tracks.childObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimWellLogTrack*> RimWellLogPlot::visibleTracks() const
|
||||
{
|
||||
std::vector<RimWellLogTrack*> tracks;
|
||||
for ( RimWellLogTrack* track : m_tracks() )
|
||||
{
|
||||
if ( track->isVisible() )
|
||||
{
|
||||
tracks.push_back( track );
|
||||
}
|
||||
}
|
||||
return tracks;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -835,7 +851,10 @@ void RimWellLogPlot::updateTrackNames()
|
||||
{
|
||||
for ( size_t tIdx = 0; tIdx < m_tracks.size(); tIdx++ )
|
||||
{
|
||||
m_tracks[tIdx]->setDescription( QString( "Track %1" ).arg( tIdx + 1 ) );
|
||||
QString description = m_tracks[tIdx]->description();
|
||||
QRegularExpression regexp( "Track \\d+" );
|
||||
description.replace( regexp, QString( "Track %1" ).arg( tIdx + 1 ) );
|
||||
m_tracks[tIdx]->setDescription( description );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user