2019-01-16 10:51:43 +01:00
|
|
|
#include "RimEclipseContourMapViewCollection.h"
|
2018-10-23 16:32:40 +02:00
|
|
|
|
|
|
|
|
#include "RimCase.h"
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "RimEclipseContourMapView.h"
|
2018-10-23 16:32:40 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_SOURCE_INIT( RimEclipseContourMapViewCollection, "Eclipse2dViewCollection" );
|
2018-10-23 16:32:40 +02:00
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2018-10-23 16:32:40 +02:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-01-16 10:51:43 +01:00
|
|
|
RimEclipseContourMapViewCollection::RimEclipseContourMapViewCollection()
|
2018-10-23 16:32:40 +02:00
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_InitObject( "Contour Maps", ":/2DMaps16x16.png", "", "" );
|
2018-10-23 16:32:40 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault( &m_contourMapViews, "EclipseViews", "Contour Maps", ":/CrossSection16x16.png", "", "" );
|
|
|
|
|
m_contourMapViews.uiCapability()->setUiTreeHidden( true );
|
2018-10-23 16:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2018-10-23 16:32:40 +02:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2020-02-12 11:13:38 +01:00
|
|
|
RimEclipseContourMapViewCollection::~RimEclipseContourMapViewCollection()
|
|
|
|
|
{
|
|
|
|
|
}
|
2018-10-23 16:32:40 +02:00
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2018-10-23 16:32:40 +02:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-01-16 10:51:43 +01:00
|
|
|
std::vector<RimEclipseContourMapView*> RimEclipseContourMapViewCollection::views()
|
2018-10-23 16:32:40 +02:00
|
|
|
{
|
2018-11-09 09:04:40 +01:00
|
|
|
return m_contourMapViews.childObjects();
|
2018-10-23 16:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
void RimEclipseContourMapViewCollection::push_back( RimEclipseContourMapView* contourMap )
|
2018-10-23 16:32:40 +02:00
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
m_contourMapViews.push_back( contourMap );
|
2018-10-23 16:32:40 +02:00
|
|
|
}
|