mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#3343 Holo Lens : Add opacity
This commit is contained in:
1 parent
7fe4a83589
commit
782005bad9
3 files changed
+17
-5
No files matched your search
@@ -21,21 +21,21 @@
|
||||
#include "RigMainGrid.h"
|
||||
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimFaultInView.h"
|
||||
#include "RimGridView.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include "RiuViewer.h"
|
||||
#include "RivSimWellPipeSourceInfo.h"
|
||||
#include "RivSourceInfo.h"
|
||||
#include "RivWellPathSourceInfo.h"
|
||||
|
||||
#include "RiuViewer.h"
|
||||
#include "cafEffectGenerator.h"
|
||||
|
||||
#include "cvfPart.h"
|
||||
#include "cvfScene.h"
|
||||
|
||||
#include "RimFaultInView.h"
|
||||
#include "cafEffectGenerator.h"
|
||||
#include <QString>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -118,8 +118,8 @@ std::vector<VdeExportPart> RicHoloLensExportImpl::partsForExport(const RimGridVi
|
||||
RimEclipseCase* eclipseCase = dynamic_cast<RimEclipseCase*>(si->object());
|
||||
if (eclipseCase)
|
||||
{
|
||||
QString nameOfObject = rimEclipseCase->gridFileName();
|
||||
auto gridSourceInfo = dynamic_cast<const RivSourceInfo*>(scenePart->sourceInfo());
|
||||
QString nameOfObject = rimEclipseCase->gridFileName();
|
||||
auto gridSourceInfo = dynamic_cast<const RivSourceInfo*>(scenePart->sourceInfo());
|
||||
if (gridSourceInfo)
|
||||
{
|
||||
size_t gridIndex = gridSourceInfo->gridIndex();
|
||||
|
||||
@@ -27,6 +27,7 @@ VdeExportPart::VdeExportPart(cvf::Part* part)
|
||||
, m_sourceObjectType(OBJ_TYPE_UNKNOWN)
|
||||
, m_color(cvf::Color3f::MAGENTA)
|
||||
, m_winding(COUNTERCLOCKWISE)
|
||||
, m_opacity(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -62,6 +63,14 @@ void VdeExportPart::setColor(const cvf::Color3f& color)
|
||||
m_color = color;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void VdeExportPart::setOpacity(float opacity)
|
||||
{
|
||||
m_opacity = opacity;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
void setSourceObjectName(const QString& sourceObjectName);
|
||||
void setSourceObjectCellSetType(const QString& sourceObjectCellSetType);
|
||||
void setColor(const cvf::Color3f& color);
|
||||
void setOpacity(float opacity);
|
||||
void setWinding(Winding winding);
|
||||
|
||||
cvf::Part* part();
|
||||
@@ -58,6 +59,7 @@ public:
|
||||
QString sourceObjectCellSetType() const;
|
||||
SourceObjectType sourceObjectType() const;
|
||||
cvf::Color3f color() const;
|
||||
float opacity() const;
|
||||
Winding winding() const;
|
||||
|
||||
private:
|
||||
@@ -67,5 +69,6 @@ private:
|
||||
QString m_sourceObjectCellSetType;
|
||||
SourceObjectType m_sourceObjectType;
|
||||
cvf::Color3f m_color;
|
||||
float m_opacity;
|
||||
Winding m_winding;
|
||||
};
|
||||
Reference in new issue
Block a user