public interface VuforiaTrackable
VuforiaTrackable
provides access to an individual trackable Vuforia target.Modifier and Type | Interface and Description |
---|---|
static interface |
VuforiaTrackable.Listener |
Modifier and Type | Method and Description |
---|---|
OpenGLMatrix |
getFtcFieldFromTarget()
Returns the location of the trackable in the FTC Field Coordinate System.
|
VuforiaTrackable.Listener |
getListener()
Returns the current listener associated with this trackable.
|
OpenGLMatrix |
getLocation()
Returns the location of the trackable in the FTC Field Coordinate System.
|
java.lang.String |
getName()
Returns the user-determined name associated with this trackable.
|
VuforiaTrackable |
getParent()
Returns the parent trackable with which this trackable is associated, if any.
|
VuforiaTrackables |
getTrackables()
Returns the
VuforiaTrackables of which this VuforiaTrackable is a member |
java.lang.Object |
getUserData()
Retreives user data previously associated with this trackable object.
|
void |
setListener(VuforiaTrackable.Listener listener)
Sets an object that will receive notifications as the
VuforiaTrackable
is tracked and is not tracked. |
void |
setLocation(OpenGLMatrix location)
A synonym for
setLocationFtcFieldFromTarget(OpenGLMatrix) |
void |
setLocationFtcFieldFromTarget(OpenGLMatrix ftcFieldFromTarget)
Sets the location of the trackable in the the FTC Field Coordinate System.
|
void |
setName(java.lang.String name)
Sets a user-determined name associated with this trackable.
|
void |
setUserData(java.lang.Object object)
Sets user data to be associated with this trackable object.
|
void setListener(VuforiaTrackable.Listener listener)
VuforiaTrackable
is tracked and is not tracked. If no listener is provided, then a default listener
is used.listener
- the object which is to receive tracking notifications regarding this trackable.
If this is null, then a default listener is used. Thus, there is always
a listener associated with a VuforiaTrackable
.getListener()
,
VuforiaTrackableDefaultListener
VuforiaTrackable.Listener getListener()
setListener(Listener)
,
VuforiaTrackableDefaultListener
void setLocationFtcFieldFromTarget(OpenGLMatrix ftcFieldFromTarget)
ftcFieldFromTarget
- the location of the trackable in the FTC Field Coordinate System. This
transformation maps coordinates in the Target Coordinate System
to coordinates in the FTC Field Coordinate System.getLocation()
,
VuforiaTrackableDefaultListener.getRobotLocation()
,
setLocation(OpenGLMatrix)
void setLocation(OpenGLMatrix location)
setLocationFtcFieldFromTarget(OpenGLMatrix)
OpenGLMatrix getFtcFieldFromTarget()
setLocationFtcFieldFromTarget(OpenGLMatrix)
,
getLocation()
OpenGLMatrix getLocation()
getFtcFieldFromTarget()
.void setUserData(java.lang.Object object)
object
- user data to be associated with this trackable object.getUserData()
java.lang.Object getUserData()
setUserData(Object)
VuforiaTrackables getTrackables()
VuforiaTrackables
of which this VuforiaTrackable
is a memberVuforiaTrackables
of which this VuforiaTrackable
is a memberVuforiaTrackables
void setName(java.lang.String name)
name
- a user-determined namegetName()
,
setUserData(Object)
java.lang.String getName()
setName(String)
,
VuforiaTrackables.setName(String)
VuforiaTrackable getParent()