From 51865780dbe829b2b143089409c3ebd83c13dc1a Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 13 Nov 2018 15:32:19 +0300 Subject: [PATCH] Create filters plug-in --- CMakeLists.txt | 1 + src/Config/plugins.xml.in | 1 + src/Model/CMakeLists.txt | 2 + src/Model/Model_Session.cpp | 7 ++ src/Model/Model_Session.h | 3 + src/Model/Model_ViewFilter.cpp | 54 +++++++++++ src/Model/Model_ViewFilter.h | 58 ++++++++++++ src/ModelAPI/CMakeLists.txt | 1 + src/ModelAPI/ModelAPI_Session.h | 4 + src/ModelAPI/ModelAPI_ViewFilter.h | 90 +++++++++++++++++++ .../ModuleBase_WidgetMultiSelector.cpp | 10 ++- .../ModuleBase_WidgetSelectionFilter.cpp | 32 ++++++- .../ModuleBase_WidgetSelectionFilter.h | 6 +- src/ViewFilters/CMakeLists.txt | 56 ++++++++++++ src/ViewFilters/ViewFilters.h | 38 ++++++++ .../ViewFilters_HorizontalPlane.cpp | 47 ++++++++++ src/ViewFilters/ViewFilters_HorizontalPlane.h | 41 +++++++++ src/ViewFilters/ViewFilters_Plugin.cpp | 47 ++++++++++ src/ViewFilters/ViewFilters_Plugin.h | 42 +++++++++ src/ViewFilters/ViewFilters_VerticalPlane.cpp | 47 ++++++++++ src/ViewFilters/ViewFilters_VerticalPlane.h | 41 +++++++++ src/XGUI/XGUI_ContextMenuMgr.cpp | 2 - src/XGUI/XGUI_DataModel.h | 1 - src/XGUI/XGUI_InspectionPanel.cpp | 3 - 24 files changed, 622 insertions(+), 12 deletions(-) create mode 100644 src/Model/Model_ViewFilter.cpp create mode 100644 src/Model/Model_ViewFilter.h create mode 100644 src/ModelAPI/ModelAPI_ViewFilter.h create mode 100644 src/ViewFilters/CMakeLists.txt create mode 100644 src/ViewFilters/ViewFilters.h create mode 100644 src/ViewFilters/ViewFilters_HorizontalPlane.cpp create mode 100644 src/ViewFilters/ViewFilters_HorizontalPlane.h create mode 100644 src/ViewFilters/ViewFilters_Plugin.cpp create mode 100644 src/ViewFilters/ViewFilters_Plugin.h create mode 100644 src/ViewFilters/ViewFilters_VerticalPlane.cpp create mode 100644 src/ViewFilters/ViewFilters_VerticalPlane.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f304808d..070bbdb49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,7 @@ ADD_SUBDIRECTORY (src/PartSet) ADD_SUBDIRECTORY (src/XGUI) ADD_SUBDIRECTORY (src/ExchangePlugin) ADD_SUBDIRECTORY (src/GeomValidators) +ADD_SUBDIRECTORY (src/ViewFilters) ADD_SUBDIRECTORY (src/InitializationPlugin) ADD_SUBDIRECTORY (src/ParametersPlugin) ADD_SUBDIRECTORY (src/PythonAddons) diff --git a/src/Config/plugins.xml.in b/src/Config/plugins.xml.in index 2969b9da6..abf6b3239 100644 --- a/src/Config/plugins.xml.in +++ b/src/Config/plugins.xml.in @@ -20,6 +20,7 @@ @ALL_SOLVERS@ --> +