WTImageTargetDelegate Protocol Reference

Conforms to NSObject
Declared in WTImageTarget.h

Overview

WTImageTargetDelegate can be used to react to internal image target changes

– didRecognizeDistanceChange:betweenImageTarget:andImageTarget: required method

This method is called in case the distance change between two targets exceeds the threshold defined by the distanceChangedThreshold property of WTImageTrackerConfiguration.

- (void)didRecognizeDistanceChange:(NSInteger)distance betweenImageTarget:(WTImageTarget *)firstTarget andImageTarget:(WTImageTarget *)secondTarget

Parameters

distance

The distance between the two targets in millimeter

firstTarget

The first of the two image targets that changed there distance to each other

secondTarget

The second of the two image targets that changed there distance to each other

Discussion

For accurate distance calculations, physical target heights needs to be provided either through the .wtc or the physicalTargetImageHeights property of WTImageTrackerConfiguration

Declared In

WTImageTarget.h