C++ Java Unity
Java Reference
Trackable Class Reference

Detailed Description

Base class for all objects that can be tracked.

Every Trackable has a name, an id and a type.

Trackables report their tracking status and pose via TrackableResult instances, which appear on the State for a given camera frame if the Trackable has been detected or tracked (or extended tracked) in that frame.

Inheritance diagram for Trackable:
Anchor DeviceTrackable ObjectTarget CylinderTarget ImageTarget ModelTarget MultiTarget VuMarkTarget VuMarkTemplate

Public Member Functions

Object getUserData ()
 
boolean setUserData (Object userData)
 
boolean equals (Object obj)
 
Type getType ()
 Get the Type for this instance (typically a subclass of Trackable). More...
 
boolean isOfType (Type type)
 Check whether this instance is of the given Type or any of its subclasses. More...
 
int getId ()
 Get a unique id for this Trackable. More...
 
String getName ()
 Get the name of this Trackable's name. More...
 

Static Public Member Functions

static Type getClassType ()
 Get the Type of class 'Trackable'. More...
 

Member Function Documentation

Object getUserData ( )
boolean setUserData ( Object  userData)
boolean equals ( Object  obj)
static Type getClassType ( )
static

Get the Type of class 'Trackable'.

Type getType ( )

Get the Type for this instance (typically a subclass of Trackable).

boolean isOfType ( Type  type)

Check whether this instance is of the given Type or any of its subclasses.

int getId ( )

Get a unique id for this Trackable.

The id is generated at runtime and is not persistent between Vuforia sessions.

See also
ObjectTarget::getUniqueTargetId()
String getName ( )

Get the name of this Trackable's name.