(#829) Moved RimLegendConfig as a private field to be able to switch between standard and single var result color

This commit is contained in:
Magne Sjaastad
2016-09-07 10:46:47 +02:00
parent f1c214c1d7
commit f404299702
3 changed files with 30 additions and 13 deletions

View File

@@ -70,7 +70,6 @@ public:
caf::PdmField<bool> enableCellEdgeColors;
caf::PdmChildField<RimLegendConfig*> legendConfig;
double ignoredScalarValue() { return m_ignoredResultScalar; }
void gridScalarIndices(size_t resultIndices[6]);
void cellEdgeMetaData(std::vector<RimCellEdgeMetaData>* metaData);
@@ -79,6 +78,7 @@ public:
bool hasResult() const;
bool hasCategoryResult() const;
RimEclipseCellColors* singleVarEdgeResultColors();
RimLegendConfig* legendConfig();
void minMaxCellEdgeValues(double& min, double& max);
void posNegClosestToZero(double& pos, double& neg);
@@ -113,6 +113,8 @@ private:
bool isUsingSingleVariable() const;
static QString singleVarEdgeResultUiText() { return "Custom Edge Result"; }
caf::PdmChildField<RimLegendConfig*> m_legendConfig;
caf::PdmChildField<RimEclipseCellColors*> m_singleVarEdgeResultColors;
};