ManoMotion SDK PRO  1.3
ManoMotion SDK PRO API documentation
GizmoManager Class Reference

Handles wich features / gizmos that will be used. More...

Inheritance diagram for GizmoManager:

Public Member Functions

void ShouldDisplaySmoothingSlider (bool display)
 Shows or hides the smoothing slider More...
 
void DisplaySmoothingSlider ()
 Displays the smoothing slider that controls the level of delay applied to the calculations for Tracking Information. More...
 

Data Fields

Color disabledStateColor
 The color of the hand state UI. More...
 
List< GameObject > triggerObjectPool = new List<GameObject>()
 
int amountToPool = 20
 

Properties

static GizmoManager Instance [get, set]
 
bool ShowContinuousGestures [get, set]
 
bool ShowManoClass [get, set]
 
bool ShowHandSide [get, set]
 
bool ShowHandStates [get, set]
 
bool ShowWarnings [get, set]
 
bool ShowPickTriggerGesture [get, set]
 
bool ShowDropTriggerGesture [get, set]
 
bool ShowClickTriggerGesture [get, set]
 
bool ShowGrabTriggerGesture [get, set]
 
bool ShowReleaseTriggerGesture [get, set]
 
bool ShowSmoothingSlider [get, set]
 
bool ShowDepthEstimation [get, set]
 
bool ShowSkeleton3d [get, set]
 
bool ShowGestures [get, set]
 
bool Fastmode [get, set]
 

Private Member Functions

void Start ()
 
void SetFeaturesToCalculate ()
 Sets which features that should be calculated More...
 
void Update ()
 
void DisplayDepthEstimation (float depthEstimation)
 Displays the depth estimation of the detected hand. More...
 
void DisplayCurrentsmoothingValue (Session session)
 Displays in text value the current smoothing value of the session More...
 
void DisplayManoclass (ManoClass manoclass)
 Displays information regarding the detected manoclass More...
 
void DisplayContinuousGestures (ManoGestureContinuous manoGestureContinuous)
 Displays information regarding the detected manoclass More...
 
void DisplayHandSide (HandSide handside)
 Displays the hand side. More...
 
void DisplayHandState (int handstate)
 Updates the visual information that showcases the hand state (how open/closed) it is More...
 
void DisplayTriggerGesture (ManoGestureTrigger triggerGesture, TrackingInfo trackingInfo)
 Display Visual information of the detected trigger gesture. More...
 
void InitializeTriggerPool ()
 Initializes the object pool for trigger gestures. More...
 
GameObject GetCurrentPooledTrigger ()
 Gets the current pooled trigger object. More...
 
void TriggerDisplay (TrackingInfo trackingInfo, ManoGestureTrigger triggerGesture)
 Displays the visual information of the performed trigger gesture. More...
 
void HighlightStatesToStateDetection (int stateValue)
 Visualizes the current hand state by coloring white the images up to that value and turning grey the rest More...
 
void DisplayApproachingToEdgeFlags (Warning warning)
 Highlights the edges of the screen according to the warning given by the Manomotion Manager More...
 
void SetGestureDescriptionParts ()
 Initializes the components of the Manoclass,Continuous Gesture and Trigger Gesture Gizmos More...
 
void InitializeFlagParts ()
 Initializes the components for the visual illustration of warnings related to approaching edges flags. More...
 

Private Attributes

Image[] stateImages
 
GameObject handStatesGizmo
 
GameObject manoClassGizmo
 
GameObject handSideGizmo
 
GameObject continuousGestureGizmo
 
GameObject triggerTextPrefab
 
GameObject flagHolderGizmo
 
GameObject smoothingSliderControler
 
GameObject depthEstimationGizmo
 
Text currentSmoothingValue
 
bool _showHandStates
 
bool _showManoClass
 
bool _showHandSide
 
bool _showContinuousGestures
 
bool _showWarnings
 
bool _showPickTriggerGesture
 
bool _showDropTriggerGesture
 
bool _showClickTriggerGesture
 
bool _showGrabTriggerGesture
 
bool _showReleaseTriggerGesture
 
bool _showSmoothingSlider
 
bool _showDepthEstimation
 
bool skeleton3d
 
bool gestures
 
bool fastMode
 
GameObject topFlag
 
GameObject leftFlag
 
GameObject rightFlag
 
Text manoClassText
 
Text handSideText
 
Text continuousGestureText
 
TextMeshProUGUI depthEstimationValue
 
Image depthFillAmmount
 
