2018-09-12 10:31:22 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2019-01-09 15:21:38 +01:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2018-09-12 10:31:22 +02:00
|
|
|
//
|
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-09-19 11:35:08 +02:00
|
|
|
#include "RivCellSetEnum.h"
|
|
|
|
|
|
|
|
|
|
#include "VdeExportPart.h"
|
|
|
|
|
|
2018-09-12 10:31:22 +02:00
|
|
|
#include "cvfBase.h"
|
|
|
|
|
#include "cvfCollection.h"
|
|
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
|
class RimGridView;
|
|
|
|
|
|
|
|
|
|
namespace cvf
|
|
|
|
|
{
|
|
|
|
|
class Part;
|
|
|
|
|
} // namespace cvf
|
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RicHoloLensExportImpl
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-09-19 11:35:08 +02:00
|
|
|
static std::vector<VdeExportPart> partsForExport(const RimGridView& view);
|
2019-01-15 13:32:57 +01:00
|
|
|
static std::vector<std::pair<cvf::Vec3f, cvf::String>> labelsForExport(const RimGridView& view);
|
2018-09-18 15:29:46 +02:00
|
|
|
|
2018-09-19 14:33:08 +02:00
|
|
|
private:
|
2018-09-21 13:42:39 +02:00
|
|
|
static void appendTextureImage(VdeExportPart& exportPart, cvf::Part* part);
|
2018-09-19 11:35:08 +02:00
|
|
|
static QString gridCellSetTypeText(RivCellSetEnum cellSetType);
|
2018-09-12 10:31:22 +02:00
|
|
|
|
|
|
|
|
static bool isGrid(const cvf::Part* part);
|
|
|
|
|
static bool isPipe(const cvf::Part* part);
|
2018-09-20 16:15:13 +02:00
|
|
|
static bool isMeshLines(const cvf::Part* part);
|
2018-09-12 10:31:22 +02:00
|
|
|
};
|