|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.IMetaioSDKCallback
public class IMetaioSDKCallback
The metaio SDK Callback interface. These functions should be implemented for handling events triggered by the metaio SDK.
Constructor Summary | |
---|---|
IMetaioSDKCallback()
|
|
IMetaioSDKCallback(long cPtr,
boolean cMemoryOwn)
|
Method Summary | |
---|---|
void |
delete()
|
static long |
getCPtr(IMetaioSDKCallback obj)
|
void |
onAnimationEnd(IGeometry geometry,
String animationName)
|
void |
onCameraImageSaved(String filepath)
To request this callback, call requestCameraFrame(filepath, width, height) |
void |
onInstantTrackingEvent(boolean success,
String file)
If "success" is true, "file" will contain a file name you either specified when starting the instant tracking or a temporarily result. |
void |
onMovieEnd(IGeometry geometry,
String movieName)
|
void |
onNewCameraFrame(ImageStruct cameraFrame)
The image will have the dimensions of the current capture resolution. |
void |
onScreenshot(String filepath)
If the screenshot is not written to a file, the filepath will be an empty string. |
void |
onScreenshotImage(ImageStruct image)
The image struct buffer must be deleted by the application. |
void |
onSDKReady()
splash screen is finished. |
void |
onTrackingEvent(TrackingValuesVector trackingValues)
This is called automatically as soon as trackingValues have been updated. |
void |
swigReleaseOwnership()
|
void |
swigTakeOwnership()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMetaioSDKCallback(long cPtr, boolean cMemoryOwn)
public IMetaioSDKCallback()
Method Detail |
---|
public static long getCPtr(IMetaioSDKCallback obj)
public void delete()
public void swigReleaseOwnership()
public void swigTakeOwnership()
public void onSDKReady()
public void onAnimationEnd(IGeometry geometry, String animationName)
geometry
- the geometry which has finished animatinganimationName
- the name of the just finished animation or in case of movie-playback
the filename of the moviepublic void onMovieEnd(IGeometry geometry, String movieName)
geometry
- the geometry which has finished animating/movie-playbackmovieName
- the name of the just finished animation or in case of movie-playback
the filename of the movie
voidpublic void onNewCameraFrame(ImageStruct cameraFrame)
cameraFrame
- the latest camera image
you must copy the ImageStuct::buffer, if you need it for later.public void onCameraImageSaved(String filepath)
filepath
- File path in which image is written, or empty string in case of a
failurepublic void onScreenshotImage(ImageStruct image)
image
- Screenshot image
See: IMetaioSDK::requestScreenshotpublic void onScreenshot(String filepath)
filepath
- File path where screenshot image has been written
See: IMetaioSDK::requestScreenshotpublic void onTrackingEvent(TrackingValuesVector trackingValues)
trackingValues
- current tracking valuespublic void onInstantTrackingEvent(boolean success, String file)
success
- true on successfile
- path to the tracking configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |