mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Trigger redraw when fishbone collection checkbox is manipulated
This commit is contained in:
parent
276f81a20e
commit
a72658a88d
@ -96,7 +96,7 @@ RivWellPathPartMgr::~RivWellPathPartMgr()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RivWellPathPartMgr::appendFishbonesPartsToModel(cvf::ModelBasicList* model, caf::DisplayCoordTransform* displayCoordTransform, double characteristicCellSize)
|
void RivWellPathPartMgr::appendFishbonesPartsToModel(cvf::ModelBasicList* model, caf::DisplayCoordTransform* displayCoordTransform, double characteristicCellSize)
|
||||||
{
|
{
|
||||||
if (!m_rimWellPath) return;
|
if (!m_rimWellPath || !m_rimWellPath->fishbonesCollection()->isChecked()) return;
|
||||||
|
|
||||||
// This concept is taken from RivReservoirSimWellsPartMgr, and is required to be able to have
|
// This concept is taken from RivReservoirSimWellsPartMgr, and is required to be able to have
|
||||||
// separate part managers for each view
|
// separate part managers for each view
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include "RimFishboneWellPathCollection.h"
|
#include "RimFishboneWellPathCollection.h"
|
||||||
#include "RimFishbonesMultipleSubs.h"
|
#include "RimFishbonesMultipleSubs.h"
|
||||||
|
#include "RimProject.h"
|
||||||
|
|
||||||
|
|
||||||
CAF_PDM_SOURCE_INIT(RimFishbonesCollection, "FishbonesCollection");
|
CAF_PDM_SOURCE_INIT(RimFishbonesCollection, "FishbonesCollection");
|
||||||
@ -57,3 +58,13 @@ RimFishboneWellPathCollection* RimFishbonesCollection::wellPathCollection() cons
|
|||||||
return m_wellPathCollection();
|
return m_wellPathCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimFishbonesCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||||
|
{
|
||||||
|
RimProject* proj;
|
||||||
|
this->firstAncestorOrThisOfTypeAsserted(proj);
|
||||||
|
proj->createDisplayModelAndRedrawAllViews();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,9 @@ public:
|
|||||||
|
|
||||||
caf::PdmChildArrayField<RimFishbonesMultipleSubs*> fishbonesSubs;
|
caf::PdmChildArrayField<RimFishbonesMultipleSubs*> fishbonesSubs;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmChildField<RimFishboneWellPathCollection*> m_wellPathCollection;
|
caf::PdmChildField<RimFishboneWellPathCollection*> m_wellPathCollection;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user