mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3249 Refactoring: Rename of classes to PickEventHandler
This commit is contained in:
@@ -10,8 +10,8 @@ ${CMAKE_CURRENT_LIST_DIR}/RicDeleteWellPathTargetFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicDeleteWellPathAttributeFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathsUnitSystemSettingsImpl.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathsUnitSystemSettingsUi.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathViewerEventHandler.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicIntersectionViewerEventHandler.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathPickEventHandler.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicIntersectionPickEventHandler.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFormationsImportFileFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/PointTangentManipulator/RicPointTangentManipulator.h
|
||||
)
|
||||
@@ -27,8 +27,8 @@ ${CMAKE_CURRENT_LIST_DIR}/RicDeleteWellPathTargetFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicDeleteWellPathAttributeFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathsUnitSystemSettingsImpl.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathsUnitSystemSettingsUi.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathViewerEventHandler.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicIntersectionViewerEventHandler.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathPickEventHandler.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicIntersectionPickEventHandler.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFormationsImportFileFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/PointTangentManipulator/RicPointTangentManipulator.cpp
|
||||
)
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RicIntersectionViewerEventHandler.h"
|
||||
#include "RicIntersectionPickEventHandler.h"
|
||||
#include "RimIntersection.h"
|
||||
#include "Rim3dView.h"
|
||||
|
||||
@@ -28,16 +28,16 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicIntersectionViewerEventHandler* RicIntersectionViewerEventHandler::instance()
|
||||
RicIntersectionPickEventHandler* RicIntersectionPickEventHandler::instance()
|
||||
{
|
||||
static RicIntersectionViewerEventHandler* singleton = new RicIntersectionViewerEventHandler;
|
||||
static RicIntersectionPickEventHandler* singleton = new RicIntersectionPickEventHandler;
|
||||
return singleton;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicIntersectionViewerEventHandler::handlePickEvent(const Ric3DPickEvent& eventObject)
|
||||
bool RicIntersectionPickEventHandler::handlePickEvent(const Ric3DPickEvent& eventObject)
|
||||
{
|
||||
std::vector<RimIntersection*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType(&selection);
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RicViewerEventInterface.h"
|
||||
#include "RicPickEventHandler.h"
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RicIntersectionViewerEventHandler : public RicPickEventHandler
|
||||
class RicIntersectionPickEventHandler : public RicPickEventHandler
|
||||
{
|
||||
public:
|
||||
static RicIntersectionViewerEventHandler* instance();
|
||||
static RicIntersectionPickEventHandler* instance();
|
||||
|
||||
protected:
|
||||
virtual bool handlePickEvent(const Ric3DPickEvent& eventObject) override;
|
||||
@@ -17,7 +17,7 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RicWellPathViewerEventHandler.h"
|
||||
#include "RicWellPathPickEventHandler.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
@@ -41,16 +41,16 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicWellPathViewerEventHandler* RicWellPathViewerEventHandler::instance()
|
||||
RicWellPathPickEventHandler* RicWellPathPickEventHandler::instance()
|
||||
{
|
||||
static RicWellPathViewerEventHandler* singleton = new RicWellPathViewerEventHandler;
|
||||
static RicWellPathPickEventHandler* singleton = new RicWellPathPickEventHandler;
|
||||
return singleton;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicWellPathViewerEventHandler::handlePickEvent(const Ric3DPickEvent& eventObject)
|
||||
bool RicWellPathPickEventHandler::handlePickEvent(const Ric3DPickEvent& eventObject)
|
||||
{
|
||||
if (eventObject.m_pickItemInfos.empty()) return false;
|
||||
|
||||
@@ -19,16 +19,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RicViewerEventInterface.h"
|
||||
#include "RicPickEventHandler.h"
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RicWellPathViewerEventHandler : public RicPickEventHandler
|
||||
class RicWellPathPickEventHandler : public RicPickEventHandler
|
||||
{
|
||||
public:
|
||||
static RicWellPathViewerEventHandler* instance();
|
||||
static RicWellPathPickEventHandler* instance();
|
||||
|
||||
bool handlePickEvent(const Ric3DPickEvent& eventObject) override;
|
||||
};
|
||||
Reference in New Issue
Block a user