All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
VuModelTargetBufferConfig Struct Reference

Public Attributes

const void * buffer
 Pointer to the start of the memory buffer.
 
uint32_t bufferSize
 Size of the memory buffer in bytes.
 
const char * targetName
 Target name.
 
const char * activeGuideViewName
 Name of the Guide View to be active.
 
VuBool activate
 Observer activation.
 
float scale
 Scale multiplication factor.
 
VuMatrix44F poseOffset
 Offset from the origin of the target to the pose reported by an observation, relative to the target's frame of reference.
 
VuBool enhanceRuntimeDetection
 Enhance detection performance by caching local detection data for the model target.
 

Detailed Description

Configuration for creating a Model Target observer from an in-memory buffer.

Member Data Documentation

◆ buffer

const void* buffer

Pointer to the start of the memory buffer.

The buffer must contain the contents of the Model Target database .dat file, using .xml files is not supported. The buffer must be valid for the duration of the observer creation and can be freed once the observer is created.

◆ bufferSize

uint32_t bufferSize

Size of the memory buffer in bytes.

This must correspond to the size of the Model Target database .dat file.

◆ activeGuideViewName

const char* activeGuideViewName

Name of the Guide View to be active.

Set to NULL to keep the default Guide View defined for this Model Target in the database activated

Note
Advanced Model Targets do not support Guide Views and creation will fail if the value is not set to NULL.

◆ activate

VuBool activate

Observer activation.

Note
The default value is VU_TRUE.
If the Model Target observer was successfully activated, the active guide view's image is generated as well.
Model Target observers from different databases cannot be active at the same time. Observer creation will fail if "activate" is set to VU_TRUE while a Model Target observer from another database is active.

◆ scale

float scale

Scale multiplication factor.

Note
The default value is 1.0f.

◆ poseOffset

VuMatrix44F poseOffset

Offset from the origin of the target to the pose reported by an observation, relative to the target's frame of reference.

Note
The pose offset is represented as a pose matrix using the OpenGL convention. The default value is an identity matrix.

◆ enhanceRuntimeDetection

VuBool enhanceRuntimeDetection

Enhance detection performance by caching local detection data for the model target.

Refer to VuModelTargetConfig::enhanceRuntimeDetection for more details.