mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
Added measure text size setting, changed look and feel of point to point
This commit is contained in:
@@ -658,6 +658,13 @@ void setMetricSystemNative(const void *object, bool enabled)
|
||||
else
|
||||
UERROR("object is null!");
|
||||
}
|
||||
void setMeasuringTextSizeNative(const void *object, float size)
|
||||
{
|
||||
if(object)
|
||||
return native(object)->setMeasuringTextSize(size);
|
||||
else
|
||||
UERROR("object is null!");
|
||||
}
|
||||
void clearMeasuresNative(const void *object)
|
||||
{
|
||||
if(object)
|
||||
|
||||
@@ -120,6 +120,7 @@ void addMeasureNative(const void *object);
|
||||
void teleportNative(const void *object);
|
||||
void setMeasuringModeNative(const void *object, int mode);
|
||||
void setMetricSystemNative(const void *object, bool enabled);
|
||||
void setMeasuringTextSizeNative(const void *object, float size);
|
||||
void clearMeasuresNative(const void *object);
|
||||
|
||||
typedef struct ImageNative
|
||||
|
||||
@@ -167,6 +167,9 @@ class RTABMap {
|
||||
func setMetricSystem(_ enabled: Bool) {
|
||||
setMetricSystemNative(native_rtabmap, enabled)
|
||||
}
|
||||
func setMeasuringTextSize(_ size: Float32) {
|
||||
setMeasuringTextSizeNative(native_rtabmap, size)
|
||||
}
|
||||
func clearMeasures() {
|
||||
clearMeasuresNative(native_rtabmap)
|
||||
}
|
||||
|
||||
@@ -1555,6 +1555,9 @@ class ViewController: GLKViewController, ARSessionDelegate, RTABMapObserver, UIP
|
||||
rtabmap!.setMaxGainRadius(value: defaults.float(forKey: "ColorCorrectionRadius"));
|
||||
rtabmap!.setRenderingTextureDecimation(value: defaults.integer(forKey: "TextureResolution"));
|
||||
|
||||
rtabmap!.setMetricSystem(defaults.integer(forKey: "MeasuringUnits") == 0);
|
||||
rtabmap!.setMeasuringTextSize(defaults.float(forKey: "MeasuringTextSize"));
|
||||
|
||||
if(locationManager != nil && !defaults.bool(forKey: "SaveGPS"))
|
||||
{
|
||||
locationManager?.stopUpdatingLocation()
|
||||
|
||||
Reference in New Issue
Block a user