Tools
Create tool files:
src/visualizer/tools/your_tool.hpp
and.cpp
- Inherit from
ToolBase
, implement:getName()
,getDescription()
,renderUI()
- Inherit from
Register tool: In
tool_manager.cpp
add toregisterBuiltinTools()
:registry_.registerTool<YourTool>();
Update build: In
CMakeLists.txt
add:tools/your_tool.cpp
Build & run - Your tool appears automatically in the Tools panel!
Example minimal tool: Copy crop_box_tool.hpp/cpp
, rename class, change getName()
to return your tool name.