mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-06 16:49:05 +00:00
Weight/Length filament info in stats
This commit is contained in:
@@ -13,6 +13,14 @@ public class GCodeProcessorResult {
|
||||
pointer = ptr;
|
||||
}
|
||||
|
||||
public double getUsedFilamentMM(@GCodeViewer.ExtrusionRole int role) {
|
||||
return Native.gcoderesult_get_used_filament_mm(pointer, role);
|
||||
}
|
||||
|
||||
public double getUsedFilamentG(@GCodeViewer.ExtrusionRole int role) {
|
||||
return Native.gcoderesult_get_used_filament_g(pointer, role);
|
||||
}
|
||||
|
||||
public String getRecommendedName() {
|
||||
return Native.gcoderesult_get_recommended_name(pointer);
|
||||
}
|
||||
|
||||
@@ -73,6 +73,8 @@ class Native {
|
||||
|
||||
static native long gcoderesult_load_file(String path, String name);
|
||||
static native String gcoderesult_get_recommended_name(long ptr);
|
||||
static native double gcoderesult_get_used_filament_mm(long ptr, int role);
|
||||
static native double gcoderesult_get_used_filament_g(long ptr, int role);
|
||||
static native void gcoderesult_release(long ptr);
|
||||
|
||||
static native long vgcode_create();
|
||||
|
||||
Reference in New Issue
Block a user