StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticAR_StaticERROR_The WASM heap view. Read from the module on every access rather than cached: the build enables ALLOW_MEMORY_GROWTH, and Emscripten replaces this typed array when the heap grows, detaching any previously captured reference.
StaticNFT_StaticUNKNOWN_static properties
Load the NFT Markers (.fset, .iset and .fset3) in the code. Each entry is the path of the descriptor files without the extension, relative to the working directory. The files are read in place through NODEFS.
It can be called more than once: ids continue from the markers already
loaded (#612). A call that fails reports through onError2 and leaves the
markers loaded by earlier calls in place, so it can be retried.
array of paths of the descriptor files without ext
Optionalcallback: (ids: number[]) => void
the callback to retrieve the ids.
OptionalonError2: (errorNumber: number) => void
the error callback.
an array of ids.
Changes several runtime settings at once (#720). The patch is deep-merged into
getRuntimeSettings (ar2 field by field) and applied in one native call, which
validates everything first and changes nothing on failure.
logLevel is per controller: the level lives in the WASM module's globals, and each
init() creates its own module.
any subset of the settings.
Returns the Emscripten HEAP offset of the square-marker detector's debug image.
HEAP offset of the debug image.
The current runtime settings (#720), with the effective values: detectionInterval
and ar2.searchSize are the build's resolved defaults when they were not set, and
logLevel is the module's current level.
a fresh object; changing it changes nothing until passed to configure().
Init the class injecting the Wasm Module and link the instanced methods. Every call builds its own module, so each ARToolkitNFT has its own heap and filesystem.
Optionaloptions: ARInitOptions
logLevel is applied to the fresh module before the core is
constructed (#677, D10), so the start-up lines follow it.
the this object
Load the camera, this is an important and required step, Internally fill the ARParam struct.
the camera parameter: a path to a .dat file, relative to the working directory, or its contents.
a promise that resolves to a number, the internal id.
Rebuilds the camera frustum from the near and far planes. Kept for compatibility: since WebARKitLib 0.12.0 the lens follows the planes, as the projection setters and configure() rebuild it themselves, so calling this changes nothing.
Enables or disables the square-marker detector's debug mode.
true to enable debug mode, false to disable it
Sets the square-marker detector's image processing mode (frame or field).
AR_IMAGE_PROC_FRAME_IMAGE or AR_IMAGE_PROC_FIELD_IMAGE.
Set the logging verbosity.
Lower is more verbose: ARLogLevel.Debug (0) shows everything,
ARLogLevel.RelInfo (4) the least. The library starts at
ARLogLevel.Info.
one of the ARLogLevel values.
Returns nothing: the native setter is void. Use getLogLevel() to read
back the effective level, which also reveals when a negative value was
rejected by the guard.
Sets the far plane of the projection. Once a camera is loaded the camera lens is rebuilt at once (WebARKitLib 0.12.0); before that the value is stored.
the far plane, > the near plane.
Sets the near plane of the projection. Once a camera is loaded the camera lens is rebuilt at once (WebARKitLib 0.12.0); before that the value is stored.
the near plane, > 0.
Sets the square-marker labeling threshold mode (auto/manual).
One of the AR_LABELING_THRESH_MODE_* values.
Internal
The throwing core of addNFTMarkers. Synchronous like it (#685, D9): Node reads the files in place, so there is nothing to await. Shared with the tracker facade (#720 D10); kept out of the public docs. Used by ARControllerNFT_node and nodeTargetLoader, which need the NFTLoadError.
paths of the descriptor files without ext
the real marker ids.
The ARToolkitNFT constructor. It has no arguments. These properties are initialized: