mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename ApplicationCode to ApplicationLibCode
This commit is contained in:
114
ApplicationLibCode/ProjectDataModel/Rim3dOverlayInfoConfig.h
Normal file
114
ApplicationLibCode/ProjectDataModel/Rim3dOverlayInfoConfig.h
Normal file
@@ -0,0 +1,114 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
||||
//
|
||||
// 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 "RigHistogramData.h"
|
||||
|
||||
#include "RimHistogramCalculator.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmPointer.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
#include "cvfObject.h"
|
||||
|
||||
#include "cvfVector2.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
|
||||
class RimGeoMechContourMapView;
|
||||
class RimEclipseContourMapView;
|
||||
class RimEclipseView;
|
||||
class RimGeoMechView;
|
||||
class RimGridView;
|
||||
class RicGridStatisticsDialog;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class Rim3dOverlayInfoConfig : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
Rim3dOverlayInfoConfig();
|
||||
~Rim3dOverlayInfoConfig() override;
|
||||
|
||||
void update3DInfo();
|
||||
|
||||
void setReservoirView( RimGridView* ownerView );
|
||||
|
||||
void setPosition( cvf::Vec2ui position );
|
||||
|
||||
RigHistogramData histogramData();
|
||||
QString timeStepText();
|
||||
QString caseInfoText();
|
||||
QString resultInfoText( const RigHistogramData& histData );
|
||||
|
||||
RicGridStatisticsDialog* getOrCreateGridStatisticsDialog();
|
||||
void showStatisticsInfoDialog( bool raise = true );
|
||||
QImage statisticsDialogScreenShotImage();
|
||||
|
||||
bool showAnimProgress() const;
|
||||
bool showCaseInfo() const;
|
||||
bool showResultInfo() const;
|
||||
bool isActive() const;
|
||||
|
||||
bool showVersionInfo() const;
|
||||
|
||||
private:
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
caf::PdmFieldHandle* objectToggleField() override;
|
||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
void updateEclipse3DInfo( RimEclipseView* reservoirView );
|
||||
void updateGeoMech3DInfo( RimGeoMechView* geoMechView );
|
||||
void update3DInfoIn2dViews() const;
|
||||
QString timeStepText( RimEclipseView* eclipseView );
|
||||
QString timeStepText( RimGeoMechView* geoMechView );
|
||||
QString caseInfoText( RimEclipseView* eclipseView );
|
||||
QString caseInfoText( RimGeoMechView* geoMechView );
|
||||
QString resultInfoText( const RigHistogramData& histData, RimEclipseView* eclipseView, bool showVolumeWeightedMean );
|
||||
QString resultInfoText( const RigHistogramData& histData, RimGeoMechView* geoMechView );
|
||||
|
||||
void displayPropertyFilteredStatisticsMessage( bool showSwitchToCurrentTimestep );
|
||||
bool hasInvalidStatisticsCombination();
|
||||
|
||||
private:
|
||||
caf::PdmField<bool> m_active;
|
||||
caf::PdmField<bool> m_showAnimProgress;
|
||||
caf::PdmField<bool> m_showCaseInfo;
|
||||
caf::PdmField<bool> m_showResultInfo;
|
||||
caf::PdmField<bool> m_showVolumeWeightedMean;
|
||||
caf::PdmField<bool> m_showHistogram;
|
||||
caf::PdmField<bool> m_showVersionInfo;
|
||||
|
||||
caf::PdmField<caf::AppEnum<RimHistogramCalculator::StatisticsTimeRangeType>> m_statisticsTimeRange;
|
||||
caf::PdmField<caf::AppEnum<RimHistogramCalculator::StatisticsCellRangeType>> m_statisticsCellRange;
|
||||
|
||||
caf::PdmPointer<RimGridView> m_viewDef;
|
||||
cvf::Vec2ui m_position;
|
||||
|
||||
std::unique_ptr<RimHistogramCalculator> m_histogramCalculator;
|
||||
|
||||
std::unique_ptr<RicGridStatisticsDialog> m_gridStatisticsDialog;
|
||||
};
|
||||
Reference in New Issue
Block a user