Interface IMarkerVisual
Interface that should be implemented by any class that displays markers for detection
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public interface IMarkerVisual
Methods
HideMarker()
Hides any shown markers
Declaration
void HideMarker()
ShowMarker(Int32)
Shows the specified marker
Declaration
void ShowMarker(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | Id of the marker to show |
TryGetMaxSupportedMarkerId(out Int32)
Tries to obtain the maximum marker id supported by this marker visual.
Declaration
bool TryGetMaxSupportedMarkerId(out int markerId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | markerId |
Returns
Type | Description |
---|---|
Boolean | Returns true if the maximum marker id can be found, otherwise false. |
TrySetMarkerSize(Single)
Tries to set the physical size for displaying markers
Declaration
bool TrySetMarkerSize(float size)
Parameters
Type | Name | Description |
---|---|---|
Single | size | The physical size (in meters) that markers should be when shown |
Returns
Type | Description |
---|---|
Boolean | Returns true if the marker can be set to the provided size, otherwise false. |
TrySetScaleFactor(Single)
Tries to set an additional scale factors for the marker visual.
Declaration
bool TrySetScaleFactor(float scaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Single | scaleFactor | Additional scale factor to account for with the marker visual. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the scale factor was updated. |