-
Notifications
You must be signed in to change notification settings - Fork 134
Introduce Dear ImGui alternative viz module #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jlblancoc
wants to merge
10
commits into
develop
Choose a base branch
from
feat/dear-imgui-viz
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
790e1c2
Introduce Dear ImGui alternative viz module
jlblancoc 56022da
Cleaner shutdown order
jlblancoc 8bf7b16
imgui windows: persistent state across sessions
jlblancoc 640a336
fix background scene
jlblancoc 78f271b
finish implementation and imgui handlers clean up
jlblancoc d68a9d3
chore: misc improvements
jlblancoc 899d980
package.xml: missing build deps due to mrpt2 opengl headers
jlblancoc 8a260c7
CI: disable rolling until release
jlblancoc 4ffe0a3
dear imgui lib as private
jlblancoc 85ff6c6
fix deps
jlblancoc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| [submodule "3rdparty/robin-map"] | ||
| path = mola_metric_maps/3rdparty/robin-map | ||
| url = https://github.com/Tessil/robin-map.git | ||
| [submodule "mola_viz_imgui/3rdparty/imgui"] | ||
| path = mola_viz_imgui/3rdparty/imgui | ||
| url = https://github.com/ocornut/imgui.git | ||
| branch = docking |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
| DisableFormat: true | ||
| SortIncludes: Never |
This file contains hidden or 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,70 @@ | ||
| # ------------------------------------------------------------------------------ | ||
| # Static library target wrapping Dear ImGui (docking branch). | ||
| # | ||
| # Expected layout: | ||
| # <this file's parent>/../../3rdparty/imgui/ ← git submodule | ||
| # | ||
| # The submodule must be the "docking" branch of | ||
| # https://github.com/ocornut/imgui | ||
| # ------------------------------------------------------------------------------ | ||
|
|
||
| cmake_minimum_required(VERSION 3.5) | ||
| project(imgui_static LANGUAGES CXX) | ||
|
|
||
| # Locate the submodule root relative to this file | ||
| get_filename_component(_IMGUI_ROOT | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/imgui" ABSOLUTE) | ||
|
|
||
| if(NOT EXISTS "${_IMGUI_ROOT}/imgui.h") | ||
| message(FATAL_ERROR | ||
| "Dear ImGui submodule not found at ${_IMGUI_ROOT}.\n" | ||
| "Run: git submodule update --init --recursive") | ||
| endif() | ||
|
|
||
| # Find GLFW (already required by mrpt-gui, so it will be present) | ||
| find_package(glfw3 REQUIRED) | ||
| find_package(OpenGL REQUIRED) | ||
|
|
||
| set(_IMGUI_SRCS | ||
| ${_IMGUI_ROOT}/imgui.cpp | ||
| ${_IMGUI_ROOT}/imgui_draw.cpp | ||
| ${_IMGUI_ROOT}/imgui_tables.cpp | ||
| ${_IMGUI_ROOT}/imgui_widgets.cpp | ||
| # ${_IMGUI_ROOT}/imgui_demo.cpp # can be excluded in release builds | ||
| ${_IMGUI_ROOT}/misc/cpp/imgui_stdlib.cpp # std::string InputText support | ||
| ${_IMGUI_ROOT}/backends/imgui_impl_glfw.cpp | ||
| ${_IMGUI_ROOT}/backends/imgui_impl_opengl3.cpp | ||
| ) | ||
|
|
||
| add_library(imgui_static STATIC ${_IMGUI_SRCS}) | ||
| set_target_properties(imgui_static PROPERTIES POSITION_INDEPENDENT_CODE TRUE) | ||
|
|
||
| target_include_directories(imgui_static | ||
| PUBLIC | ||
| ${_IMGUI_ROOT} | ||
| ${_IMGUI_ROOT}/backends | ||
| ${_IMGUI_ROOT}/misc/cpp | ||
| ) | ||
|
|
||
| # Enable the docking branch feature set. | ||
| # No explicit loader macro: imgui_impl_opengl3 will use its bundled | ||
| # imgui_impl_opengl3_loader.h (available since ImGui ~1.87), so we do not need | ||
| # to find or link GLEW/GLAD/gl3w separately. | ||
| target_compile_definitions(imgui_static | ||
| PUBLIC | ||
| IMGUI_ENABLE_DOCKING # activates docking API | ||
| ) | ||
|
|
||
| target_link_libraries(imgui_static | ||
| PUBLIC | ||
| glfw | ||
| OpenGL::GL | ||
| ) | ||
|
|
||
| # Suppress warnings from third-party code | ||
| if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") | ||
| target_compile_options(imgui_static PRIVATE -w) | ||
| endif() | ||
|
|
||
| # Export as an alias so parent CMake can use it as imgui::imgui | ||
| add_library(imgui::imgui ALIAS imgui_static) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.