mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2428 Fracture: Reorganize Fracture Colors tree item
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user