C# Class CloudRecoEventHandler, NewCloud

This MonoBehaviour implements the Cloud Reco Event handling for this sample. It registers itself at the CloudRecoBehaviour and is notified of new search results as well as error messages The current state is visualized and new results are enabled using the TargetFinder API.
Inheritance: MonoBehaviour, ICloudRecoEventHandler
Mostra file Open project: nileshlg2003/NewCloud Class Usage Examples

Public Properties

Property Type Description
ImageTargetTemplate ImageTargetBehaviour,

Public Methods

Method Description
OnGUI ( ) : void

draw the sample GUI and error messages

OnInitError ( TargetFinder, initError ) : void

visualize initialization errors

OnInitialized ( ) : void

called when TargetFinder has been initialized successfully

OnNewSearchResult ( TargetFinder, targetSearchResult ) : void

Handles new search results

OnStateChanged ( bool scanning ) : void

when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables

OnUpdateError ( TargetFinder, updateError ) : void

visualize update errors

Start ( ) : void

register for events at the CloudRecoBehaviour

Private Methods

Method Description
RestartApplication ( ) : void

Method Details

OnGUI() public method

draw the sample GUI and error messages
public OnGUI ( ) : void
return void

OnInitError() public method

visualize initialization errors
public OnInitError ( TargetFinder, initError ) : void
initError TargetFinder,
return void

OnInitialized() public method

called when TargetFinder has been initialized successfully
public OnInitialized ( ) : void
return void

OnNewSearchResult() public method

Handles new search results
public OnNewSearchResult ( TargetFinder, targetSearchResult ) : void
targetSearchResult TargetFinder,
return void

OnStateChanged() public method

when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables
public OnStateChanged ( bool scanning ) : void
scanning bool
return void

OnUpdateError() public method

visualize update errors
public OnUpdateError ( TargetFinder, updateError ) : void
updateError TargetFinder,
return void

Start() public method

register for events at the CloudRecoBehaviour
public Start ( ) : void
return void

Property Details

ImageTargetTemplate public_oe property

can be set in the Unity inspector to reference a ImageTargetBehaviour that is used for augmentations of new cloud reco results.
public ImageTargetBehaviour, ImageTargetTemplate
return ImageTargetBehaviour,