A type of ObjectTarget that recognizes and tracks objects by shape using existing 3D models.
A Model Target tracks a real world object by its shape, based on a 3D model of the object.
In order to initialize tracking of a Model Target, the user is required to position their device so that the object to be tracked appears in the camera at a particular position and orientation. This initialization pose is called a Guide View. To assist in this process, your application will typically render an overlay in the camera image representing the position and orientation of the object for the active Guide View. (Usually you will do this by rendering the image returned by GuideView::getImage()).
A Model Target dataset may contain multiple objects and/or multiple Guide Views.
Public Types | |
enum | TRACKING_MODE { DEFAULT = 0, CAR = 1, SCAN = 2 } |
Tracking modes to optimize tracking quality and robustness for different target types. More... | |
Public Types inherited from ObjectTarget | |
enum | MOTION_HINT { STATIC, ADAPTIVE } |
Target property that indicates how the target moves in space. More... | |
Public Member Functions | |
virtual const Obb3D & | getBoundingBox () const =0 |
Get the bounding box of this target. More... | |
virtual List< GuideView > | getGuideViews ()=0 |
Returns a list of guide views (write access). More... | |
virtual List< const GuideView > | getGuideViews () const =0 |
Returns a list of guide views (read-only access). More... | |
virtual bool | setActiveGuideViewIndex (int idx)=0 |
Set the index of the Guide View you want to be active. More... | |
virtual int | getActiveGuideViewIndex () const =0 |
Get the index of the currently active GuideView. More... | |
virtual bool | setTrackingMode (TRACKING_MODE mode)=0 |
Set the tracking mode to indicate the type of the model target. More... | |
virtual TRACKING_MODE | getTrackingMode () const =0 |
Get the tracking mode of this target. More... | |
virtual bool | setActiveStateName (const char *name)=0 |
Set the active model state based on state name. More... | |
virtual const char * | getActiveStateName () const =0 |
Returns the active state name. More... | |
Public Member Functions inherited from ObjectTarget | |
virtual const char * | getUniqueTargetId () const =0 |
Get the persistent system-wide unique id for this target. More... | |
virtual Vec3F | getSize () const =0 |
Get the size of this target. More... | |
virtual bool | setSize (const Vec3F &size)=0 |
Apply a uniform scale to this target that makes it the given size. More... | |
virtual bool | setMotionHint (MOTION_HINT hint)=0 |
Set the motion hint to indicate how the target moves in space. More... | |
virtual MOTION_HINT | getMotionHint () const =0 |
Get the motion hint of this target. More... | |
Public Member Functions inherited from Trackable | |
virtual Type | getType () const =0 |
Get the Type for this instance (typically a subclass of Trackable). More... | |
virtual bool | isOfType (Type type) const =0 |
Check whether this instance is of the given Type or any of its subclasses. More... | |
virtual int | getId () const =0 |
Get a unique id for this Trackable. More... | |
virtual const char * | getName () const =0 |
Get the name of this Trackable's name. More... | |
virtual bool | setUserData (void *userData)=0 |
Set user data for this Trackable. More... | |
virtual void * | getUserData () const =0 |
Get the user data that was previously set using setUserData(). More... | |
virtual | ~Trackable () |
Static Public Member Functions | |
static Type | getClassType () |
Return the Type for class "ModelTarget". More... | |
Static Public Member Functions inherited from ObjectTarget | |
static Type | getClassType () |
Get the Type for class "ObjectTarget". More... | |
Static Public Member Functions inherited from Trackable | |
static Type | getClassType () |
Get the Type of class 'Trackable'. More... | |
enum TRACKING_MODE |
Tracking modes to optimize tracking quality and robustness for different target types.
|
pure virtual |
Get the bounding box of this target.
Returns a list of guide views (write access).
Return a list of the GuideViews defined for this Model Target.
Returns a list of guide views (read-only access).
Return a list of the Guide Views defined for this Model Target.
|
pure virtual |
Set the index of the Guide View you want to be active.
idx | The index of the GuideView to set as active, in the range 0..(getGuideViews().size()-1) . |
|
pure virtual |
Get the index of the currently active GuideView.
|
pure virtual |
Set the tracking mode to indicate the type of the model target.
|
pure virtual |
Get the tracking mode of this target.
For more details on the meaning of the value, please see the documentation of setTrackingMode().
|
pure virtual |
Set the active model state based on state name.
Set the model state to the specified value
name | the name of the active model state |
|
pure virtual |
Returns the active state name.