thedmd/imgui-node-editor — 4.6k★ trên GitHub (C++). Node Editor built using Dear ImGui
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
An implementation of node editor with ImGui-like API.
Project purpose is to serve as a basis for more complex solutions like blueprint editors.
Node Editor is build around an idea "draw your content, we do the rest", which mean interactions are handled by editor, content rendering is handled by user. Editor will take care of:
placing your node in the word
dragging nodes
zoom and scrolling
selection
various interaction that can be queried by API (creation, deletion, selection changes, etc.)
Here are some highlights:
Node movement and selection is handled internally
Node and pin contents are fully customizable
Fully styled, default theme is modeled after UE4 blueprints
Flexible enough to produce such nodes:
Customizable links based on Bézier curves:
Automatic highlights for nodes, pins and links:
Smooth navigation and selection
Node state can be saved in user context, so layout will not break
Selection rectangles and group dragging
Context menu support
Basic shortcuts support (cut/copy/paste/delete)
ImGui style API
Editor is used to implement blueprint editor in Spark CE engine, it proved itself there by allowing to do everything we needed. Therefore it is now slowly moving into stable state from beeing a prototype.
Note: Project recently was restructured to mimic ImGui layout.
Please report issues or questions if something isn't clear.
Dependencies
Dear ImGui 1.80 or newer, tested up to 1.93.0 WIP
C++14
Dependencies for examples:
thedmd/imgui feature/layout-external (Dear ImGui 1.93.0 WIP with Stack Layout, used in blueprints sample)
stb, and GLFW on macOS, Linux, and Windows with the GLFW backend
CMake fetches all of them at revisions pinned in examples/cmake. An installed GLFW package is used when found.
Optional extension you can pull into your local copy of ImGui node editor can take advantage of:
https://github.com/thedmd/imgui/tree/feature/draw-list-fringe-scale (for sharp rendering, while zooming) It is part of ImGui since 1.80 release
https://github.com/thedmd/imgui/tree/feature/extra-keys (for extra shortcuts)
Building / Installing
Node Editor sources are located in root project directory. To use it, simply copy&paste sources into your project. Exactly like you can do with ImGui.
CMake uses the platform's default generator; -G Ninja or -G Xcode picks another. The executables are in build/bin. They find their data next to them, so they can be started from any directory.
On Windows the examples use Win32 and DirectX 11. -DIMGUI_NODE_EDITOR_EXAMPLES_BACKEND=glfw -DIMGUI_NODE_EDITOR_EXAMPLES_RENDERER=opengl3 builds them with GLFW and OpenGL instead.
On Linux, GLFW needs the X11, Wayland and OpenGL development packages, for example on Ubuntu:
On macOS, the Xcode command line tools are enough.
To build offline or against a local checkout of a dependency, point FetchContent at it, for example -DFETCHCONTENT_SOURCE_DIR_IMGUI=<path>. FETCHCONTENT_SOURCE_DIR_STB and FETCHCONTENT_SOURCE_DIR_GLFW work the same way.
-DIMGUI_DIR=<path> tests against another copy of Dear ImGui. The suite needs 1.89 or newer; with an older one only a compatibility test is built, which drives the editor with any Dear ImGui from 1.80. -DIMGUI_NODE_EDITOR_TESTS_SANITIZE=ON builds with AddressSanitizer and adds the tests that detect memory errors. Tests of open issues are expected to fail until the issue is fixed.
python tests/imgui_walk.py --imgui-repo <clone of Dear ImGui> --work <directory> runs the tests against every Dear ImGui release from 1.80 on, and accepts -strict and docking variants of revisions.
Quick Start
Main node editor header is located in imgui_node_editor.h.
Minimal example of one node can be found in simple-example.cpp.
Press 'F' in editor to focus on editor content if you see only grid.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/thedmd/imgui-node-editor là nguồn chính thức.
thedmd/imgui-node-editor có bao nhiêu sao?
thedmd/imgui-node-editor có 4.6k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/thedmd/imgui-node-editor. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
thedmd/imgui-node-editor có phải mã nguồn mở không?
Có — thedmd/imgui-node-editor phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/thedmd/imgui-node-editor.
thedmd/imgui-node-editor còn đang phát triển không?
Commit gần nhất trên thedmd/imgui-node-editor là 22 ngày trước (theo timestamp GitHub). Repo có 711 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
thedmd/imgui-node-editor dùng license gì?
thedmd/imgui-node-editor phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
thedmd/imgui-node-editor là gì?
thedmd/imgui-node-editor (thedmd/imgui-node-editor) là dự án C++ trên GitHub. Theo mô tả gốc: Node Editor built using Dear ImGui
thedmd/imgui-node-editor viết bằng ngôn ngữ gì?
thedmd/imgui-node-editor chủ yếu viết bằng C++. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về imgui-node-editor?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về imgui-node-editor.