C++ Java Unity
Java Reference
Anchor Class Reference

Detailed Description

A type of Trackable that represents a spatial anchor point.

An Anchor represents a fixed position and orientation (pose) relative to the real world. It can be used to accurately position objects in augmented reality.

The lifecycle of an Anchor is managed by the PositionalDeviceTracker. See PositionalDeviceTracker::createAnchor() and PositionalDeviceTracker::destroyAnchor() for more information.

Inheritance diagram for Anchor:
Trackable

Public Member Functions

boolean equals (Object obj)
 
- Public Member Functions inherited from Trackable
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 for class 'Anchor'. More...
 
- Static Public Member Functions inherited from Trackable
static Type getClassType ()
 Get the Type of class 'Trackable'. More...
 

Member Function Documentation

boolean equals ( Object  obj)
static Type getClassType ( )
static

Get the Type for class 'Anchor'.