ManoGestureTrigger previousTrigger
 

Static Private Attributes

static GizmoManager _instance
 

Detailed Description

Handles wich features / gizmos that will be used.

Member Function Documentation

◆ DisplayApproachingToEdgeFlags()

void GizmoManager.DisplayApproachingToEdgeFlags ( Warning  warning)
inlineprivate

Highlights the edges of the screen according to the warning given by the Manomotion Manager

Parameters
warningRequires a warning.

◆ DisplayContinuousGestures()

void GizmoManager.DisplayContinuousGestures ( ManoGestureContinuous  manoGestureContinuous)
inlineprivate

Displays information regarding the detected manoclass

Parameters
manoGestureContinuousRequires a continuous Gesture.

◆ DisplayCurrentsmoothingValue()

void GizmoManager.DisplayCurrentsmoothingValue ( Session  session)
inlineprivate

Displays in text value the current smoothing value of the session

Parameters
sessionRequires a Session.

◆ DisplayDepthEstimation()

void GizmoManager.DisplayDepthEstimation ( float  depthEstimation)
inlineprivate

Displays the depth estimation of the detected hand.

Parameters
depthEstimationRequires the float value of depth estimation.

◆ DisplayHandSide()

void GizmoManager.DisplayHandSide ( HandSide  handside)
inlineprivate

Displays the hand side.

Parameters
handsideRequires a Manomotion Handside.

◆ DisplayHandState()

void GizmoManager.DisplayHandState ( int  handstate)
inlineprivate

Updates the visual information that showcases the hand state (how open/closed) it is

Parameters
handstateRequires a Manomotion handsate

◆ DisplayManoclass()

void GizmoManager.DisplayManoclass ( ManoClass  manoclass)
inlineprivate

Displays information regarding the detected manoclass

Parameters
manoclassRequires a Manoclass.

◆ DisplaySmoothingSlider()

void GizmoManager.DisplaySmoothingSlider ( )
inline

Displays the smoothing slider that controls the level of delay applied to the calculations for Tracking Information.

◆ DisplayTriggerGesture()

void GizmoManager.DisplayTriggerGesture ( ManoGestureTrigger  triggerGesture,
TrackingInfo  trackingInfo 
)
inlineprivate

Display Visual information of the detected trigger gesture.

In the case where a click is intended (Open pinch, Closed Pinch, Open Pinch) we are clearing out the visual information that are generated from the pick/drop

Parameters
triggerGestureRequires an input of trigger gesture.
trackingInfoRequires an input of tracking info.

◆ GetCurrentPooledTrigger()

GameObject GizmoManager.GetCurrentPooledTrigger ( )
inlineprivate

Gets the current pooled trigger object.

Returns
The current pooled trigger.

◆ HighlightStatesToStateDetection()

void GizmoManager.HighlightStatesToStateDetection ( int  stateValue)
inlineprivate

Visualizes the current hand state by coloring white the images up to that value and turning grey the rest

Parameters
stateValueRequires a hand state value to assign the colors accordingly

◆ InitializeFlagParts()

void GizmoManager.InitializeFlagParts ( )
inlineprivate

Initializes the components for the visual illustration of warnings related to approaching edges flags.

◆ InitializeTriggerPool()

void GizmoManager.InitializeTriggerPool ( )
inlineprivate

Initializes the object pool for trigger gestures.

◆ SetFeaturesToCalculate()

void GizmoManager.SetFeaturesToCalculate ( )
inlineprivate

Sets which features that should be calculated

◆ SetGestureDescriptionParts()

void GizmoManager.SetGestureDescriptionParts ( )
inlineprivate

Initializes the components of the Manoclass,Continuous Gesture and Trigger Gesture Gizmos

◆ ShouldDisplaySmoothingSlider()

void GizmoManager.ShouldDisplaySmoothingSlider ( bool  display)
inline

Shows or hides the smoothing slider

Parameters
displayIf set to true display.

◆ Start()

void GizmoManager.Start ( )
inlineprivate

◆ TriggerDisplay()

void GizmoManager.TriggerDisplay ( TrackingInfo  trackingInfo,
ManoGestureTrigger  triggerGesture 
)
inlineprivate

Displays the visual information of the performed trigger gesture.

Parameters
bounding_boxBounding box.
triggerGestureTrigger gesture.

◆ Update()

void GizmoManager.Update ( )
inlineprivate

Field Documentation

◆ _instance

GizmoManager GizmoManager._instance
staticprivate

◆ _showClickTriggerGesture

