-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplugins.cpp
75 lines (57 loc) · 2.38 KB
/
plugins.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#include <yaml-cpp/yaml.h>
#include <noether_gui/plugin_interface.h>
// Includes for the widgets to be used for the plugin
// TODO: Uncomment in exercise 2a
// #include <noether_roscon_2024/exercise_2a/camera_standoff_tool_path_modifier_widget.h>
// TODO: Uncomment in exercise 2b
// #include <noether_roscon_2024/exercise_2b/cylinder_segmentation_mesh_modifier_widget.h>
// TODO: Uncomment in exercise 2c
// #include <noether_roscon_2024/exercise_2c/no_op_tool_path_planner_widget.h>
namespace noether
{
// TODO: Uncomment in exercise 2a
// struct CameraStandoffToolPathModifierWidgetPlugin : public ToolPathModifierWidgetPlugin
// {
// QWidget* create(QWidget* parent = nullptr, const YAML::Node& config = {}) const override
// {
// // Create the widget for the camera standoff tool path modifier
// auto* widget = new CameraStandoffToolPathModifierWidget(parent);
// // Attempt to configure the widget
// if (!config.IsNull())
// widget->configure(config);
// return widget;
// }
// };
// TODO: Uncomment in exercise 2b
// struct CylinderSegmentationMeshModifierWidgetPlugin : public MeshModifierWidgetPlugin
// {
// QWidget* create(QWidget* parent = nullptr, const YAML::Node& config = {}) const override
// {
// // Create the widget for the cylinder segmentation mesh modifier
// auto* widget = new CylinderSegmentationMeshModifierWidget(parent);
// // Attempt to configure the widget
// if (!config.IsNull())
// widget->configure(config);
// return widget;
// }
// };
// TODO: Uncomment in exercise 2c
// struct NoOpToolPathPlannerWidgetPlugin : public ToolPathPlannerWidgetPlugin
// {
// QWidget* create(QWidget* parent = nullptr, const YAML::Node& config = {}) const override
// {
// auto* widget = new NoOpToolPathPlannerWidget(parent);
// // Attempt to configure the widget
// if (!config.IsNull())
// widget->configure(config);
// return widget;
// }
// };
} // namespace noether
// Export the plugin
// TODO: Uncomment in exercise 2a
// EXPORT_TOOL_PATH_MODIFIER_WIDGET_PLUGIN(noether::CameraStandoffToolPathModifierWidgetPlugin, CameraStandoff)
// TODO: Uncomment in exercise 2b
// EXPORT_MESH_MODIFIER_WIDGET_PLUGIN(noether::CylinderSegmentationMeshModifierWidgetPlugin, CylinderSegmentation)
// TODO: Uncomment in exercise 2c
// EXPORT_TPP_WIDGET_PLUGIN(noether::NoOpToolPathPlannerWidgetPlugin, NoOpPlanner)