mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Support FlyToObject for fractures
This commit is contained in:
parent
e09ab3c3da
commit
674e27a4b3
@ -233,6 +233,21 @@ cvf::Vec3d RimFracture::fracturePosition() const
|
||||
return m_anchorPosition;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RimFracture::boundingBoxInDomainCoords()
|
||||
{
|
||||
cvf::BoundingBox bb;
|
||||
|
||||
for (auto coord : nodeCoords())
|
||||
{
|
||||
bb.add(coord);
|
||||
}
|
||||
|
||||
return bb;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Rim3dPropertiesInterface.h"
|
||||
#include "RimCheckableNamedObject.h"
|
||||
#include "RimUnitSystem.h"
|
||||
|
||||
@ -46,7 +47,7 @@ class RigMainGrid;
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimFracture : public RimCheckableNamedObject
|
||||
class RimFracture : public RimCheckableNamedObject, public Rim3dPropertiesInterface
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
@ -95,7 +96,6 @@ public:
|
||||
virtual void updateAzimuthFromFractureDefinition() = 0;
|
||||
virtual double wellAzimuthAtFracturePosition() = 0;
|
||||
|
||||
|
||||
protected:
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
||||
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||
@ -107,6 +107,7 @@ private:
|
||||
|
||||
QString createOneBasedIJK() const;
|
||||
|
||||
virtual cvf::BoundingBox boundingBoxInDomainCoords() override;
|
||||
|
||||
protected:
|
||||
caf::PdmPtrField<RimFractureTemplate*> m_fractureTemplate;
|
||||
|
Loading…
Reference in New Issue
Block a user