mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3343 HoloLens Export : Extract more text from ResInsight
This commit is contained in:
parent
a7f14a0cb5
commit
feacfcf0a6
@ -78,7 +78,7 @@ QString RicHoloLensExportImpl::nameFromPart(const cvf::Part* part)
|
||||
{
|
||||
size_t gridIndex = gridSourceInfo->gridIndex();
|
||||
|
||||
nameOfObject = QString::number(gridIndex);
|
||||
nameOfObject = "Grid " + QString::number(gridIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "RicHoloLensExportToFolderUi.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RimCase.h"
|
||||
#include "RimDialogData.h"
|
||||
#include "RimGridView.h"
|
||||
#include "RimProject.h"
|
||||
@ -65,7 +66,17 @@ void RicHoloLensExportToFolderFeature::onActionTriggered(bool isChecked)
|
||||
cvf::Collection<cvf::Part> allPartsColl;
|
||||
|
||||
RimGridView* viewForExport = featureUi->viewForExport();
|
||||
if (!viewForExport) return;
|
||||
|
||||
QString caseName("Unnamed Case");
|
||||
{
|
||||
RimCase* rimCase = nullptr;
|
||||
viewForExport->firstAncestorOrThisOfType(rimCase);
|
||||
if (rimCase)
|
||||
{
|
||||
caseName = rimCase->caseUserDescription();
|
||||
}
|
||||
}
|
||||
RicHoloLensExportImpl::partsForExport(viewForExport, &allPartsColl);
|
||||
|
||||
QDir dir(featureUi->exportFolder());
|
||||
@ -77,6 +88,8 @@ void RicHoloLensExportToFolderFeature::onActionTriggered(bool isChecked)
|
||||
if (part)
|
||||
{
|
||||
QString nameOfObject = RicHoloLensExportImpl::nameFromPart(part);
|
||||
// caseName is relevant to combine with name of object
|
||||
|
||||
// bool isGrid = RicHoloLensExportImpl::isGrid(part);
|
||||
|
||||
QString absolutePath = dir.absoluteFilePath(nameOfObject);
|
||||
|
Loading…
Reference in New Issue
Block a user