#2820 Legends : Support selection of legend items when clicking in 2D intersection view

This commit is contained in:
Magne Sjaastad
2018-04-30 14:47:44 +02:00
parent c989d4eb0d
commit ccac7643b8
3 changed files with 51 additions and 16 deletions

View File

@@ -32,6 +32,7 @@ class RivIntersectionPartMgr;
namespace cvf
{
class ModelBasicList;
class OverlayItem;
}
//==================================================================================================
@@ -69,6 +70,7 @@ public:
bool showDefiningPoints() const;
std::vector<RimLegendConfig*> legendConfigs() const override;
bool handleOverlayItemPicked(const cvf::OverlayItem* pickedOverlayItem) const;
protected:
void updateLegends() override;
@@ -108,4 +110,6 @@ protected:
cvf::ref<cvf::Transform> m_scaleTransform;
caf::PdmField<bool> m_showDefiningPoints;
caf::PdmPointer<caf::PdmObject> m_legendObjectToSelect;
};