Skeleton for well distribution plot

This commit is contained in:
sigurdp 2019-11-12 14:29:06 +01:00 committed by Magne Sjaastad
parent ba0ef5c7e8
commit 349886d73e
3 changed files with 236 additions and 0 deletions

View File

@ -13,6 +13,7 @@ ${CMAKE_CURRENT_LIST_DIR}/RimWellPltPlot.h
${CMAKE_CURRENT_LIST_DIR}/RimDataSourceForRftPlt.h
${CMAKE_CURRENT_LIST_DIR}/RimWellPlotTools.h
${CMAKE_CURRENT_LIST_DIR}/RimWellRftEnsembleCurveSet.h
${CMAKE_CURRENT_LIST_DIR}/RimWellDistributionPlot.h
)
set (SOURCE_GROUP_SOURCE_FILES
@ -29,6 +30,7 @@ ${CMAKE_CURRENT_LIST_DIR}/RimWellPltPlot.cpp
${CMAKE_CURRENT_LIST_DIR}/RimDataSourceForRftPlt.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellPlotTools.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellRftEnsembleCurveSet.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellDistributionPlot.cpp
)
list(APPEND CODE_HEADER_FILES

View File

@ -0,0 +1,166 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2019- Equinor ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#include "RimWellDistributionPlot.h"
//==================================================================================================
//
//
//
//==================================================================================================
CAF_PDM_SOURCE_INIT(RimWellDistributionPlot, "WellDistributionPlot");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellDistributionPlot::RimWellDistributionPlot()
{
CAF_PDM_InitObject("Well Distribution Plot", "", "", "");
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellDistributionPlot::~RimWellDistributionPlot()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QWidget* RimWellDistributionPlot::viewWidget()
{
return nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QImage RimWellDistributionPlot::snapshotWindowContent()
{
return QImage();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellDistributionPlot::zoomAll()
{
}
RiuQwtPlotWidget* RimWellDistributionPlot::viewer()
{
throw std::logic_error("The method or operation is not implemented.");
}
bool RimWellDistributionPlot::isChecked() const
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::setChecked(bool checked)
{
throw std::logic_error("The method or operation is not implemented.");
}
QString RimWellDistributionPlot::description() const
{
throw std::logic_error("The method or operation is not implemented.");
}
bool RimWellDistributionPlot::hasCustomFontSizes(RiaDefines::FontSettingType fontSettingType, int defaultFontSize) const
{
throw std::logic_error("The method or operation is not implemented.");
}
bool RimWellDistributionPlot::applyFontSize(RiaDefines::FontSettingType fontSettingType, int oldFontSize, int fontSize, bool forceChange /*= false*/)
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::setAutoScaleXEnabled(bool enabled)
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::setAutoScaleYEnabled(bool enabled)
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::updateAxes()
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::updateZoomInQwt()
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::updateZoomFromQwt()
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::createPlotWidget()
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::detachAllCurves()
{
throw std::logic_error("The method or operation is not implemented.");
}
caf::PdmObject* RimWellDistributionPlot::findPdmObjectFromQwtCurve(const QwtPlotCurve* curve) const
{
throw std::logic_error("The method or operation is not implemented.");
}
void RimWellDistributionPlot::loadDataAndUpdate()
{
}
void RimWellDistributionPlot::updateLayout()
{
throw std::logic_error("The method or operation is not implemented.");
}
QWidget* RimWellDistributionPlot::createViewWidget(QWidget* mainWindowParent)
{
return nullptr;
}
void RimWellDistributionPlot::deleteViewWidget()
{
}
void RimWellDistributionPlot::onLoadDataAndUpdate()
{
}
void RimWellDistributionPlot::updatePlotTitle()
{
throw std::logic_error("The method or operation is not implemented.");
}

View File

@ -0,0 +1,68 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2019- Equinor ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "RimPlotWindow.h"
#include "RimPlotInterface.h"
//==================================================================================================
//
//
//
//==================================================================================================
class RimWellDistributionPlot : public RimPlotWindow, public RimPlotInterface
{
CAF_PDM_HEADER_INIT;
public:
RimWellDistributionPlot();
~RimWellDistributionPlot() override;
// RimViewWindow/RimPlotWindow implementations/overrides
virtual QWidget* viewWidget() override;
virtual QImage snapshotWindowContent() override;
virtual void zoomAll() override;
virtual void detachAllCurves() override;
virtual void updateLayout() override;
// RimPlotInterface implementation
virtual RiuQwtPlotWidget* viewer() override;
virtual bool isChecked() const override;
virtual void setChecked(bool checked) override;
virtual QString description() const override;
virtual bool hasCustomFontSizes(RiaDefines::FontSettingType fontSettingType, int defaultFontSize) const override;
virtual bool applyFontSize(RiaDefines::FontSettingType fontSettingType, int oldFontSize, int fontSize, bool forceChange = false) override;
virtual void setAutoScaleXEnabled(bool enabled) override;
virtual void setAutoScaleYEnabled(bool enabled) override;
virtual void updateAxes() override;
virtual void updateZoomInQwt() override;
virtual void updateZoomFromQwt() override;
virtual void createPlotWidget() override;
//virtual void detachAllCurves() override;
virtual caf::PdmObject* findPdmObjectFromQwtCurve(const QwtPlotCurve* curve) const override;
virtual void loadDataAndUpdate() override;
private:
// RimViewWindow/RimPlotWindow implementations/overrides
virtual QWidget* createViewWidget(QWidget* mainWindowParent) override;
virtual void deleteViewWidget() override;
virtual void onLoadDataAndUpdate() override;
virtual void updatePlotTitle() override;
};