mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
3D Cross Plot: Improve colors and symbols in legend
This commit is contained in:
1 parent
6b3808b696
commit
7e57ec39ea
10 files changed
+93
-15
No files matched your search
@@ -164,7 +164,7 @@ RiuQwtSymbol::PointSymbolEnum RiuQwtSymbol::cycledSymbolStyle(int indexLevel1, i
|
||||
std::vector<std::vector<PointSymbolEnum>> categorisedStyles =
|
||||
{
|
||||
{SYMBOL_ELLIPSE, SYMBOL_RECT, SYMBOL_DIAMOND},
|
||||
{SYMBOL_TRIANGLE, SYMBOL_DOWN_TRIANGLE, SYMBOL_UP_TRIANGLE},
|
||||
{SYMBOL_DOWN_TRIANGLE, SYMBOL_UP_TRIANGLE},
|
||||
{SYMBOL_LEFT_TRIANGLE, SYMBOL_RIGHT_TRIANGLE},
|
||||
{SYMBOL_LEFT_ANGLED_TRIANGLE, SYMBOL_RIGHT_ANGLED_TRIANGLE},
|
||||
{SYMBOL_CROSS, SYMBOL_XCROSS},
|
||||
@@ -177,6 +177,18 @@ RiuQwtSymbol::PointSymbolEnum RiuQwtSymbol::cycledSymbolStyle(int indexLevel1, i
|
||||
return categorisedStyles[level1Category][level2Category];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuQwtSymbol::PointSymbolEnum RiuQwtSymbol::cycledFilledSymbolStyle(int indexLevel)
|
||||
{
|
||||
std::vector<PointSymbolEnum> contrastingSymbols =
|
||||
{
|
||||
SYMBOL_ELLIPSE, SYMBOL_RECT };
|
||||
|
||||
return contrastingSymbols[indexLevel % (int)contrastingSymbols.size()];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -66,6 +66,7 @@ public:
|
||||
void setLabelPosition(LabelPosition labelPosition);
|
||||
|
||||
static PointSymbolEnum cycledSymbolStyle(int indexLevel1, int indexLevel2);
|
||||
static PointSymbolEnum cycledFilledSymbolStyle(int indexLevel);
|
||||
private:
|
||||
QRect labelBoundingRect(const QPainter* painter, const QRect& symbolRect) const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user