mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5779 Add const to access methods
This commit is contained in:
parent
46da0863b8
commit
9041bc80fa
@ -575,7 +575,8 @@ RimExtrudedCurveIntersection* RivExtrudedCurveIntersectionGeometryGenerator::int
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Mat4d RivExtrudedCurveIntersectionGeometryGenerator::unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat )
|
||||
cvf::Mat4d
|
||||
RivExtrudedCurveIntersectionGeometryGenerator::unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat ) const
|
||||
{
|
||||
cvf::Mat4d flattenMx = cvf::Mat4d::IDENTITY;
|
||||
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
|
||||
RimExtrudedCurveIntersection* intersection() const;
|
||||
|
||||
cvf::Mat4d unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat );
|
||||
cvf::Mat4d unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat ) const;
|
||||
|
||||
// GeomGen Interface
|
||||
bool isAnyGeometryPresent() const override;
|
||||
|
@ -710,7 +710,7 @@ const RimExtrudedCurveIntersection* RivExtrudedCurveIntersectionPartMgr::interse
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Mat4d RivExtrudedCurveIntersectionPartMgr::unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat )
|
||||
cvf::Mat4d RivExtrudedCurveIntersectionPartMgr::unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat ) const
|
||||
{
|
||||
return m_intersectionGenerator->unflattenTransformMatrix( intersectionPointFlat );
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
|
||||
const RimExtrudedCurveIntersection* intersection() const;
|
||||
|
||||
cvf::Mat4d unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat );
|
||||
cvf::Mat4d unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat ) const;
|
||||
|
||||
public:
|
||||
private:
|
||||
|
@ -356,9 +356,9 @@ void Rim2dIntersectionView::updateName()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::ref<RivExtrudedCurveIntersectionPartMgr> Rim2dIntersectionView::flatIntersectionPartMgr() const
|
||||
const RivExtrudedCurveIntersectionPartMgr* Rim2dIntersectionView::flatIntersectionPartMgr() const
|
||||
{
|
||||
return m_flatIntersectionPartMgr;
|
||||
return m_flatIntersectionPartMgr.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -374,9 +374,14 @@ bool Rim2dIntersectionView::isGridVisualizationMode() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Vec3d Rim2dIntersectionView::transformToUtm( const cvf::Vec3d& unscaledPointInFlatDomain ) const
|
||||
{
|
||||
cvf::Mat4d unflatXf = this->flatIntersectionPartMgr()->unflattenTransformMatrix( unscaledPointInFlatDomain );
|
||||
if ( m_flatIntersectionPartMgr.notNull() )
|
||||
{
|
||||
cvf::Mat4d unflatXf = flatIntersectionPartMgr()->unflattenTransformMatrix( unscaledPointInFlatDomain );
|
||||
|
||||
return unscaledPointInFlatDomain.getTransformedPoint( unflatXf );
|
||||
return unscaledPointInFlatDomain.getTransformedPoint( unflatXf );
|
||||
}
|
||||
|
||||
return unscaledPointInFlatDomain;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -65,8 +65,8 @@ public:
|
||||
void update3dInfo();
|
||||
void updateName();
|
||||
|
||||
cvf::ref<RivExtrudedCurveIntersectionPartMgr> flatIntersectionPartMgr() const;
|
||||
cvf::Vec3d transformToUtm( const cvf::Vec3d& unscaledPointInFlatDomain ) const;
|
||||
const RivExtrudedCurveIntersectionPartMgr* flatIntersectionPartMgr() const;
|
||||
cvf::Vec3d transformToUtm( const cvf::Vec3d& unscaledPointInFlatDomain ) const;
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> displayCoordTransform() const override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user