mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
53fad80e89
* Everything is now named something related to ContourMap: - Rim2dEclipseView -> RimContourMapView - Rim2dGridProjection -> RimContourMapProjection ....
43 lines
1.6 KiB
C++
43 lines
1.6 KiB
C++
#include "RimContourMapViewCollection.h"
|
|
|
|
#include "RimContourMapView.h"
|
|
#include "RimCase.h"
|
|
|
|
CAF_PDM_SOURCE_INIT(RimContourMapViewCollection, "Eclipse2dViewCollection");
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
RimContourMapViewCollection::RimContourMapViewCollection()
|
|
{
|
|
CAF_PDM_InitObject("Contour Maps", ":/2DMaps16x16.png", "", "");
|
|
|
|
CAF_PDM_InitFieldNoDefault(&m_contourMapViews, "EclipseViews", "Contour Maps", ":/CrossSection16x16.png", "", "");
|
|
m_contourMapViews.uiCapability()->setUiTreeHidden(true);
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
RimContourMapViewCollection::~RimContourMapViewCollection()
|
|
{
|
|
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
std::vector<RimContourMapView*> RimContourMapViewCollection::views()
|
|
{
|
|
return m_contourMapViews.childObjects();
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
void RimContourMapViewCollection::push_back(RimContourMapView* contourMap)
|
|
{
|
|
m_contourMapViews.push_back(contourMap);
|
|
}
|
|
|