diff --git a/ApplicationCode/ModelVisualization/CMakeLists_files.cmake b/ApplicationCode/ModelVisualization/CMakeLists_files.cmake index 56c8cbf7d0..d57e2efa0d 100644 --- a/ApplicationCode/ModelVisualization/CMakeLists_files.cmake +++ b/ApplicationCode/ModelVisualization/CMakeLists_files.cmake @@ -50,7 +50,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RivAnnotationsPartMgr.h ${CMAKE_CURRENT_LIST_DIR}/RivTextAnnotationPartMgr.h ${CMAKE_CURRENT_LIST_DIR}/RivReachCircleAnnotationPartMgr.h ${CMAKE_CURRENT_LIST_DIR}/RivPolylineAnnotationPartMgr.h -${CMAKE_CURRENT_LIST_DIR}/RivTextAnnotationSourceInfo.h ${CMAKE_CURRENT_LIST_DIR}/RivReachCircleAnnotationSourceInfo.h ${CMAKE_CURRENT_LIST_DIR}/RivPolylinesAnnotationSourceInfo.h ${CMAKE_CURRENT_LIST_DIR}/RivPolylineGenerator.h @@ -104,7 +103,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RivAnnotationsPartMgr.cpp ${CMAKE_CURRENT_LIST_DIR}/RivTextAnnotationPartMgr.cpp ${CMAKE_CURRENT_LIST_DIR}/RivReachCircleAnnotationPartMgr.cpp ${CMAKE_CURRENT_LIST_DIR}/RivPolylineAnnotationPartMgr.cpp -${CMAKE_CURRENT_LIST_DIR}/RivTextAnnotationSourceInfo.cpp ${CMAKE_CURRENT_LIST_DIR}/RivReachCircleAnnotationSourceInfo.cpp ${CMAKE_CURRENT_LIST_DIR}/RivPolylinesAnnotationSourceInfo.cpp ${CMAKE_CURRENT_LIST_DIR}/RivPolylineGenerator.cpp diff --git a/ApplicationCode/ModelVisualization/RivTextAnnotationSourceInfo.cpp b/ApplicationCode/ModelVisualization/RivTextAnnotationSourceInfo.cpp deleted file mode 100644 index c553bfe08b..0000000000 --- a/ApplicationCode/ModelVisualization/RivTextAnnotationSourceInfo.cpp +++ /dev/null @@ -1,37 +0,0 @@ -///////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) 2018- Equinor ASA -// -// 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 -// for more details. -// -///////////////////////////////////////////////////////////////////////////////// - -#include "RivTextAnnotationSourceInfo.h" - -#include "RimTextAnnotation.h" - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -RivTextAnnotationSourceInfo::RivTextAnnotationSourceInfo(RimTextAnnotation* annotation) - : RivObjectSourceInfo(annotation) -{ -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -RimTextAnnotation* RivTextAnnotationSourceInfo::annotation() const -{ - return dynamic_cast( this->object() ); -} diff --git a/ApplicationCode/ModelVisualization/RivTextAnnotationSourceInfo.h b/ApplicationCode/ModelVisualization/RivTextAnnotationSourceInfo.h deleted file mode 100644 index ad2fe68d3f..0000000000 --- a/ApplicationCode/ModelVisualization/RivTextAnnotationSourceInfo.h +++ /dev/null @@ -1,34 +0,0 @@ -///////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) 2018- Equinor ASA -// -// 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 -// for more details. -// -///////////////////////////////////////////////////////////////////////////////// - -#pragma once - -#include "RivObjectSourceInfo.h" - -class RimTextAnnotation; - -class RivTextAnnotationSourceInfo : public RivObjectSourceInfo -{ -public: - RivTextAnnotationSourceInfo(RimTextAnnotation* annotation); - - RimTextAnnotation* annotation() const; - -private: - caf::PdmPointer m_annotation; -};