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