-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mon: Added Monitor plugin for 2D plots of arbitrary scalar values (#607)
Co-authored-by: Florian Reimold <[email protected]> Co-authored-by: Adriana Chirila <[email protected]> Co-authored-by: Mihai Muraru <[email protected]>
- Loading branch information
1 parent
1e1bf4f
commit 90bd985
Showing
43 changed files
with
5,765 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# ========================= eCAL LICENSE ================================= | ||
# | ||
# Copyright (C) 2016 - 2019 Continental Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# ========================= eCAL LICENSE ================================= | ||
|
||
project(mon_plugin_signals_plotting VERSION 1.0.0) | ||
|
||
find_package(Qt5 COMPONENTS | ||
Core | ||
Widgets | ||
REQUIRED) | ||
|
||
find_package(Protobuf REQUIRED) | ||
find_package(qwt REQUIRED) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTOUIC OFF) # Reason for being turned off: AutoUIC will prevent VS from detecting changes in .ui files | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
set(${PROJECT_NAME}_src | ||
src/plugin_widget.cpp | ||
src/plugin.cpp | ||
src/protobuf_tree_builder.cpp | ||
src/signal_tree_item.cpp | ||
src/signal_tree_model.cpp | ||
src/tabwidget_container.cpp | ||
src/chart_widget.cpp | ||
src/chart_settings.cpp | ||
) | ||
|
||
set(${PROJECT_NAME}_header | ||
src/plugin_widget.h | ||
src/plugin.h | ||
src/protobuf_tree_builder.h | ||
src/signal_tree_item.h | ||
src/signal_tree_model.h | ||
src/tabwidget_container.h | ||
src/util.h | ||
src/chart_widget.h | ||
src/chart_settings.h | ||
) | ||
|
||
set(${PROJECT_NAME}_ui | ||
src/plugin_widget.ui | ||
src/chart_settings.ui | ||
) | ||
|
||
qt5_wrap_ui(autogen_ui ${${PROJECT_NAME}_ui}) | ||
|
||
ecal_add_mon_plugin(${PROJECT_NAME} | ||
SOURCES ${${PROJECT_NAME}_src} ${${PROJECT_NAME}_header} ${${PROJECT_NAME}_ui} ${autogen_ui} | ||
METADATA src/metadata.json | ||
) | ||
|
||
create_targets_protobuf() | ||
|
||
target_link_libraries (${PROJECT_NAME} Qt5::Widgets Qt5::Core eCAL::core eCAL::pb protobuf::libprotobuf eCAL::mon_plugin_lib qwt::qwt CustomQt) | ||
|
||
if(MSVC) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4127 /wd4714" ) | ||
endif(MSVC) | ||
|
||
|
||
target_include_directories(${PROJECT_NAME} PRIVATE src) | ||
target_include_directories(${PROJECT_NAME} PRIVATE $<TARGET_PROPERTY:eCAL::core,INCLUDE_DIRECTORIES>) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE QWT_DLL) | ||
|
||
ecal_install_mon_plugin(${PROJECT_NAME}) | ||
|
||
set_target_properties(${PROJECT_NAME} PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$<CONFIGURATION>/${ECAL_MON_PLUGIN_DIR} | ||
FOLDER app/mon/plugins | ||
) |
Oops, something went wrong.