mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Setter methods for grid lines, plot title visibility and tick intervals
* Allows us to set them programatically.
This commit is contained in:
parent
e39a34cd0d
commit
ec63f0c28e
@ -855,6 +855,14 @@ bool RimWellLogPlot::isPlotTitleVisible() const
|
||||
return m_showTitleInPlot();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlot::setPlotTitleVisible(bool visible)
|
||||
{
|
||||
m_showTitleInPlot = visible;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -879,6 +887,14 @@ bool RimWellLogPlot::areTrackLegendsHorizontal() const
|
||||
return m_trackLegendsHorizontal;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlot::setTrackLegendsHorizontal(bool horizontal)
|
||||
{
|
||||
m_trackLegendsHorizontal = horizontal;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -71,9 +71,11 @@ public:
|
||||
|
||||
QString depthPlotTitle() const;
|
||||
bool isPlotTitleVisible() const;
|
||||
void setPlotTitleVisible(bool visible);
|
||||
bool areTrackLegendsVisible() const;
|
||||
void setTrackLegendsVisible(bool doShow);
|
||||
bool areTrackLegendsHorizontal() const;
|
||||
void setTrackLegendsHorizontal(bool horizontal);
|
||||
|
||||
void addTrack(RimWellLogTrack* track);
|
||||
void insertTrack(RimWellLogTrack* track, size_t index);
|
||||
|
@ -992,6 +992,34 @@ void RimWellLogTrack::updateEditors()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::setVisibleXRange(double minValue, double maxValue)
|
||||
{
|
||||
this->setAutoScaleXEnabled(false);
|
||||
m_visibleXRangeMin = minValue;
|
||||
m_visibleXRangeMax = maxValue;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::setTickIntervals(double majorTickInterval, double minorTickInterval)
|
||||
{
|
||||
m_explicitTickIntervals = true;
|
||||
m_majorTickInterval = majorTickInterval;
|
||||
m_minorTickInterval = minorTickInterval;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::enableGridLines(GridLines gridLines)
|
||||
{
|
||||
m_showXGridLines = gridLines;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -111,7 +111,9 @@ public:
|
||||
void applyXZoomFromVisibleRange();
|
||||
void calculateXZoomRange();
|
||||
void updateEditors();
|
||||
|
||||
void setVisibleXRange(double minValue, double maxValue);
|
||||
void setTickIntervals(double majorTickInterval, double minorTickInterval);
|
||||
void enableGridLines(GridLines gridLines);
|
||||
void setShowFormations(bool on);
|
||||
|
||||
RiuWellLogTrack* viewer();
|
||||
|
Loading…
Reference in New Issue
Block a user