mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
- Added RimGeneric3dView, a 3D view that is not tied to any grid case, useful for wells, surfaces and other data not requiring a reservoir grid. The view supports a custom name. - Introduced RimGenericViewCollection, a new top-level collection that holds both Eclipse views and RimGeneric3dView instances. It overrides defineUiTreeOrdering() to display both types as a single flat list under the top-level 'Views' node. - RimOilField now exposes a single genericViewCollection instead of a plain eclipseViewCollection field. - RimEclipseViewCollection is unchanged and continues to be used for per-case and ensemble view collections. - Updated RimEclipseCase::globalViewCollection() and related helpers to use RimGenericViewCollection, and added matching overloads in RicNewViewFeature for creating eclipse views from the merged collection. - Added RicNewGenericDataViewFeature to create a new generic data view from the context menu.
61 lines
2.5 KiB
C++
61 lines
2.5 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2015- Statoil ASA
|
|
// Copyright (C) 2015- Ceetron Solutions 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 "cafCmdFeature.h"
|
|
|
|
class RimEclipseCase;
|
|
class RimEclipseView;
|
|
class RimGeoMechCase;
|
|
class RimGeoMechView;
|
|
class Rim3dView;
|
|
class RimEclipseViewCollection;
|
|
class RimGenericViewCollection;
|
|
class RimEclipseCaseEnsemble;
|
|
|
|
//==================================================================================================
|
|
///
|
|
//==================================================================================================
|
|
class RicNewViewFeature : public caf::CmdFeature
|
|
{
|
|
CAF_CMD_HEADER_INIT;
|
|
|
|
public:
|
|
static Rim3dView* addReservoirView( RimEclipseCase* eclipseCase, RimGeoMechCase* geomCase, RimEclipseViewCollection* viewColl );
|
|
static Rim3dView* addReservoirView( RimEclipseCase* eclipseCase, RimGeoMechCase* geomCase, RimGenericViewCollection* viewColl );
|
|
|
|
protected:
|
|
bool isCommandEnabled() const override;
|
|
void onActionTriggered( bool isChecked ) override;
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
|
|
|
private:
|
|
static Rim3dView* createReservoirView( RimEclipseCase* eclipseCase, RimGeoMechCase* geomCase, RimEclipseViewCollection* viewColl );
|
|
static Rim3dView* createReservoirView( RimEclipseCase* eclipseCase, RimGeoMechCase* geomCase, RimGenericViewCollection* viewColl );
|
|
|
|
static RimEclipseCase* selectedEclipseCase();
|
|
static RimGeoMechCase* selectedGeoMechCase();
|
|
static RimEclipseView* selectedEclipseView();
|
|
static RimGeoMechView* selectedGeoMechView();
|
|
static RimEclipseViewCollection* selectedEclipseViewCollection();
|
|
static RimGenericViewCollection* selectedGenericViewCollection();
|
|
static RimEclipseCaseEnsemble* selectedEclipseCaseEnsemble();
|
|
};
|