mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2426 Add working legends to 2D intersection Views. Refactor to make legend update code work from a separate view with separate legend configs. Make sure legend and results are updated as the main view is updated. Adjust legendconfig->setTitle to use QString
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
|
||||
class RimIntersection;
|
||||
class RivIntersectionPartMgr;
|
||||
class RimLegendConfig;
|
||||
class RimTernaryLegendConfig;
|
||||
|
||||
namespace cvf
|
||||
{
|
||||
@@ -50,7 +52,7 @@ public:
|
||||
virtual void selectOverlayInfoConfig() override {}
|
||||
|
||||
virtual RimViewLinker* assosiatedViewLinker() const override { return nullptr; }
|
||||
virtual RimViewController* viewController() const override { return nullptr; }
|
||||
virtual RimViewController* viewController() const override { return nullptr; }
|
||||
|
||||
virtual bool isTimeStepDependentDataVisible() const override;
|
||||
|
||||
@@ -76,6 +78,11 @@ protected:
|
||||
bool hasResults();
|
||||
int timeStepCount();
|
||||
|
||||
void updateLegends();
|
||||
|
||||
caf::PdmChildField<RimLegendConfig*> m_legendConfig;
|
||||
caf::PdmChildField<RimTernaryLegendConfig*> m_ternaryLegendConfig;
|
||||
|
||||
caf::PdmPtrField<RimIntersection*> m_intersection;
|
||||
|
||||
cvf::ref<RivIntersectionPartMgr> m_flatIntersectionPartMgr;
|
||||
|
||||
Reference in New Issue
Block a user