bool GizmoManager._showClickTriggerGesture
private

◆ _showContinuousGestures

bool GizmoManager._showContinuousGestures
private

◆ _showDepthEstimation

bool GizmoManager._showDepthEstimation
private

◆ _showDropTriggerGesture

bool GizmoManager._showDropTriggerGesture
private

◆ _showGrabTriggerGesture

bool GizmoManager._showGrabTriggerGesture
private

◆ _showHandSide

bool GizmoManager._showHandSide
private

◆ _showHandStates

bool GizmoManager._showHandStates
private

◆ _showManoClass

bool GizmoManager._showManoClass
private

◆ _showPickTriggerGesture

bool GizmoManager._showPickTriggerGesture
private

◆ _showReleaseTriggerGesture

bool GizmoManager._showReleaseTriggerGesture
private

◆ _showSmoothingSlider

bool GizmoManager._showSmoothingSlider
private

◆ _showWarnings

bool GizmoManager._showWarnings
private

◆ amountToPool

int GizmoManager.amountToPool = 20

◆ continuousGestureGizmo

GameObject GizmoManager.continuousGestureGizmo
private

◆ continuousGestureText

Text GizmoManager.continuousGestureText
private

◆ currentSmoothingValue

Text GizmoManager.currentSmoothingValue
private

◆ depthEstimationGizmo

GameObject GizmoManager.depthEstimationGizmo
private

◆ depthEstimationValue

TextMeshProUGUI GizmoManager.depthEstimationValue
private

◆ depthFillAmmount

Image GizmoManager.depthFillAmmount
private

◆ disabledStateColor

Color GizmoManager.disabledStateColor

The color of the hand state UI.

◆ fastMode

bool GizmoManager.fastMode
private

◆ flagHolderGizmo

GameObject GizmoManager.flagHolderGizmo
private

◆ gestures

bool GizmoManager.gestures
private

◆ handSideGizmo

GameObject GizmoManager.handSideGizmo
private

◆ handSideText

Text GizmoManager.handSideText
private

◆ handStatesGizmo

GameObject GizmoManager.handStatesGizmo
private

◆ leftFlag

GameObject GizmoManager.leftFlag
private

◆ manoClassGizmo

GameObject GizmoManager.manoClassGizmo
private

◆ manoClassText

Text GizmoManager.manoClassText
private

◆ previousTrigger

ManoGestureTrigger GizmoManager.previousTrigger
private

◆ rightFlag

GameObject GizmoManager.rightFlag
private

◆ skeleton3d

bool GizmoManager.skeleton3d
private

◆ smoothingSliderControler

GameObject GizmoManager.smoothingSliderControler
private

◆ stateImages

Image [] GizmoManager.stateImages
private

◆ topFlag

GameObject GizmoManager.topFlag
private

◆ triggerObjectPool

List<GameObject> GizmoManager.triggerObjectPool = new List<GameObject>()

◆ triggerTextPrefab

GameObject GizmoManager.triggerTextPrefab
private

Property Documentation

◆ Fastmode

bool GizmoManager.Fastmode
getset

◆ Instance

GizmoManager GizmoManager.Instance
staticgetset

◆ ShowClickTriggerGesture

bool GizmoManager.ShowClickTriggerGesture
getset

◆ ShowContinuousGestures

bool GizmoManager.ShowContinuousGestures
getset

◆ ShowDepthEstimation

bool GizmoManager.ShowDepthEstimation
getset

◆ ShowDropTriggerGesture

bool GizmoManager.ShowDropTriggerGesture
getset

◆ ShowGestures

bool GizmoManager.ShowGestures
getset

◆ ShowGrabTriggerGesture

bool GizmoManager.ShowGrabTriggerGesture
getset

◆ ShowHandSide

bool GizmoManager.ShowHandSide
getset

◆ ShowHandStates

bool GizmoManager.ShowHandStates
getset

◆ ShowManoClass

bool GizmoManager.ShowManoClass
getset

◆ ShowPickTriggerGesture

bool GizmoManager.ShowPickTriggerGesture
getset

◆ ShowReleaseTriggerGesture

bool GizmoManager.ShowReleaseTriggerGesture
getset

◆ ShowSkeleton3d

bool GizmoManager.ShowSkeleton3d
getset

◆ ShowSmoothingSlider

bool GizmoManager.ShowSmoothingSlider
getset

◆ ShowWarnings

bool GizmoManager.ShowWarnings
getset

The documentation for this class was generated from the following file: