#1243 - pre-proto - Adding visualization of polygon output for stimplan fractures

This commit is contained in:
astridkbjorke
2017-02-28 14:28:14 +01:00
parent 654df52512
commit c2c3145e5a
5 changed files with 97 additions and 6 deletions

View File

@@ -82,6 +82,7 @@ RimFracture::RimFracture(void)
CAF_PDM_InitField(&azimuth, "Azimuth", 0.0, "Azimuth", "", "", "");
azimuth.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());
CAF_PDM_InitField(&perforationLength, "PerforationLength", 0.0, "Perforation Length", "", "", "");
CAF_PDM_InitField(&showPolygonFractureOutline, "showPolygonFractureOutline", true, "Show Polygon Outline", "", "", "");
CAF_PDM_InitField(&stimPlanTimeIndexToPlot, "timeIndexToPlot", 0, "StimPlan Time Step", "", "", "");
@@ -179,7 +180,8 @@ void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
if (changedField == &azimuth ||
changedField == &m_fractureTemplate ||
changedField == &stimPlanTimeIndexToPlot ||
changedField == this->objectToggleField())
changedField == this->objectToggleField() ||
changedField == &showPolygonFractureOutline)
{
setRecomputeGeometryFlag();