mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
#3343 Holo Lens : Add VdeExportPart
This commit is contained in:
1 parent
92e7ea9947
commit
a40853dba5
5 files changed
+201
No files matched your search
@@ -61,6 +61,44 @@ void RicHoloLensExportImpl::partsForExport(const RimGridView* view, cvf::Collect
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<VdeExportPart> RicHoloLensExportImpl::partsForExport(const RimGridView* view)
|
||||
{
|
||||
std::vector<VdeExportPart> exportParts;
|
||||
|
||||
if (view->viewer())
|
||||
{
|
||||
cvf::Scene* scene = view->viewer()->mainScene();
|
||||
if (scene)
|
||||
{
|
||||
cvf::Collection<cvf::Part> sceneParts;
|
||||
scene->allParts(&sceneParts);
|
||||
|
||||
for (auto& scenePart : sceneParts)
|
||||
{
|
||||
if (RicHoloLensExportImpl::isGrid(scenePart.p()))
|
||||
{
|
||||
VdeExportPart part(scenePart.p());
|
||||
part.setSourceObjectType(VdeExportPart::OBJ_TYPE_GRID);
|
||||
|
||||
exportParts.push_back(part);
|
||||
}
|
||||
else if (RicHoloLensExportImpl::isPipe(scenePart.p()))
|
||||
{
|
||||
VdeExportPart part(scenePart.p());
|
||||
part.setSourceObjectType(VdeExportPart::OBJ_TYPE_PIPE);
|
||||
|
||||
exportParts.push_back(part);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return exportParts;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user