Skip to content

Commit 0358f13

Browse files
Commit changes with breaking behavior
1 parent 84e5b5c commit 0358f13

File tree

6 files changed

+26
-47
lines changed

6 files changed

+26
-47
lines changed

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
4545
#Find all required third parties (this should be moved elsewhere)
4646
find_package(asio CONFIG REQUIRED)
4747
find_package(Eigen3 CONFIG REQUIRED)
48-
#find_package(Ceres CONFIG REQUIRED)
49-
#find_package(unofficial-skia CONFIG REQUIRED)
48+
find_package(Ceres CONFIG REQUIRED)
49+
find_package(unofficial-skia CONFIG REQUIRED)
5050
find_package(nlohmann_json REQUIRED)
51-
#find_package(Vulkan REQUIRED)
52-
#find_package(glfw3 3.3 REQUIRED)
53-
#find_package(Boost COMPONENTS filesystem)
51+
find_package(Vulkan REQUIRED)
52+
find_package(glfw3 3.3 REQUIRED)
53+
find_package(Boost COMPONENTS filesystem)
5454
find_package(vsg CONFIG REQUIRED)
5555
find_package(vsgXchange CONFIG REQUIRED)
5656
find_package(vsgImGui CONFIG REQUIRED)
5757
find_package(RBDL CONFIG REQUIRED)
58-
#find_package(gflags REQUIRED)
59-
#find_package(glog REQUIRED)
58+
find_package(gflags REQUIRED)
59+
find_package(glog REQUIRED)
6060

6161

6262
#Externally provided targets
@@ -96,7 +96,7 @@ add_custom_target(
9696
add_subdirectory(libraries)
9797

9898
# Add medical applications
99-
#add_subdirectory(applications)
99+
add_subdirectory(applications)
100100

101101
# Most of the time there is no need to compile the tests and the tutorials
102102
# folder so you can comment out these subfolders from the build directory

CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"binaryDir": "build/debug",
99
"cacheVariables": {
1010
"CMAKE_BUILD_TYPE": "Debug",
11-
"CURAN_PLUS_EXECUTABLE_PATH": "C:/Users/joaom/PlusApp-2.8.0.20191105-Win32/bin/PlusServer.exe"
11+
"CURAN_PLUS_EXECUTABLE_PATH": "C:/Users/SURGROB7/PlusApp-2.8.0.20191105-Win64/bin/PlusServer.exe"
1212
}
1313
},
1414
{
@@ -18,7 +18,7 @@
1818
"binaryDir": "build/release",
1919
"cacheVariables": {
2020
"CMAKE_BUILD_TYPE": "Release",
21-
"CURAN_PLUS_EXECUTABLE_PATH": "C:/Users/joaom/PlusApp-2.8.0.20191105-Win32/bin/PlusServer.exe"
21+
"CURAN_PLUS_EXECUTABLE_PATH": "C:/Users/SURGROB7/PlusApp-2.8.0.20191105-Win64/bin/PlusServer.exe"
2222
}
2323
}
2424
],

libraries/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
add_subdirectory(utils)
22
add_subdirectory(communication)
3-
#add_subdirectory(userinterface)
3+
add_subdirectory(userinterface)
44
add_subdirectory(rendering)
5-
#add_subdirectory(imageprocessing)
6-
#add_subdirectory(optimization)
7-
#add_subdirectory(geometry)
8-
#add_subdirectory(gaussianmixtures)
5+
add_subdirectory(imageprocessing)
6+
add_subdirectory(optimization)
7+
add_subdirectory(geometry)
8+
add_subdirectory(gaussianmixtures)
99
add_subdirectory(robotutils)

libraries/userinterface/src/SliderPanel.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ namespace curan
542542
}
543543
}
544544

545-
if (zoom_in && get_hightlight_color() == SkColorSetARGB(255, 125, 0, 0))
545+
if (zoom_in && get_hightlight_color() == SkColorSetARGB(255, 125, 0, 0) && interpreter.check(INSIDE_ALLOCATED_AREA))
546546
zoom_in.draw(canvas);
547547

548548
slider_paint.setColor(slider_color);
@@ -591,7 +591,6 @@ namespace curan
591591
for (auto &pending : volumetric_mask->callbacks_pressedhighlighted)
592592
pending(volumetric_mask, config, highlighted_stroke);
593593

594-
595594
pending_strokes_to_process.clear();
596595

597596
auto check_inside_fixed_area = [this](double x, double y)
@@ -607,6 +606,7 @@ namespace curan
607606
interpreter.process(check_inside_allocated_area, check_inside_fixed_area, sig);
608607

609608
if (interpreter.check(KEYBOARD_EVENT)){
609+
610610
set_current_state(SliderStates::WAITING);
611611
auto arg = std::get<curan::ui::Key>(sig);
612612
if (arg.key == GLFW_KEY_A && arg.action == GLFW_PRESS)
@@ -615,7 +615,7 @@ namespace curan
615615
zoom_in.deactivate();
616616
else
617617
zoom_in.activate();
618-
return true;
618+
619619
}
620620

621621
if (arg.key == GLFW_KEY_S && arg.action == GLFW_PRESS)
@@ -626,13 +626,10 @@ namespace curan
626626
insert_in_map(current_stroke);
627627
current_stroke.clear();
628628
}
629-
return true;
630629
}
631630
return false;
632631
}
633632

634-
is_pressed = false;
635-
636633
if (interpreter.check(OUTSIDE_ALLOCATED_AREA))
637634
{
638635
set_current_state(SliderStates::WAITING);
@@ -711,6 +708,13 @@ namespace curan
711708
return true;
712709
}
713710

711+
if(interpreter.status() & ~MOUSE_CLICKED_LEFT_WAS_INSIDE_FIXED && interpreter.check(INSIDE_ALLOCATED_AREA | MOUSE_CLICKED_LEFT_EVENT) ){
712+
set_current_state(SliderStates::PRESSED);
713+
if (!is_highlighting)
714+
current_stroke.add_point(homogenenous_transformation, SkPoint::Make((float)xpos, (float)ypos));
715+
return true;
716+
}
717+
714718
if (interpreter.check(INSIDE_FIXED_AREA))
715719
{
716720
set_current_state(SliderStates::HOVER);

vcpkg copy.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"dependencies": [
33
"eigen3",
4+
"itk",
45
"ceres",
56
"asio",
67
"glfw3",

0 commit comments

Comments
 (0)