documentation

Visometry.VisionLib.SDK.Core.TrackingAnchor Class Reference

Tracking anchor that is used to control references like the visualization model and WorkSpaces for different anchors in multi model tracking. THIS IS SUBJECT TO CHANGE Please do not rely on this code in productive environments. More...

Inherits Visometry.VisionLib.SDK.Core.TrackingManagerReference.

Public Member Functions

void AnchorAddModel (string modelName, string modelURI, bool enabled=true, bool occluder=false)
 
async Task AnchorAddModelAsync (string modelName, string modelURI, bool enabled, bool occluder)
 
void AnchorResetHardAnchor ()
 Resets the tracking for this anchor. More...
 
async Task AnchorResetHardAsync ()
 
void AnchorSetAttribute (string attributeName, string value)
 Sets an attribute to the given value for this anchor More...
 
async Task AnchorSetAttributeAsync (string attributeName, string value)
 
void AnchorSetModelPropertyEnabled (string name, bool state)
 Enables/Disables a specific model for this anchor More...
 
async Task AnchorSetModelPropertyEnabledAsync (string name, bool state)
 
void AnchorSetModelPropertyOccluder (string name, bool state)
 Sets a specific model as occluder for this anchor More...
 
async Task AnchorSetModelPropertyOccluderAsync (string name, bool state)
 
void AnchorSetModelPropertyURI (string name, string uri)
 Loads a specific model for this anchor, which is specified by an uri. All other models will be removed from this anchor. More...
 
async Task AnchorSetModelPropertyURIAsync (string name, string uri)
 
async Task< ModelTransformGetInitPoseAsync ()
 
void SetGlobalInitPose ()
 
async Task SetGlobalInitPoseAsync ()
 
void SetInitPose ()
 
async Task SetInitPoseAsync ()
 
void SetInitPoseRelativeToCamera (Camera usedCamera)
 
async Task SetInitPoseRelativeToCameraAsync (Camera usedCamera)
 

Data Fields

string anchorName
 Unique name that represents the tracking anchors name in the vl file.
 
GameObject augmentation
 Reference to the model that should be used for augmenting the tracking target.
 
float smoothTime = 0f
 Interpolation time to apply updates to the augmentation Transform. More...
 
WorkSpace[] workSpaces
 List of WorkSpaces that are used to initialize the tracking target.
 

Additional Inherited Members

- Protected Member Functions inherited from Visometry.VisionLib.SDK.Core.TrackingManagerReference
virtual bool InitWorkerReference ()
 Initializes the trackingManager and Worker member variables. More...
 
virtual void ResetReference ()
 
- Properties inherited from Visometry.VisionLib.SDK.Core.TrackingManagerReference
TrackingManager trackingManager [get]
 Reference to used TrackingManager. More...
 
Worker worker [get]
 

Detailed Description

Tracking anchor that is used to control references like the visualization model and WorkSpaces for different anchors in multi model tracking. THIS IS SUBJECT TO CHANGE Please do not rely on this code in productive environments.

Member Function Documentation

◆ AnchorResetHardAnchor()

void Visometry.VisionLib.SDK.Core.TrackingAnchor.AnchorResetHardAnchor ( )
inline

Resets the tracking for this anchor.

This function will be performed asynchronously.

◆ AnchorSetAttribute()

void Visometry.VisionLib.SDK.Core.TrackingAnchor.AnchorSetAttribute ( string  attributeName,
string  value 
)
inline

Sets an attribute to the given value for this anchor

This function will be performed asynchronously.

Parameters
attributeNameName of the attribute
valueNew value for this attribute

◆ AnchorSetModelPropertyEnabled()

void Visometry.VisionLib.SDK.Core.TrackingAnchor.AnchorSetModelPropertyEnabled ( string  name,
bool  state 
)
inline

Enables/Disables a specific model for this anchor

This function will be performed asynchronously.

Parameters
nameName of the model
stateEnabled (true/false)

◆ AnchorSetModelPropertyOccluder()

void Visometry.VisionLib.SDK.Core.TrackingAnchor.AnchorSetModelPropertyOccluder ( string  name,
bool  state 
)
inline

Sets a specific model as occluder for this anchor

This function will be performed asynchronously.

Parameters
nameName of the model
stateOccluder (true/false)

◆ AnchorSetModelPropertyURI()

void Visometry.VisionLib.SDK.Core.TrackingAnchor.AnchorSetModelPropertyURI ( string  name,
string  uri 
)
inline

Loads a specific model for this anchor, which is specified by an uri. All other models will be removed from this anchor.

This function will be performed asynchronously.

Parameters
nameName of the model
uriPath to the model file

Field Documentation

◆ smoothTime

float Visometry.VisionLib.SDK.Core.TrackingAnchor.smoothTime = 0f

Interpolation time to apply updates to the augmentation Transform.

Set to 0 to directly apply tracking results without smoothing.