#5285 Surface Import command. SurfaceInView tree-items. Delete.

Ready to start on visualization code
This commit is contained in:
Jacob Støren
2020-01-06 11:30:06 +01:00
parent 3488280c69
commit 45a3225ec8
16 changed files with 288 additions and 20 deletions

View File

@@ -57,7 +57,7 @@ void RicImportSurfacesFeature::onActionTriggered( bool isChecked )
// Remember the path to next time
app->setLastUsedDialogDirectory( "BINARY_GRID", QFileInfo( fileNames.last() ).absolutePath() );
// Find or create the AnnotationsCollection
// Find or create the SurfaceCollection
RimProject* proj = RiaApplication::instance()->project();
RimSurfaceCollection* surfColl = proj->activeOilField()->surfaceCollection();
@@ -66,20 +66,17 @@ void RicImportSurfacesFeature::onActionTriggered( bool isChecked )
{
surfColl = new RimSurfaceCollection();
proj->activeOilField()->surfaceCollection = surfColl;
proj->updateConnectedEditors();
}
// For each file,
RimSurface* lastCreatedOrUpdated = surfColl->importSurfacesFromFiles( fileNames );
proj->updateConnectedEditors();
if ( lastCreatedOrUpdated )
{
Riu3DMainWindowTools::selectAsCurrentItem( lastCreatedOrUpdated );
}
// surfColl->scheduleRedrawOfRelevantViews();
}
//--------------------------------------------------------------------------------------------------