mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#1139) - pre-proto - Reading in stimplan XMLfile. Not tested for multiple properties / timesteps. (Also some code clean-up)
This commit is contained in:
@@ -81,55 +81,6 @@ caf::PdmFieldHandle* RimFractureTemplate::userDescriptionField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
{
|
||||
//
|
||||
// if (changedField == &halfLength || changedField == &height || changedField == &azimuthAngle || changedField == &perforationLength || changedField == &orientation)
|
||||
// {
|
||||
// //Changes to one of these parameters should change all fractures with this fracture template attached.
|
||||
// RimProject* proj;
|
||||
// this->firstAncestorOrThisOfType(proj);
|
||||
// if (proj)
|
||||
// {
|
||||
// //Regenerate geometry
|
||||
// std::vector<RimFracture*> fractures;
|
||||
// proj->descendantsIncludingThisOfType(fractures);
|
||||
//
|
||||
// for (RimFracture* fracture : fractures)
|
||||
// {
|
||||
// if (fracture->attachedFractureDefinition() == this)
|
||||
// {
|
||||
// if (changedField == &halfLength || changedField == &height)
|
||||
// {
|
||||
// fracture->setRecomputeGeometryFlag();
|
||||
// }
|
||||
//
|
||||
// if (changedField == &azimuthAngle && (abs(oldValue.toDouble() - fracture->azimuth()) < 1e-5))
|
||||
// {
|
||||
// fracture->azimuth = azimuthAngle;
|
||||
// fracture->setRecomputeGeometryFlag();
|
||||
// }
|
||||
//
|
||||
// if (changedField == &orientation)
|
||||
// {
|
||||
// fracture->setAzimuth();
|
||||
// if (orientation() == FracOrientationEnum::AZIMUTH)
|
||||
// {
|
||||
// fracture->azimuth = azimuthAngle;
|
||||
// }
|
||||
//
|
||||
// fracture->setRecomputeGeometryFlag();
|
||||
// }
|
||||
//
|
||||
// if (changedField == &perforationLength && (abs(oldValue.toDouble() - fracture->perforationLength()) < 1e-5))
|
||||
// {
|
||||
// fracture->perforationLength = perforationLength;
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// proj->createDisplayModelAndRedrawAllViews();
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user