Added control flags to fault collection

This commit is contained in:
Magne Sjaastad 2013-12-06 09:08:45 +01:00
parent 6179d84b87
commit d515d0342b
2 changed files with 9 additions and 1 deletions

View File

@ -54,6 +54,9 @@ RimFaultCollection::RimFaultCollection()
CAF_PDM_InitField(&showGeometryDetectedFaults, "ShowGeometryDetectedFaults", true, "Show geometry detected faults", "", "", "");
CAF_PDM_InitField(&showFaultFaces, "ShowFaultFaces", true, "Show faults faces", "", "", "");
CAF_PDM_InitField(&showOppositeFaultFaces, "ShowOppositeFaultFaces", true, "Show opposite fault faces", "", "", "");
CAF_PDM_InitField(&showFaultLabel, "ShowFaultLabel", true, "Show fault labels", "", "", "");
cvf::Color3f defWellLabelColor = RiaApplication::instance()->preferences()->defaultWellLabelColor();
CAF_PDM_InitField(&faultLabelColor, "FaultLabelColor", defWellLabelColor, "Fault label color", "", "", "");
@ -87,7 +90,9 @@ void RimFaultCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedFiel
}
}
if (&showGeometryDetectedFaults == changedField)
if (&showGeometryDetectedFaults == changedField ||
&showFaultFaces == changedField ||
&showOppositeFaultFaces == changedField)
{
if (m_reservoirView)
{

View File

@ -49,6 +49,9 @@ public:
caf::PdmField<bool> showGeometryDetectedFaults;
caf::PdmField<bool> showFaultFaces;
caf::PdmField<bool> showOppositeFaultFaces;
caf::PdmField<bool> showFaultLabel;
caf::PdmField<cvf::Color3f> faultLabelColor;