![]() |
KudanAR - Unity
1.6.0
|
Base class for the tracker plugin. This abstracts the native plugin for each operating system. More...
Inherits Kudan.AR.ITracker.
Inherited by Kudan.AR.Tracker.
Public Member Functions | |
string | GetPluginVersion () |
Gets the current plugin version. More... | |
int | GetNumTrackables () |
Gets the number of trackables. More... | |
Trackable | GetTrackable (int index) |
Gets a trackable at given index. More... | |
bool | IsTrackingRunning () |
Determines whether tracking is running. More... | |
void | RemoveTrackable (string name) |
Removes a trackable with a given name. More... | |
void | ClearTrackables () |
Clears trackables. More... | |
abstract bool | InitPlugin () |
Initialisess the plugin. More... | |
abstract void | DeinitPlugin () |
Deinitialises the plugin. More... | |
abstract float | GetNativePluginVersion () |
Gets the native plugin version. More... | |
abstract void | OnApplicationFocus (bool focusStatus) |
Raises the application focus event. More... | |
abstract void | OnApplicationPause (bool pauseStatus) |
Raises the application pause event. More... | |
abstract int | GetNumCameras () |
Gets the number of cameras. More... | |
abstract bool | StartInputFromImage (Texture2D image) |
Starts input from an image. More... | |
abstract bool | StartInputFromCamera (int deviceIndex, int targetWidth, int targetHeight) |
Starts input from a given camera device. More... | |
abstract void | StopInput () |
Stops all input. More... | |
abstract bool | AddTrackable (byte[] data, string id, bool extensible) |
abstract bool | AddTrackableSet (byte[] data, string id) |
Adds a trackable with a given set of data and ID. More... | |
abstract void | UpdateTracking () |
Updates tracking. More... | |
abstract void | PostRender () |
Function called just after the current frame has been drawn. More... | |
abstract void | NativeRender () |
abstract void | StartTracking () |
Starts tracking. More... | |
abstract void | StopTracking () |
Stops tracking. More... | |
abstract bool | EnableTrackingMethod (int trackingMethodId) |
Enables the given tracking method. More... | |
abstract bool | DisableTrackingMethod (int trackingMethodId) |
Disables the given tracking method. More... | |
abstract bool | GetMarkerRecoveryStatus () |
Gets the marker recovery status. More... | |
abstract void | SetMarkerRecoveryStatus (bool status) |
Sets the marker recovery status. Enabling this feature allows for quicker re-detection if a marker is lost as well as making it easier to re-detect the marker from shallower angles and greater distances. This is a feature that we recommend everyone should generally enable. N.B. Enabling this feature will use a fraction more CPU power. More... | |
abstract bool | GetMarkerExtensibilityStatus () |
Gets the extensible markers status. More... | |
abstract void | SetMarkerExtensibilityStatus (bool status) |
Sets the extensability for all of the markers being added after this flag has been changed More... | |
abstract void | SetMaximumSimultaneousTracking (int maxToTrack) |
Set the maximum number of trackables which can be tracked at the same time. More... | |
abstract void | SetApiKey (string key, string bundleId) |
Sets the API key. More... | |
abstract void | ArbiTrackStart (Vector3 position, Quaternion orientation) |
Starts arbitrary tracking using a given position and orientation. More... | |
abstract void | ArbiTrackStop () |
Stops ArbiTrack and returns to placement mode More... | |
abstract bool | ArbiTrackIsTracking () |
Checks if arbitrary tracking is currently running. More... | |
abstract void | FloorPlaceGetPose (out Vector3 position, out Quaternion orientation) |
Gets the current position and orientation of the floor, relative to the device. More... | |
abstract void | ArbiTrackGetPose (out Vector3 position, out Quaternion orientation) |
Gets the current position and rotation of the markerless driver being tracked. More... | |
void | SetupRenderingCamera (float cameraNearPlane, float cameraFarPlane) |
Sets up the rendering camera. More... | |
bool | AddTrackableSet (string path, string id) |
Adds the trackable from a given path with a given ID. More... | |
Texture | GetTrackingTexture () |
Gets the tracking texture. More... | |
int | GetNumDetectedTrackables () |
Gets the number of detected trackables. More... | |
Trackable | GetDetectedTrackable (int index) |
Gets detected trackable at the given index. More... | |
Matrix4x4 | GetProjectionMatrix () |
Gets the projection matrix. More... | |
Trackable[] | GetDetectedTrackablesAsArray () |
Gets the detected trackables as array. More... | |
void | SetArbiTrackFloorHeight (float floorHeight) |
virtual void | updateCam () |
Updates the camera. More... | |
Protected Attributes | |
List< Trackable > | _trackables = new List<Trackable>() |
List of trackables the user has loaded. More... | |
float | _cameraNearPlane = 0.3f |
The default camera near plane value. More... | |
float | _cameraFarPlane = 1000f |
The default camera far plane value. More... | |
float | _floorHeight = 200.0f |
ArbiTracker default floor height. More... | |
System.Threading.Thread | _trackingThread |
The tracking thread. More... | |
bool | _isTrackingRunning |
Is tracking currently running? More... | |
Texture | _finalTexture |
The texture used to render to the camera. More... | |
Matrix4x4 | _projectionMatrix |
The projection matrix. More... | |
List< Trackable > | _detected = new List<Trackable>() |
List of detected trackables. More... | |
float | _cameraRate |
The camera rate, number of times the camera feed refreshes each second. More... | |
float | _trackerRate |
The tracker rate, the number of times the tracker updates each second. More... | |
float | _appRate |
The app rate, the number of times the app updates each second. More... | |
Texture | _clonedTexture |
The cloned texture. More... | |
Properties | |
float | CameraFrameRate [get] |
Gets the camera frame rate. More... | |
float | TrackerFrameRate [get] |
Gets the tracker frame rate. More... | |
float | AppFrameRate [get] |
Gets the app frame rate. More... | |
Base class for the tracker plugin. This abstracts the native plugin for each operating system.
|
pure virtual |
Adds a trackable with a given set of data and ID.
true
, if trackable was added, false
otherwise.data | Data. |
id | Identifier. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
inline |
Adds the trackable from a given path with a given ID.
true
, if trackable was added, false
otherwise.path | Path. |
id | Identifier. |
Implements Kudan.AR.ITracker.
|
pure virtual |
Gets the current position and rotation of the markerless driver being tracked.
position | Position. |
orientation | Orientation. |
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Checks if arbitrary tracking is currently running.
true
, if arbitrary tracking is running, false
otherwise.Implemented in Kudan.AR.Tracker.
|
pure virtual |
Starts arbitrary tracking using a given position and orientation.
position | Position. |
orientation | Orientation. |
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Stops ArbiTrack and returns to placement mode
Implemented in Kudan.AR.Tracker.
|
inline |
Clears trackables.
Implements Kudan.AR.ITracker.
|
pure virtual |
|
pure virtual |
Disables the given tracking method.
true
, if tracking method was disabled, false
otherwise.trackingMethodId | Tracking method identifier. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Enables the given tracking method.
true
, if tracking method was enabled, false
otherwise.trackingMethodId | Tracking method identifier. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Gets the current position and orientation of the floor, relative to the device.
position | Position. |
orientation | Orientation. |
Implemented in Kudan.AR.Tracker.
|
inline |
Gets detected trackable at the given index.
index | Index. |
Implements Kudan.AR.ITracker.
|
inline |
Gets the detected trackables as array.
|
pure virtual |
Gets the extensible markers status.
true
, if extensible markers status was gotten, false
otherwise.Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Gets the marker recovery status.
true
, if marker recovery is enabled, false
otherwise.Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Gets the native plugin version.
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Gets the number of cameras.
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
inline |
Gets the number of detected trackables.
Implements Kudan.AR.ITracker.
|
inline |
|
inline |
|
inline |
|
inline |
Gets a trackable at given index.
index | Index. |
Implements Kudan.AR.ITracker.
|
inline |
|
pure virtual |
Initialisess the plugin.
true
, if plugin was inited, false
otherwise.Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
inline |
Determines whether tracking is running.
true
if tracking is running; otherwise, false
.Implements Kudan.AR.ITracker.
|
pure virtual |
Raises the application focus event.
focusStatus | If set to true focus status. |
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Raises the application pause event.
pauseStatus | If set to true application is paused. |
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Function called just after the current frame has been drawn.
Implemented in Kudan.AR.Tracker.
|
inline |
|
pure virtual |
|
pure virtual |
Sets the extensability for all of the markers being added after this flag has been changed
status | If set to true status. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Sets the marker recovery status. Enabling this feature allows for quicker re-detection if a marker is lost as well as making it easier to re-detect the marker from shallower angles and greater distances. This is a feature that we recommend everyone should generally enable. N.B. Enabling this feature will use a fraction more CPU power.
status | Marker recovery is enabled if set to true , otherwise flow recovery is disabled. Default is false. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Set the maximum number of trackables which can be tracked at the same time.
maxToTrack |
The maximum number of trackables which can be simultaneously tracked
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
inline |
Sets up the rendering camera.
cameraNearPlane | Camera near plane. |
cameraFarPlane | Camera far plane. |
Implements Kudan.AR.ITracker.
|
pure virtual |
Starts input from a given camera device.
true
, if input from camera was started, false
otherwise.deviceIndex | Device index. |
targetWidth | Target width. |
targetHeight | Target height. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
Starts input from an image.
true
, if input from image was started, false
otherwise.image | Image. |
Implements Kudan.AR.ITracker.
Implemented in Kudan.AR.Tracker.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
|
pure virtual |
|
protected |
The app rate, the number of times the app updates each second.
|
protected |
The default camera far plane value.
|
protected |
The default camera near plane value.
|
protected |
The camera rate, number of times the camera feed refreshes each second.
|
protected |
The cloned texture.
List of detected trackables.
|
protected |
The texture used to render to the camera.
|
protected |
ArbiTracker default floor height.
|
protected |
Is tracking currently running?
|
protected |
The projection matrix.
List of trackables the user has loaded.
|
protected |
The tracker rate, the number of times the tracker updates each second.
|
protected |
The tracking thread.
|
get |
Gets the app frame rate.
The app frame rate.
|
get |
Gets the camera frame rate.
The camera frame rate.
|
get |
Gets the tracker frame rate.
The tracker frame rate.