C++ Java Unity
C++ Reference
GuideView Class Referenceabstract

Detailed Description

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.

Inheritance diagram for GuideView:
NonCopyable

Public Member Functions

virtual const CameraCalibrationgetIntrinsics () const =0
 Get the intrinsic parameters of the camera associated with this GuideView. More...
 
virtual const Matrix34FgetPose () 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 ImagegetImage () const =0
 Get the Guide View image. More...
 
virtual char const * getName () const =0
 Get the name of this Guide View. More...
 
virtual ~GuideView ()
 

Constructor & Destructor Documentation

virtual ~GuideView ( )
inlinevirtual

Member Function Documentation

virtual const CameraCalibration& getIntrinsics ( ) const
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.

Returns
The camera intrinsics represented as a CameraCalibration data structure.
virtual const Matrix34F& getPose ( ) const
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.

Note
The coordinate system of the GuideView pose differs from the coordinate system used elsewhere in Vuforia Engine: this pose is 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. However, this is subject to change in a future version of Vuforia Engine, and will likely be brought in line with the conventions used elsewhere in the API.
Returns
The pose of the ModelTarget, 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.
virtual void setPose ( const Matrix34F 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.

Note
The coordinate system of the GuideView pose differs from the coordinate system used elsewhere in Vuforia Engine: this pose is 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. However, this is subject to change in a future version of Vuforia Engine, and will likely be brought inline with the conventions used elsewhere in the API.
Calling this function causes the active guide view's image to be regenerated and the previous image to be invalidated. Subsequent calls to getImage() will therefore return the new image.
Parameters
poseThe 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.
virtual const Image* getImage ( ) const
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.

Note
The image is rendered with the latest available camera profile or a default profile if no camera is available. Thus, the guide view image will look different depending on whether the dataset was loaded before or after the device camera was initialized.
If the guide view's pose is changed, the guide view's image is regenerated and the previous image is invalidated.
This function only returns the correct image, if the guide view is active. For deactivated guide views, the image will be empty.
Returns
an Image containing a simplified representation of the object at the pose returned by getPose().
virtual char const* getName ( ) const
pure virtual

Get the name of this Guide View.

Returns
The name of this guide view