mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8676 QtChart : Create curve legend widget for multiplot
This commit is contained in:
@@ -138,6 +138,62 @@ void RiuQtChartsPlotCurveSymbol::applyToScatterSeries( QtCharts::QScatterSeries*
|
||||
series->setColor( m_color );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QImage RiuQtChartsPlotCurveSymbol::image() const
|
||||
{
|
||||
if ( m_style == PointSymbolEnum::SYMBOL_NONE )
|
||||
{
|
||||
return QImage();
|
||||
}
|
||||
|
||||
if ( m_style == PointSymbolEnum::SYMBOL_RECT )
|
||||
{
|
||||
return createRectImage();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_ELLIPSE )
|
||||
{
|
||||
return createEllipseImage();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_CROSS )
|
||||
{
|
||||
return createCrossImage();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_XCROSS )
|
||||
{
|
||||
return createXCrossImage();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_DIAMOND )
|
||||
{
|
||||
return createDiamondImage();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_HEXAGON )
|
||||
{
|
||||
return createHexagonImage();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_STAR1 )
|
||||
{
|
||||
return createStar1Image();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_STAR1 )
|
||||
{
|
||||
return createStar1Image();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_STAR2 )
|
||||
{
|
||||
return createStar2Image();
|
||||
}
|
||||
else if ( m_style == PointSymbolEnum::SYMBOL_TRIANGLE || m_style == PointSymbolEnum::SYMBOL_UP_TRIANGLE ||
|
||||
m_style == PointSymbolEnum::SYMBOL_DOWN_TRIANGLE || m_style == PointSymbolEnum::SYMBOL_LEFT_TRIANGLE ||
|
||||
m_style == PointSymbolEnum::SYMBOL_RIGHT_TRIANGLE )
|
||||
{
|
||||
return createTriangleImage( m_style );
|
||||
}
|
||||
|
||||
return QImage();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user