#2428 Fracture: Reorganize Fracture Colors tree item

This commit is contained in:
Rebecca Cox
2018-01-31 15:11:42 +01:00
parent d7fa97f052
commit e50f7bf66f
10 changed files with 78 additions and 59 deletions

View File

@@ -44,6 +44,12 @@ class RimStimPlanColors : public RimCheckableNamedObject
{
CAF_PDM_HEADER_INIT;
public:
enum StimPlanResultColorType
{
COLOR_INTERPOLATION,
SINGLE_ELEMENT_COLOR
};
public:
RimStimPlanColors();
virtual ~RimStimPlanColors();
@@ -53,11 +59,13 @@ public:
void setDefaultResultNameForStimPlan();
QString unit() const;
cvf::Color3f defaultColor() const;
bool showStimPlanMesh() const { return m_showStimPlanMesh; }
void loadDataAndUpdate();
void updateLegendData();
void updateStimPlanTemplates() const;
StimPlanResultColorType stimPlanResultColorType() const { return m_stimPlanCellVizMode(); };
protected:
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly) override;
@@ -75,5 +83,8 @@ private:
caf::PdmField<cvf::Color3f> m_defaultColor;
caf::PdmField<QString> m_resultNameAndUnit;
caf::PdmChildArrayField<RimLegendConfig*> m_legendConfigurations;
caf::PdmField<bool> m_showStimPlanMesh;
caf::PdmField<caf::AppEnum<StimPlanResultColorType>> m_stimPlanCellVizMode;
};