Show well completion annotations in horizontal plots (#9193)

This commit is contained in:
Magne Sjaastad
2022-08-15 16:55:17 +02:00
committed by GitHub
parent c16264497d
commit 016216bdb9
9 changed files with 227 additions and 77 deletions

View File

@@ -60,37 +60,39 @@ public:
RiaDefines::WellPathComponentType componentType() const;
bool xValueRange( double* minimumValue, double* maximumValue ) const;
bool yValueRange( double* minimumValue, double* maximumValue ) const;
bool propertyValueRange( double* minimumValue, double* maximumValue ) const;
bool depthValueRange( double* minimumValue, double* maximumValue ) const;
void setShowLabel( bool showLabel );
void setDepthType( RimWellLogPlot::DepthTypeEnum depthType );
void setDepthOrientation( RimWellLogPlot::DepthOrientation depthOrientation );
void setContributeToLegend( bool contributeToLegend );
void setParentQwtPlotAndReplot( QwtPlot* plot );
void setParentPlotNoReplot( QwtPlot* plot );
void attachToQwt();
void detachFromQwt();
void reattachToQwt();
private:
void setParentQwtPlotAndReplot( QwtPlot* plot );
void calculateColumnOffsets( const RimWellPathComponentInterface* component );
void onLoadDataAndUpdate( bool updateParentPlot );
std::pair<double, double> depthsOfDepthType() const;
void addMarker( double posX,
double depth,
int size,
RiuPlotCurveSymbol::PointSymbolEnum symbolType,
cvf::Color4f baseColor,
const QString& label = QString( "" ),
Qt::Alignment labelAlignment = Qt::AlignVCenter | Qt::AlignRight,
Qt::Orientation labelOrientation = Qt::Horizontal,
bool drawLine = false,
bool contrastTextColor = false );
QwtPlotItem* createMarker( double posX,
void addMarker( double position,
double depth,
int size,
RiuPlotCurveSymbol::PointSymbolEnum symbolType,
cvf::Color4f baseColor,
const QString& label = QString( "" ),
Qt::Alignment labelAlignment = Qt::AlignVCenter | Qt::AlignRight,
Qt::Orientation labelOrientation = Qt::Horizontal,
bool drawLine = false,
bool contrastTextColor = false );
QwtPlotItem* createMarker( double position,
double depth,
int size,
RiuPlotCurveSymbol::PointSymbolEnum symbolType,
@@ -100,12 +102,13 @@ private:
Qt::Orientation labelOrientation = Qt::Horizontal,
bool drawLine = false,
bool contrastTextColor = false );
void addColumnFeature( double startX,
double endX,
double startDepth,
double endDepth,
cvf::Color4f baseColor,
Qt::BrushStyle brushStyle = Qt::SolidPattern );
void addColumnFeature( double startPosition,
double endPosition,
double startDepth,
double endDepth,
cvf::Color4f baseColor,
Qt::BrushStyle brushStyle = Qt::SolidPattern );
cvf::Color4f componentColor( float alpha = 1.0 ) const;
@@ -121,9 +124,10 @@ private:
double m_columnOffset;
double m_maxColumnOffset;
RimWellLogPlot::DepthTypeEnum m_depthType;
QPointer<QwtPlot> m_parentQwtPlot;
RiuQwtPlotItemGroup m_combinedComponentGroup;
RimWellLogPlot::DepthTypeEnum m_depthType;
RimWellLogPlot::DepthOrientation m_depthOrientation;
QPointer<QwtPlot> m_parentQwtPlot;
RiuQwtPlotItemGroup m_combinedComponentGroup;
bool m_showLabel;
};