mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1180 Use RiaColorTables and deleted RivColorTableArray
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaColorTables.h"
|
||||
|
||||
#include "RigMainGrid.h"
|
||||
|
||||
@@ -32,8 +33,6 @@
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "RivColorTableArray.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
#include "cafPdmFieldCvfMat4d.h"
|
||||
@@ -187,7 +186,7 @@ void RimFaultCollection::syncronizeFaults()
|
||||
{
|
||||
if (!(m_reservoirView && m_reservoirView->mainGrid()) ) return;
|
||||
|
||||
cvf::ref<cvf::Color3fArray> partColors = RivColorTableArray::colorTableArray();
|
||||
const caf::ColorTable& colorTable = RiaColorTables::faultsPaletteColors();
|
||||
|
||||
const cvf::Collection<RigFault> constRigFaults = m_reservoirView->mainGrid()->faults();
|
||||
|
||||
@@ -246,7 +245,7 @@ void RimFaultCollection::syncronizeFaults()
|
||||
if (!rimFault)
|
||||
{
|
||||
rimFault = new RimFault();
|
||||
rimFault->faultColor = partColors->get(fIdx % partColors->size());
|
||||
rimFault->faultColor = colorTable.cycledColor3f(fIdx);
|
||||
QString faultName = rigFaults[fIdx]->name();
|
||||
|
||||
if (faultName.startsWith(RimDefines::undefinedGridFaultName(), Qt::CaseInsensitive)
|
||||
|
||||
Reference in New Issue
Block a user