ResInsight/ApplicationCode/Commands/HoloLensCommands/VdeExportPart.h

75 lines
2.2 KiB
C
Raw Normal View History

2018-09-18 08:29:46 -05:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018 Statoil ASA
//
// 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
#include "cvfBase.h"
#include "cvfObject.h"
#include "cvfPart.h"
#include <QString>
//==================================================================================================
///
//==================================================================================================
class VdeExportPart
{
public:
enum SourceObjectType
{
OBJ_TYPE_GRID,
OBJ_TYPE_PIPE,
OBJ_TYPE_GRID_MESH,
OBJ_TYPE_UNKNOWN
};
enum Winding
{
CLOCKWISE,
COUNTERCLOCKWISE
};
public:
VdeExportPart(cvf::Part* part);
void setSourceObjectType(SourceObjectType sourceObjectType);
void setSourceObjectName(const QString& sourceObjectName);
void setSourceObjectCellSetType(const QString& sourceObjectCellSetType);
void setColor(const cvf::Color3f& color);
2018-09-19 05:51:28 -05:00
void setOpacity(float opacity);
2018-09-18 08:29:46 -05:00
void setWinding(Winding winding);
2018-09-19 07:33:08 -05:00
const cvf::Part* part() const;
2018-09-18 08:29:46 -05:00
QString sourceObjectName() const;
QString sourceObjectCellSetType() const;
2018-09-18 08:29:46 -05:00
SourceObjectType sourceObjectType() const;
cvf::Color3f color() const;
2018-09-19 05:51:28 -05:00
float opacity() const;
2018-09-18 08:29:46 -05:00
Winding winding() const;
private:
2018-09-19 07:33:08 -05:00
cvf::cref<cvf::Part> m_part;
QString m_sourceObjectName;
QString m_sourceObjectCellSetType;
SourceObjectType m_sourceObjectType;
cvf::Color3f m_color;
2018-09-19 05:51:28 -05:00
float m_opacity;
Winding m_winding;
2018-09-18 08:29:46 -05:00
};