(#678) Show context menu commands on intersection

Added hide intersection
This commit is contained in:
Magne Sjaastad
2015-11-26 16:00:08 +01:00
parent 147580e342
commit 3c4142fc52
8 changed files with 120 additions and 44 deletions

View File

@@ -18,19 +18,22 @@
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <QObject>
class RiuViewer;
class RimView;
class RimEclipseView;
class RimGeoMechView;
class QMouseEvent;
#include "cvfStructGrid.h"
#include "cafPdmPointer.h"
#include <QObject>
#include <QPointer>
class RimCrossSection;
class RimEclipseView;
class RimGeoMechView;
class RimView;
class RiuViewer;
class RivCrossSectionSourceInfo;
class QMouseEvent;
namespace cvf {
class HitItemCollection;
class Part;
@@ -49,6 +52,8 @@ public:
void displayContextMenu(QMouseEvent* event);
void handlePickAction(int winPosX, int winPosY, Qt::KeyboardModifiers keyboardModifiers);
void findCellAndGridIndex(const RivCrossSectionSourceInfo* crossSectionSourceInfo, cvf::uint firstPartTriangleIndex, size_t* cellIndex, size_t* gridIndex);
private slots:
void slotRangeFilterI();
@@ -57,6 +62,7 @@ private slots:
void slotHideFault();
void slotAddEclipsePropertyFilter();
void slotAddGeoMechPropertyFilter();
void slotHideIntersection();
private:
void ijkFromCellIndex(size_t gridIdx, size_t cellIndex, size_t* i, size_t* j, size_t* k);
@@ -69,6 +75,7 @@ private:
cvf::StructGridInterface::FaceType m_currentFaceIndex;
caf::PdmPointer<RimView> m_reservoirView;
caf::PdmPointer<RimCrossSection> m_currentCrossSection;
QPointer<RiuViewer> m_viewer;
};