Skip to content

Commit

Permalink
Simplify use of RimContourMapProjection
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 13, 2025
1 parent 36c92dc commit 4b2798e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
#include "RigContourMapProjection.h"

#include "RimContourMapProjection.h"
#include "RimEclipseContourMapProjection.h"
#include "RimEclipseContourMapView.h"
#include "RimGeoMechContourMapProjection.h"
#include "RimGeoMechContourMapView.h"
#include "RimProject.h"
#include "RimViewWindow.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class RicExportContourMapToTextFeature : public caf::CmdFeature, public RicfComm
RicExportContourMapToTextFeature();
caf::PdmScriptResponse execute() override;

static std::pair<RimEclipseContourMapView*, RimGeoMechContourMapView*> findContourMapView();

protected:
bool isCommandEnabled() const override;
void onActionTriggered( bool isChecked ) override;
Expand All @@ -57,9 +59,6 @@ class RicExportContourMapToTextFeature : public caf::CmdFeature, public RicfComm
const QString& undefinedValueLabel,
bool excludeUndefinedValues );

private:
static std::pair<RimEclipseContourMapView*, RimGeoMechContourMapView*> findContourMapView();

private:
caf::PdmField<QString> m_exportFileName;
caf::PdmField<bool> m_exportLocalCoordinates;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RimGeoMechContourMapView::RimGeoMechContourMapView()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimGeoMechContourMapProjection* RimGeoMechContourMapView::contourMapProjection() const
RimContourMapProjection* RimGeoMechContourMapView::contourMapProjection() const
{
return m_contourMapProjection().p();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

enum class RimLegendConfigChangeType;
class RimGeoMechContourMapProjection;
class RimContourMapProjection;
class RimRegularLegendConfig;
class RimViewNameConfig;
class RimScaleLegendConfig;
Expand All @@ -34,7 +35,7 @@ class RimGeoMechContourMapView : public RimGeoMechView

public:
RimGeoMechContourMapView();
RimGeoMechContourMapProjection* contourMapProjection() const;
RimContourMapProjection* contourMapProjection() const;

RiaDefines::View3dContent viewContent() const override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#include "RimEclipseView.h"
#include "RimFaultInViewCollection.h"
#include "RimGeoMechCase.h"
#include "RimGeoMechContourMapProjection.h"
#include "RimGeoMechContourMapView.h"
#include "RimGeoMechResultDefinition.h"
#include "RimGeoMechView.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "RimEclipseContourMapView.h"
#include "RimEclipseView.h"
#include "RimGeoMechCase.h"
#include "RimGeoMechContourMapProjection.h"
#include "RimGeoMechContourMapView.h"
#include "RimGeoMechResultDefinition.h"
#include "RimGeoMechView.h"
Expand Down

0 comments on commit 4b2798e

Please sign in to comment.