public final class InstantTrackerConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static float |
TRACKING_PLANE_ORIENTATION_HORIZONTAL
Constant for an horizontal instant tracking initialisation plane orientation.
|
static float |
TRACKING_PLANE_ORIENTATION_VERTICAL
Constant for a vertical instant tracking initialisation plane orientation.
|
Constructor and Description |
---|
InstantTrackerConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
enablePlaneDetection(PlaneDetectionConfiguration planeDetectionConfiguration)
Use this to specify whether the tracker should detect planes or not.
|
float |
getDeviceHeightAboveGround()
Returns the estimated height at which the device is currently above the ground.
|
PlaneDetectionConfiguration |
getPlaneDetectionConfiguration()
Returns the plane detection configuration of the tracker.
|
TrackerEfficiencyMode |
getTrackerEfficiencyMode()
Returns the efficiency mode of the tracker.
|
float |
getTrackingPlaneOrientation()
Returns the initial orientation at which the instant tracking plane should be displayed.
|
boolean |
isPlaneDetectionEnabled()
Returns if plane detection is enabled.
|
boolean |
isSMARTEnabled()
Returns if the Wikitude SDk should use SMART instead of only the Wikitude InstantTracking algorithms if
the device supports SMART.
|
void |
setDeviceHeightAboveGround(float height)
Sets the estimated height at which the device is currently above the ground.
|
void |
setSMARTEnabled(boolean enabled)
Defines if the Wikitude SDk should use SMART instead of only the Wikitude InstantTracking algorithms if
the device supports .
|
void |
setTrackerEfficiencyMode(TrackerEfficiencyMode trackerEfficiencyMode)
Use this to specify the efficiency mode of the tracker.
|
void |
setTrackingPlaneOrientation(float orientation)
Sets the initial orientation at which the instant tracking plane should be displayed.
|
public static final float TRACKING_PLANE_ORIENTATION_HORIZONTAL
public static final float TRACKING_PLANE_ORIENTATION_VERTICAL
public float getDeviceHeightAboveGround()
public void setDeviceHeightAboveGround(float height)
height
- estimated height in meterspublic float getTrackingPlaneOrientation()
public void setTrackingPlaneOrientation(float orientation)
orientation
- angle in degreepublic void setSMARTEnabled(boolean enabled)
enabled
- If SMART should be used.public boolean isSMARTEnabled()
public TrackerEfficiencyMode getTrackerEfficiencyMode()
TrackerEfficiencyMode
documentation for more details.public void setTrackerEfficiencyMode(TrackerEfficiencyMode trackerEfficiencyMode)
TrackerEfficiencyMode
documentation for more details.trackerEfficiencyMode
- the tracker efficiency mode that should be usedpublic PlaneDetectionConfiguration getPlaneDetectionConfiguration()
PlaneDetectionConfiguration
documentation for more details.public boolean isPlaneDetectionEnabled()
public void enablePlaneDetection(PlaneDetectionConfiguration planeDetectionConfiguration)
PlaneDetectionConfiguration
documentation for more details regarding how to customize plane detection.planeDetectionConfiguration
- The configuration for Plane detection.