2015-11-27 17:18:30 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
2019-02-06 09:45:30 +01:00
|
|
|
// Copyright (C) 2019- Equinor ASA
|
2015-11-27 17:18:30 +01:00
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
|
//
|
|
|
|
|
// 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
|
|
|
|
|
|
2019-02-05 16:01:29 +01:00
|
|
|
#include "RiuPickItemInfo.h"
|
|
|
|
|
|
2015-11-27 17:18:30 +01:00
|
|
|
#include "cafCmdFeature.h"
|
2019-02-05 16:01:29 +01:00
|
|
|
#include "cafPickEventHandler.h"
|
2015-11-27 17:18:30 +01:00
|
|
|
|
2015-11-30 10:00:06 +01:00
|
|
|
#include "cvfBase.h"
|
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
2018-01-12 07:54:37 +01:00
|
|
|
namespace cvf {
|
|
|
|
|
class Part;
|
|
|
|
|
}
|
2015-11-27 17:18:30 +01:00
|
|
|
|
2018-02-05 13:26:33 +01:00
|
|
|
class Rim3dView;
|
2018-01-12 07:54:37 +01:00
|
|
|
|
2018-02-02 08:20:54 +01:00
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2019-02-05 16:07:24 +01:00
|
|
|
class Ric3dPickEvent : public caf::PickEvent
|
2015-11-27 17:18:30 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2019-02-05 16:07:24 +01:00
|
|
|
Ric3dPickEvent(const std::vector<RiuPickItemInfo>& pickItemInfos,
|
2018-08-27 14:42:15 +02:00
|
|
|
Rim3dView* view)
|
|
|
|
|
: m_pickItemInfos(pickItemInfos)
|
2018-08-27 10:20:43 +02:00
|
|
|
, m_view(view)
|
2018-01-12 07:54:37 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-27 14:42:15 +02:00
|
|
|
std::vector<RiuPickItemInfo> m_pickItemInfos;
|
2018-08-27 14:27:33 +02:00
|
|
|
Rim3dView* m_view;
|
2015-11-27 17:18:30 +01:00
|
|
|
};
|
2015-11-30 10:00:06 +01:00
|
|
|
|
2015-12-04 15:15:13 +01:00
|
|
|
|
2018-02-02 08:20:54 +01:00
|
|
|
//==================================================================================================
|
2018-08-30 13:22:28 +02:00
|
|
|
/// A static always-on pick handler used in the RiuViewerCommand
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RicDefaultPickEventHandler
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-02-05 16:07:24 +01:00
|
|
|
virtual bool handle3dPickEvent(const Ric3dPickEvent& eventObject) = 0;
|
2015-11-30 10:00:06 +01:00
|
|
|
};
|
|
|
|
|
|