A simplified visual representation of a ModelTarget to guide user initialization.
A GuideView provides a simplified visual representation of a ModelTarget that an application can present to its users, as a guide for how to position their device in order to bootstrap the tracking process.
A GuideView can be considered an entry point into the tracking process. When the user moves their device so that the physical model to be tracked aligns closely with the GuideView on their screen, tracking will begin.
Public Member Functions | |
virtual const CameraCalibration & | getIntrinsics () const =0 |
Get the intrinsic parameters of the camera associated with this GuideView. More... | |
virtual const Matrix34F & | getPose () const =0 |
Get the pose of the ModelTarget object for this Guide View. More... | |
virtual void | setPose (const Matrix34F &pose)=0 |
Set the pose of the ModelTarget object for this Guide View. More... | |
virtual const Image * | getImage () const =0 |
Get the Guide View image. More... | |
virtual char const * | getName () const =0 |
Get the name of this Guide View. More... | |
virtual | ~GuideView () |
|
inlinevirtual |
|
pure virtual |
Get the intrinsic parameters of the camera associated with this GuideView.
The returned camera calibration represents the intrinsics parameters of the camera associated to this guide view.
|
pure virtual |
Get the pose of the ModelTarget object for this Guide View.
The returned pose represents the pose the ModelTarget object needs to have, relative to the device's camera, in order to initiate tracking.
The Guide View image that your app renders over the camera feed should always represent the object at this pose. By default, the image returned by getImage() matches this pose.
|
pure virtual |
Set the pose of the ModelTarget object for this Guide View.
The pose you set represents the pose you want the ModelTarget object to have, relative to the device's camera, in order to initiate tracking.
If you change the pose from its initial value, the image returned by getImage() will no longer be correct. You will need to render your own image to use as an overlay in the camera feed.
pose | The new pose, defined in a right-handed coordinate system where the X axis points right, the Y axis points down, the Z axis points forward, and the origin is at the device's camera. |
|
pure virtual |
Get the Guide View image.
The image returned is a simplified representation of the ModelTarget object at the pose returned by getPose().
The image should be rendered as an overlay on the camera feed, where it indicates to your users how they should position their device relative to the object in order to initiate tracking.
|
pure virtual |
Get the name of this Guide View.