mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3807 Initial implementation of GeoMech contour maps.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#include "RimEclipseContourMapViewCollection.h"
|
||||
|
||||
#include "RimEclipseContourMapView.h"
|
||||
#include "RimCase.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimEclipseContourMapViewCollection, "Eclipse2dViewCollection");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipseContourMapViewCollection::RimEclipseContourMapViewCollection()
|
||||
{
|
||||
CAF_PDM_InitObject("Contour Maps", ":/2DMaps16x16.png", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_contourMapViews, "EclipseViews", "Contour Maps", ":/CrossSection16x16.png", "", "");
|
||||
m_contourMapViews.uiCapability()->setUiTreeHidden(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipseContourMapViewCollection::~RimEclipseContourMapViewCollection()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimEclipseContourMapView*> RimEclipseContourMapViewCollection::views()
|
||||
{
|
||||
return m_contourMapViews.childObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseContourMapViewCollection::push_back(RimEclipseContourMapView* contourMap)
|
||||
{
|
||||
m_contourMapViews.push_back(contourMap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user