2018-11-09 02:04:40 -06:00
|
|
|
#include "RimContourMapViewCollection.h"
|
2018-10-23 09:32:40 -05:00
|
|
|
|
2018-11-09 02:04:40 -06:00
|
|
|
#include "RimContourMapView.h"
|
2018-10-23 09:32:40 -05:00
|
|
|
#include "RimCase.h"
|
|
|
|
|
2018-11-09 02:04:40 -06:00
|
|
|
CAF_PDM_SOURCE_INIT(RimContourMapViewCollection, "Eclipse2dViewCollection");
|
2018-10-23 09:32:40 -05:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-11-09 02:04:40 -06:00
|
|
|
RimContourMapViewCollection::RimContourMapViewCollection()
|
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
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-11-09 02:04:40 -06:00
|
|
|
RimContourMapViewCollection::~RimContourMapViewCollection()
|
2018-10-23 09:32:40 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-11-09 02:04:40 -06:00
|
|
|
std::vector<RimContourMapView*> RimContourMapViewCollection::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
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-11-09 02:04:40 -06:00
|
|
|
void RimContourMapViewCollection::push_back(RimContourMapView* 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
|
|
|
}
|
|
|
|
|