mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 13:47:12 -05:00
Move the element-type include from each migrated collection header into
its .cpp, leaving only a forward declaration in the header. Follows the
pattern from 9e4d79159 for RimJobCollection, made possible by the
constructor-time PdmObject base check.
40 lines
1.5 KiB
C++
40 lines
1.5 KiB
C++
#include "RimGeoMechContourMapViewCollection.h"
|
|
|
|
#include "RimCase.h"
|
|
#include "RimGeoMechContourMapView.h"
|
|
|
|
CAF_PDM_SOURCE_INIT( RimGeoMechContourMapViewCollection, "GeoMech2dViewCollection" );
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
RimGeoMechContourMapViewCollection::RimGeoMechContourMapViewCollection()
|
|
{
|
|
CAF_PDM_InitObject( "GeoMech Contour Maps", ":/2DMaps16x16.png" );
|
|
|
|
CAF_PDM_InitFieldNoDefault( &m_items, "GeoMechViews", "Contour Maps", ":/CrossSection16x16.png" );
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
RimGeoMechContourMapViewCollection::~RimGeoMechContourMapViewCollection()
|
|
{
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
std::vector<RimGeoMechContourMapView*> RimGeoMechContourMapViewCollection::views()
|
|
{
|
|
return items();
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
void RimGeoMechContourMapViewCollection::addView( RimGeoMechContourMapView* contourMap )
|
|
{
|
|
addItem( contourMap );
|
|
}
|