mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2496 Tensor vectors: Use dark magenta for principal 1 and move color code to RiaColorTables
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "RivTensorResultPartMgr.h"
|
||||
|
||||
#include "RiaColorTables.h"
|
||||
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimLegendConfig.h"
|
||||
@@ -382,15 +384,11 @@ void RivTensorResultPartMgr::createOneColorPerPrincipalScalarMapper(const RimTen
|
||||
arrowColors.resize(3);
|
||||
if (colorSet == RimTensorResults::MAGENTA_BROWN_BLACK)
|
||||
{
|
||||
arrowColors[0] = cvf::Color3::MAGENTA;
|
||||
arrowColors[1] = cvf::Color3::BROWN;
|
||||
arrowColors[2] = cvf::Color3::BLACK;
|
||||
arrowColors = RiaColorTables::tensorMagentaBrownBlackPaletteColors().color3ubArray();
|
||||
}
|
||||
else if (colorSet == RimTensorResults::WHITE_GRAY_BLACK)
|
||||
{
|
||||
arrowColors[0] = cvf::Color3::WHITE;
|
||||
arrowColors[1] = cvf::Color3::GRAY;
|
||||
arrowColors[2] = cvf::Color3::BLACK;
|
||||
arrowColors = RiaColorTables::tensorWhiteGrayBlackPaletteColors().color3ubArray();
|
||||
}
|
||||
|
||||
scalarMapper->setColors(arrowColors);
|
||||
|
||||
Reference in New Issue
Block a user