Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
config:
- {
name: "Ubuntu Low (AppImage)",
os: "ubuntu-20.04",
cc: "gcc-10",
cxx: "g++-10"
os: "ubuntu-22.04",
cc: "gcc-11",
cxx: "g++-11"
}
- {
name: "Ubuntu High",
os: "ubuntu-22.04",
cc: "clang-14",
cxx: "clang++-14"
os: "ubuntu-24.04",
cc: "clang-18",
cxx: "clang++-18"
}
fail-fast: false
env:
Expand All @@ -42,13 +42,13 @@ jobs:
- name: Update apt
run: sudo apt update
- name: Install missing packages
run: sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
run: sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libglu1-mesa-dev freeglut3-dev libfuse2 mesa-common-dev libwayland-bin libwayland-dev libxkbcommon-dev xorg-dev
- name: Check config
run: |
$CC --version
$CXX --version
- name: Configure
run: cmake -S . -B $bld_dir -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC --install-prefix $app_dir/usr -DARB_ARCH=x86-64-v2
run: cmake -S . -B $bld_dir -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC --install-prefix $app_dir/usr -DARB_ARCH=haswell
- name: Build
run: cmake --build $bld_dir -j 2
- name: Install
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Get artifacts"
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Move and rename appimage
run: mv */*.AppImage arbor-gui.AppImage
- name: Move and rename dmg
Expand All @@ -122,4 +122,3 @@ jobs:
generateReleaseNotes: true
artifacts: '*.dmg,*.AppImage,*.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion 3rd-party/arbor
Submodule arbor updated 812 files
2 changes: 1 addition & 1 deletion 3rd-party/fmt
Submodule fmt updated 206 files
2 changes: 1 addition & 1 deletion 3rd-party/glbinding
Submodule glbinding updated 54 files
+4 −1 .gitignore
+15 −10 AUTHORS
+1 −1 CMakeLists.txt
+1 −1 LICENSE
+9 −8 README.md
+17 −6 cmake/CompileOptions.cmake
+1 −1 data/cubescape-gles/cubescape.frag
+1 −3 data/cubescape-gles/cubescape.geom
+1 −1 data/cubescape-gles/cubescape.vert
+2 −1 deploy/ubuntu-ppa/debian/control
+2 −2 deploy/ubuntu-ppa/debian/copyright
+1 −0 source/examples/CMakeLists.txt
+1 −1 source/examples/cubescape-gles/CMakeLists.txt
+161 −0 source/examples/cubescape-wgl/CMakeLists.txt
+265 −0 source/examples/cubescape-wgl/CubeScape.cpp
+47 −0 source/examples/cubescape-wgl/CubeScape.h
+59 −0 source/examples/cubescape-wgl/RawFile.cpp
+32 −0 source/examples/cubescape-wgl/RawFile.h
+273 −0 source/examples/cubescape-wgl/glutils.cpp
+50 −0 source/examples/cubescape-wgl/glutils.h
+131 −0 source/examples/cubescape-wgl/main.cpp
+1 −1 source/glbinding-aux/include/glbinding-aux/logging.h
+10 −10 source/glbinding-aux/source/Meta_BitfieldsByString.cpp
+1 −0 source/glbinding-aux/source/Meta_ExtensionsByString.cpp
+1 −0 source/glbinding-aux/source/Meta_StringsByBitfield.cpp
+1 −0 source/glbinding-aux/source/Meta_StringsByExtension.cpp
+1 −1 source/glbinding-aux/source/glrevision.h
+3 −2 source/glbinding-aux/source/logging.cpp
+11 −11 source/glbinding/include/glbinding/Binding.h
+28 −27 source/glbinding/include/glbinding/gl/bitfield.h
+3,113 −3,203 source/glbinding/include/glbinding/gl/enum.h
+1 −0 source/glbinding/include/glbinding/gl/extension.h
+10 −10 source/glbinding/include/glbinding/gl/functions.h
+50 −50 source/glbinding/include/glbinding/gl/types.h
+1 −1 source/glbinding/include/glbinding/glbinding.h
+6 −3 source/glbinding/source/Binding.cpp
+3 −3 source/glbinding/source/Binding_objects_a.cpp
+4 −4 source/glbinding/source/Binding_objects_c.cpp
+2 −2 source/glbinding/source/Binding_objects_g.cpp
+1 −1 source/glbinding/source/Binding_objects_h.cpp
+3 −3 source/glbinding/source/gl/functions_a.cpp
+4 −4 source/glbinding/source/gl/functions_c.cpp
+2 −2 source/glbinding/source/gl/functions_g.cpp
+1 −1 source/glbinding/source/gl/functions_h.cpp
+4 −0 source/tools/CMakeLists.txt
+1 −1 source/tools/glcontexts/CMakeLists.txt
+2 −0 source/tools/glcontexts/main.cpp
+134 −0 source/tools/glescontexts/CMakeLists.txt
+125 −0 source/tools/glescontexts/main.cpp
+1 −1 source/tools/glfunctions/CMakeLists.txt
+1 −1 source/tools/glinfo/CMakeLists.txt
+1 −1 source/tools/glisdeprecated/CMakeLists.txt
+1 −1 source/tools/glmeta/CMakeLists.txt
+1 −1 source/tools/glqueries/CMakeLists.txt
2 changes: 1 addition & 1 deletion 3rd-party/glfw
Submodule glfw updated 165 files
2 changes: 1 addition & 1 deletion 3rd-party/glm
Submodule glm updated 1704 files
2 changes: 1 addition & 1 deletion 3rd-party/icons
Submodule icons updated 79 files
+414 −146 GenerateIconFontCppHeaders.py
+590 −0 IconsCodicons.cs
+588 −0 IconsCodicons.go
+584 −0 IconsCodicons.h
+584 −0 IconsCodicons.py
+582 −0 IconsCodicons.rs
+9 −4 IconsFontAwesome4.cs
+692 −0 IconsFontAwesome4.go
+6 −3 IconsFontAwesome4.h
+688 −0 IconsFontAwesome4.py
+686 −0 IconsFontAwesome4.rs
+10 −5 IconsFontAwesome5.cs
+1,020 −0 IconsFontAwesome5.go
+6 −3 IconsFontAwesome5.h
+1,016 −0 IconsFontAwesome5.py
+1,014 −0 IconsFontAwesome5.rs
+9 −4 IconsFontAwesome5Brands.cs
+474 −0 IconsFontAwesome5Brands.go
+6 −3 IconsFontAwesome5Brands.h
+470 −0 IconsFontAwesome5Brands.py
+468 −0 IconsFontAwesome5Brands.rs
+11 −6 IconsFontAwesome5Pro.cs
+1,872 −0 IconsFontAwesome5Pro.go
+6 −3 IconsFontAwesome5Pro.h
+1,868 −0 IconsFontAwesome5Pro.py
+1,866 −0 IconsFontAwesome5Pro.rs
+9 −5 IconsFontAwesome5ProBrands.cs
+474 −0 IconsFontAwesome5ProBrands.go
+6 −4 IconsFontAwesome5ProBrands.h
+470 −0 IconsFontAwesome5ProBrands.py
+468 −0 IconsFontAwesome5ProBrands.rs
+27 −15 IconsFontAwesome6.cs
+1,410 −0 IconsFontAwesome6.go
+23 −13 IconsFontAwesome6.h
+1,406 −0 IconsFontAwesome6.py
+1,404 −0 IconsFontAwesome6.rs
+61 −28 IconsFontAwesome6Brands.cs
+507 −0 IconsFontAwesome6Brands.go
+58 −27 IconsFontAwesome6Brands.h
+503 −0 IconsFontAwesome6Brands.py
+501 −0 IconsFontAwesome6Brands.rs
+9 −4 IconsFontaudio.cs
+172 −0 IconsFontaudio.go
+6 −3 IconsFontaudio.h
+168 −0 IconsFontaudio.py
+166 −0 IconsFontaudio.rs
+9 −4 IconsForkAwesome.cs
+828 −0 IconsForkAwesome.go
+6 −3 IconsForkAwesome.h
+824 −0 IconsForkAwesome.py
+822 −0 IconsForkAwesome.rs
+9 −4 IconsKenney.cs
+245 −0 IconsKenney.go
+6 −3 IconsKenney.h
+241 −0 IconsKenney.py
+239 −0 IconsKenney.rs
+1,487 −0 IconsLucide.cs
+1,485 −0 IconsLucide.go
+1,481 −0 IconsLucide.h
+1,481 −0 IconsLucide.py
+1,479 −0 IconsLucide.rs
+27 −6 IconsMaterialDesign.cs
+2,251 −0 IconsMaterialDesign.go
+23 −4 IconsMaterialDesign.h
+2,247 −0 IconsMaterialDesign.py
+2,245 −0 IconsMaterialDesign.rs
+7,467 −0 IconsMaterialDesignIcons.cs
+7,465 −0 IconsMaterialDesignIcons.go
+7,461 −0 IconsMaterialDesignIcons.h
+7,461 −0 IconsMaterialDesignIcons.py
+7,459 −0 IconsMaterialDesignIcons.rs
+3,649 −0 IconsMaterialSymbols.cs
+3,647 −0 IconsMaterialSymbols.go
+3,643 −0 IconsMaterialSymbols.h
+3,643 −0 IconsMaterialSymbols.py
+3,641 −0 IconsMaterialSymbols.rs
+77 −27 README.md
+17 −0 font.go
+3 −0 go.mod
2 changes: 1 addition & 1 deletion 3rd-party/imgui
Submodule imgui updated 215 files
2 changes: 1 addition & 1 deletion 3rd-party/implot
2 changes: 1 addition & 1 deletion 3rd-party/json
Submodule json updated 366 files
2 changes: 1 addition & 1 deletion 3rd-party/spdlog
Submodule spdlog updated 169 files
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.27)

find_package(Git)

project(the-arbor-gui
VERSION 0.8.1
VERSION 0.11.1
LANGUAGES C CXX)

set(EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_CXX_STANDARD 20)
include(GNUInstallDirs)

Expand Down Expand Up @@ -141,6 +143,7 @@ target_include_directories(imgui PRIVATE 3rd-party/imgui)
target_include_directories(imgui PUBLIC 3rd-party/implot)
target_include_directories(imgui PUBLIC 3rd-party/ImGuizmo/)
target_link_libraries(imgui PRIVATE glfw)
target_compile_definitions(arbor-gui-deps INTERFACE SPDLOG_FMT_EXTERNAL)

# Get commit hashes from git and inject into config
execute_process(COMMAND ${GIT_EXECUTABLE} -C ${PROJECT_SOURCE_DIR} describe --always --dirty --abbrev=0
Expand Down
6 changes: 4 additions & 2 deletions data/ball_and_stick.swc
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
1 1 -3.0 0.0 0.0 3 -1
2 1 3.0 0.0 0.0 3 1
# SWC format: ID, Type, X, Y, Z, Radius, Parent
1 1 0.0 0.0 0.0 10.0 -1 # Soma
2 3 0.0 0.0 10.0 1.0 1 # Dendrite
3 3 0.0 0.0 20.0 1.0 2 # Dendrite
8 changes: 8 additions & 0 deletions data/swc-interpretation/normal-soma-normal-dend.swc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# id, tag, x, y, z, radius, parent
1 1 -3.0 0.0 0.0 3.0 -1
2 1 -3.0 0.0 3.0 3.0 1
3 3 -3.0 -6.0 0.0 3.0 1
4 3 -3.0 -9.0 0.0 3.0 3
5 2 -3.0 6.0 0.0 3.0 1
6 2 -3.0 12.0 0.0 3.0 5
7 2 -3.0 18.0 0.0 3.0 6
7 changes: 7 additions & 0 deletions data/swc-interpretation/normal-soma-single-dend.swc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# id, tag, x, y, z, radius, parent
1 1 -3.0 0.0 0.0 3.0 -1
2 1 3.0 0.0 0.0 3.0 1
3 3 -3.0 -6.0 0.0 3.0 1
4 2 -3.0 6.0 0.0 3.0 1
5 2 -3.0 12.0 0.0 3.0 4
6 2 -3.0 18.0 0.0 3.0 5
7 changes: 7 additions & 0 deletions data/swc-interpretation/single-soma-normal-dend.swc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# id, tag, x, y, z, radius, parent
1 1 -3.0 0.0 0.0 3.0 -1
2 3 -3.0 -6.0 0.0 3.0 1
3 3 -3.0 -9.0 0.0 3.0 2
4 2 -3.0 6.0 0.0 3.0 1
5 2 -3.0 12.0 0.0 3.0 4
6 2 -3.0 18.0 0.0 3.0 5
6 changes: 6 additions & 0 deletions data/swc-interpretation/single-soma-single-dend.swc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# id, tag, x, y, z, radius, parent
1 1 -3.0 0.0 0.0 3.0 -1
2 3 -3.0 -6.0 0.0 3.0 1
3 2 -3.0 6.0 0.0 3.0 1
4 2 -3.0 12.0 0.0 3.0 3
5 2 -3.0 18.0 0.0 3.0 4
45 changes: 23 additions & 22 deletions default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,43 @@ Collapsed=0

[Window][ Locations]
Pos=0,24
Size=339,696
Size=338,696
Collapsed=0
DockId=0x00000001,0

[Window][Cell]
Pos=341,24
Size=939,559
Pos=340,24
Size=940,559
Collapsed=0
DockId=0x00000003,0
DockId=0x00000002,0

[Window][Traces]
Pos=341,24
Size=939,559
Pos=340,24
Size=940,559
Collapsed=0
DockId=0x00000003,1
DockId=0x00000002,1

[Window][ Morphology##info]
Pos=341,585
Size=480,135
Pos=340,585
Size=603,135
Collapsed=0
DockId=0x00000005,0
DockId=0x00000004,0

[Window][ Locations##info]
Pos=823,585
Size=457,135
Pos=945,585
Size=335,135
Collapsed=0
DockId=0x00000006,0
DockId=0x00000005,0

[Window][ Parameters]
Pos=0,24
Size=339,696
Size=338,696
Collapsed=0
DockId=0x00000001,1

[Window][ Simulation]
Pos=0,24
Size=339,696
Size=338,696
Collapsed=0
DockId=0x00000001,2

Expand All @@ -66,11 +66,12 @@ Size=758,446
Collapsed=0

[Docking][Data]
DockSpace ID=0x3BC79352 Window=0x4647B76E Pos=0,24 Size=1280,696 Split=X Selected=0xBF700C0A
DockNode ID=0x00000001 Parent=0x3BC79352 SizeRef=339,696 CentralNode=1 Selected=0xBF700C0A
DockNode ID=0x00000002 Parent=0x3BC79352 SizeRef=939,696 Split=Y Selected=0x90C8F40C
DockNode ID=0x00000003 Parent=0x00000002 SizeRef=939,559 Selected=0x65F68FF8
DockNode ID=0x00000004 Parent=0x00000002 SizeRef=939,135 Split=X Selected=0xAB9526FD
DockNode ID=0x00000005 Parent=0x00000004 SizeRef=480,135 Selected=0x93CAA630
DockNode ID=0x00000006 Parent=0x00000004 SizeRef=457,135 Selected=0xAB9526FD
DockSpace ID=0x3BC79352 Pos=0,24 Size=1280,696 CentralNode=1 Selected=0xBF700C0A
DockSpace ID=0xC0DFADC4 Window=0xD0388BC8 Pos=0,24 Size=1280,696 Split=X Selected=0x9FA67BE9
DockNode ID=0x00000001 Parent=0xC0DFADC4 SizeRef=338,696 Selected=0xBB245857
DockNode ID=0x00000006 Parent=0xC0DFADC4 SizeRef=940,696 Split=Y
DockNode ID=0x00000002 Parent=0x00000006 SizeRef=1280,559 CentralNode=1 Selected=0x47506C1A
DockNode ID=0x00000003 Parent=0x00000006 SizeRef=1280,135 Split=X Selected=0x29E5A105
DockNode ID=0x00000004 Parent=0x00000003 SizeRef=821,135 Selected=0x29E5A105
DockNode ID=0x00000005 Parent=0x00000003 SizeRef=457,135 Selected=0x655FAFBA

3 changes: 3 additions & 0 deletions src/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,12 +699,14 @@ void geometry::load_geometry(const arb::morphology& morph, bool reset) {
branch_to_ids[branch].emplace_back(lo, hi);
}
}
log_info("Loaded {} segments and {} branches", segments.size(), morph.num_branches());

log_info("Making geometry");
if (segments.empty()) {
log_info("Empty geometry");
return;
}

root = {(float) segments[0].prox.x, (float) segments[0].prox.y, (float) segments[0].prox.z};
log_debug("New root x={} y={} z={}", root.x, root.y, root.z);
{
Expand All @@ -724,6 +726,7 @@ void geometry::load_geometry(const arb::morphology& morph, bool reset) {
}
log_debug("Frustra generated: {} ({} points)", indices.size()/n_indices, vertices.size());


{
// Re-scale into [-1, 1]^3 box
rescale = ax.scale;
Expand Down
Loading
Loading