Lens.ContourSearch(opts) ARCore/contour_search.js, line 66
Registers a new ContourSearch. When a Contour object appear in the ContourSearch area, new Contour objects will be created, and changes of the Contour objects will be tracked.
Argument | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Parameters specifying the bounds of the search. Properties
|
Static Properties
-
Lens.ContourSearch.CLASSIFICATION_CIRCLE ARCore/contour_search.js, line 270
-
The circle contour classification number.
-
Lens.ContourSearch.CLASSIFICATION_MAX ARCore/contour_search.js, line 276
-
The maximum classification value (for verification).
-
Lens.ContourSearch.CLASSIFICATION_NONE ARCore/contour_search.js, line 264
-
The classification number for an unclassified contour.
Static Methods
-
Lens.ContourSearch.clear() ARCore/contour_search.js, line 256
-
Stops all existing ContourSearches.
Instance Methods
-
appeared(callback) → {Binding} ARCore/contour_search.js, line 204
-
Registers a function to be called whenever a Contour appears in this region.
Argument Type Description callback
function The function to call. Gets one
Contour
as an argument. UseContour#move
orContour#disappeared
to register additional handlers for that Contour.A Binding that allows this handler to be cleared.
-
disappeared(callback) → {Binding} ARCore/contour_search.js, line 232
-
Registers a function to be called whenever a contour leaves this search area.
Argument Type Description callback
function The function to call. Gets a
Contour
as an argument.A Binding that allows this handler to be cleared.
-
moved(callback) → {Binding} ARCore/contour_search.js, line 218
-
Registers a function to be called whenever a contour in this search area moves.
Argument Type Description callback
function The function to call. Gets a
Contour
as an argument.A Binding that allows this handler to be cleared.
-
stop() ARCore/contour_search.js, line 240
-
Stops watching the search area. No more callbacks will be called.