◆ addTrackerData()
void com.maxst.ar.TrackerManager.addTrackerData |
( |
String |
trackingFileName, |
|
|
boolean |
isAndroidAssetFile |
|
) |
| |
Add map file to candidate list.
- Parameters
-
trackingFileName | absolute file path if map file is located in sdcard, relative file name path map file is located in assets folder |
isAndroidAssetFile | flag for notify map file is located in assets folder |
◆ destroyTracker()
void com.maxst.ar.TrackerManager.destroyTracker |
( |
| ) |
|
Remove all tracking data (Map data and tracking result)
◆ findSurface()
void com.maxst.ar.TrackerManager.findSurface |
( |
| ) |
|
Get QRCode / Barcode recognition result
- Returns
- QRCode text or barcode text Start to find the surface of an environment from a camera image
◆ getFeatureCount()
int com.maxst.ar.TrackerManager.getFeatureCount |
( |
| ) |
|
Get the number of features included in surface data
- Returns
- feature point count
◆ getInstance()
◆ getKeyframeCount()
int com.maxst.ar.TrackerManager.getKeyframeCount |
( |
| ) |
|
Get the number of keyframes included in surface data
- Returns
- key frame count
◆ getSurfaceMesh()
SurfaceMesh com.maxst.ar.TrackerManager.getSurfaceMesh |
( |
| ) |
|
Get surface mesh information of the found surface after the findSurface method has been called
- Returns
- SurfaceMesh instance
◆ getWorldPositionFromScreenCoordinate()
void com.maxst.ar.TrackerManager.getWorldPositionFromScreenCoordinate |
( |
float [] |
screenCoord, |
|
|
float [] |
worldPos |
|
) |
| |
Get 3d world coordinate corresponding to given 2d screen position
- Parameters
-
screenCoord | screen touch x, y position |
worldPos | world position x, y, z |
◆ isTrackerDataLoadCompleted()
boolean com.maxst.ar.TrackerManager.isTrackerDataLoadCompleted |
( |
| ) |
|
Get map files loading state. This is for UI expression.
- Returns
- true if map loading is completed
◆ loadTrackerData()
void com.maxst.ar.TrackerManager.loadTrackerData |
( |
| ) |
|
Load map files in candidate list to memory. This method don't block main(UI) thread
◆ quitFindingSurface()
void com.maxst.ar.TrackerManager.quitFindingSurface |
( |
| ) |
|
Stop to find the surface6
◆ removeTrackerData()
void com.maxst.ar.TrackerManager.removeTrackerData |
( |
String |
trackingFileName | ) |
|
Remove map file from candidate list.
- Parameters
-
trackingFileName | map file name. If set "" (empty) file list will be cleared. |
◆ saveFrames()
void com.maxst.ar.TrackerManager.saveFrames |
( |
| ) |
|
◆ saveSurfaceData()
Save the surface data to file
- Parameters
-
fileName | file path (should be absolute path) |
- Returns
- SurfaceThumbnail instance if true else null
◆ setTrackingOption()
void com.maxst.ar.TrackerManager.setTrackingOption |
( |
TrackingOption |
option | ) |
|
◆ startTracker()
void com.maxst.ar.TrackerManager.startTracker |
( |
int |
trackerType | ) |
|
Start AR engine. Only one tracking engine could be run at one time
- Parameters
-
trackerType | tracking engine type |
◆ stopTracker()
void com.maxst.ar.TrackerManager.stopTracker |
( |
| ) |
|
◆ updateTrackingState()
TrackingState com.maxst.ar.TrackerManager.updateTrackingState |
( |
| ) |
|
Update tracking state. This method should be called before getTrackingResult and background rendering
◆ TRACKER_TYPE_CODE_SCANNER
final int com.maxst.ar.TrackerManager.TRACKER_TYPE_CODE_SCANNER = 0X01 |
|
static |
◆ TRACKER_TYPE_IMAGE
final int com.maxst.ar.TrackerManager.TRACKER_TYPE_IMAGE = 0X02 |
|
static |
◆ TRACKER_TYPE_INSTANT
final int com.maxst.ar.TrackerManager.TRACKER_TYPE_INSTANT = 0x20 |
|
static |
◆ TRACKER_TYPE_OBJECT
final int com.maxst.ar.TrackerManager.TRACKER_TYPE_OBJECT = 0X08 |
|
static |
Object tracker (Object data should be created via SLAM tracker)
◆ TRACKER_TYPE_SLAM
final int com.maxst.ar.TrackerManager.TRACKER_TYPE_SLAM = 0x10 |
|
static |
Visual slam tracker (Can create surface data and save it)
The documentation for this class was generated from the following file:
- E:/Workspace/MaxstARSDK/Platform/MaxstARAndroid/MaxstAR/src/main/java/com/maxst/ar/TrackerManager.java