mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor WellLogPlot, RftPlot, PlotPlot and WellAllocationPlot
This commit is contained in:
@@ -31,11 +31,11 @@
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
#include <set>
|
||||
|
||||
class RimWellLogCurveCommonDataSource;
|
||||
class RiuWellLogPlot;
|
||||
class RimWellLogTrack;
|
||||
class RimWellRftPlot;
|
||||
class RimWellPltPlot;
|
||||
class QKeyEvent;
|
||||
|
||||
//==================================================================================================
|
||||
@@ -63,8 +63,11 @@ public:
|
||||
RimWellLogPlot();
|
||||
~RimWellLogPlot() override;
|
||||
|
||||
// Move-assignment operator
|
||||
RimWellLogPlot& operator=(RimWellLogPlot&& rhs);
|
||||
|
||||
QWidget* createPlotWidget();
|
||||
QWidget* viewWidget() override;
|
||||
QWidget* viewWidget() override;
|
||||
|
||||
void setDescription(const QString& description);
|
||||
QString description() const;
|
||||
@@ -88,11 +91,11 @@ public:
|
||||
|
||||
void addTrack(RimWellLogTrack* track);
|
||||
void insertTrack(RimWellLogTrack* track, size_t index);
|
||||
size_t trackCount() { return m_tracks.size();}
|
||||
size_t trackCount() const { return m_tracks.size();}
|
||||
|
||||
void removeTrack(RimWellLogTrack* track);
|
||||
size_t trackIndex(const RimWellLogTrack* track) const;
|
||||
RimWellLogTrack* trackByIndex(size_t index);
|
||||
RimWellLogTrack* trackByIndex(size_t index) const;
|
||||
size_t firstVisibleTrackIndex() const;
|
||||
std::vector<RimWellLogTrack*> tracks() const;
|
||||
void updateTracks(bool autoScaleXAxis = false);
|
||||
@@ -114,11 +117,6 @@ public:
|
||||
|
||||
QString asciiDataForPlotExport() const;
|
||||
|
||||
RimWellRftPlot* rftPlot() const;
|
||||
bool isRftPlotChild() const;
|
||||
RimWellPltPlot* pltPlot() const;
|
||||
bool isPltPlotChild() const;
|
||||
|
||||
void uiOrderingForDepthAxis(caf::PdmUiOrdering& uiOrdering);
|
||||
void uiOrderingForPlotSettings(caf::PdmUiOrdering& uiOrdering);
|
||||
|
||||
@@ -149,17 +147,18 @@ private:
|
||||
void recreateTrackPlots();
|
||||
void detachAllCurves();
|
||||
|
||||
void updateDisabledDepthTypes();
|
||||
virtual std::set<RiaDefines::DepthUnitType> availableDepthUnits() const;
|
||||
virtual std::set<RimWellLogPlot::DepthTypeEnum> availableDepthTypes() const;
|
||||
void updatePlotTitle();
|
||||
virtual void onDepthTypeChanged();
|
||||
|
||||
private:
|
||||
protected:
|
||||
caf::PdmField<QString> m_userName_OBSOLETE;
|
||||
caf::PdmChildField<RimWellLogCurveCommonDataSource*> m_commonDataSource;
|
||||
caf::PdmChildArrayField<RimWellLogTrack*> m_tracks;
|
||||
|
||||
caf::PdmField< caf::AppEnum<DepthTypeEnum>> m_depthType;
|
||||
caf::PdmField< caf::AppEnum<RiaDefines::DepthUnitType>> m_depthUnit;
|
||||
std::set<RimWellLogPlot::DepthTypeEnum> m_disabledDepthTypes;
|
||||
caf::PdmField<double> m_minVisibleDepth;
|
||||
caf::PdmField<double> m_maxVisibleDepth;
|
||||
caf::PdmField<AxisGridEnum> m_depthAxisGridVisibility;
|
||||
|
||||
Reference in New Issue
Block a user