2015-11-27 10:18:30 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
2019-02-06 02:45:30 -06:00
|
|
|
// Copyright (C) 2019- Equinor ASA
|
2015-11-27 10:18:30 -06:00
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-11-27 10:18:30 -06: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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-11-27 10:18:30 -06:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-11-27 10:18:30 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-02-05 09:01:29 -06:00
|
|
|
#include "RiuPickItemInfo.h"
|
|
|
|
|
2015-11-27 10:18:30 -06:00
|
|
|
#include "cafCmdFeature.h"
|
2019-02-05 09:01:29 -06:00
|
|
|
#include "cafPickEventHandler.h"
|
2015-11-27 10:18:30 -06:00
|
|
|
|
2015-11-30 03:00:06 -06:00
|
|
|
#include "cvfObject.h"
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
|
|
|
class Part;
|
|
|
|
}
|
2015-11-27 10:18:30 -06:00
|
|
|
|
2018-02-05 06:26:33 -06:00
|
|
|
class Rim3dView;
|
2018-01-12 00:54:37 -06:00
|
|
|
|
2018-02-02 01:20:54 -06:00
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-02-02 01:20:54 -06:00
|
|
|
//==================================================================================================
|
2019-02-05 09:07:24 -06:00
|
|
|
class Ric3dPickEvent : public caf::PickEvent
|
2015-11-27 10:18:30 -06:00
|
|
|
{
|
|
|
|
public:
|
2020-02-12 04:43:15 -06:00
|
|
|
Ric3dPickEvent( const std::vector<RiuPickItemInfo>& pickItemInfos, Rim3dView* view, Qt::KeyboardModifiers keyboardModifiers )
|
2019-09-06 03:40:57 -05:00
|
|
|
: m_pickItemInfos( pickItemInfos )
|
|
|
|
, m_view( view )
|
2019-11-25 11:36:05 -06:00
|
|
|
, m_keyboardModifiers( keyboardModifiers )
|
2018-01-12 00:54:37 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-08-27 07:42:15 -05:00
|
|
|
std::vector<RiuPickItemInfo> m_pickItemInfos;
|
2019-09-06 03:40:57 -05:00
|
|
|
Rim3dView* m_view;
|
2019-11-25 11:36:05 -06:00
|
|
|
Qt::KeyboardModifiers m_keyboardModifiers;
|
2015-11-27 10:18:30 -06:00
|
|
|
};
|
2015-11-30 03:00:06 -06:00
|
|
|
|
2018-02-02 01:20:54 -06:00
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
/// A static always-on pick handler used in the RiuViewerCommand
|
2018-08-30 06:22:28 -05:00
|
|
|
//==================================================================================================
|
|
|
|
class RicDefaultPickEventHandler
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
virtual bool handle3dPickEvent( const Ric3dPickEvent& eventObject ) = 0;
|
2015-11-30 03:00:06 -06:00
|
|
|
};
|