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

Handles wich features / gizmos that will be calculated and visualized. More...

Inheritance diagram for GizmoManager:

Public Member Functions

void ShouldDisplaySmoothingSlider (bool display)
 Displayes 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 ShowLeftRight [get, set]
 
bool ShowGrabRelease [get, set]
 
bool ShowPickDrop [get, set]
 
bool ShowSwipes [get, set]
 
bool ShowGestureAnalysis [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 ShowSwipeHorizontalTriggerGesture [get, set]
 
bool ShowSwipeVerticalTriggerGesture [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]
 
bool ShowWristInfo [get, set]
 
bool ShowFingerInfo [get, set]
 
bool ShowContour [get, set]
 

Private Member Functions

void Start ()
 
void SetFeaturesToCalculate ()
 Sets which features that should be calculated More...
 
void Update ()
 Updates the GestureInfo, TrackingInfo, Warning and Session every frame. More...
 
void DisplayWristInformation ()
 Displays the Wrist Information from WristInfoGizmo for the detected hand if feature is on. More...
 
void DisplayFingerInformation ()
 Dispalys the Finger information from FingerInfoGizmo for the detected hand if feature is on. More...
 
void DisplayContour ()
 Displays the hand contour from ContourGizmo if feature is on. More...
 
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 wich hand side currently facing the camera. More...
 
void DisplayLeftRight (LeftOrRightHand isRight)
 Displays wich hand currently facing the camera. 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 and trigger swipes. 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 DisplayWristFlags (TrackingInfo trackingInfo, GestureInfo gestureInfo)
 Prints out the wrist information error codeif wrist information can´t be calculated correctly. More...
 
void DisplayFingerFlags (TrackingInfo trackingInfo, GestureInfo gestureInfo)
 Prints out the finger infor´mation error code if finger information can´t be calculated correctly. More...
 
void SetGestureDescriptionParts ()
 Initializes the components of the Manoclass,Continuous Gesture and Trigger Gesture Gizmos More...
 
void SetFlagDescriptionParts ()
 Initialized the text componets for displaying the finger and wrist flags. More...
 
void InitializeFlagParts ()
 Initializes the components for the visual illustration of warnings related to approaching edges flags. More...
 

Private Attributes

Image[] stateImages
 
GameObject leftRightGizmo
 
GameObject handStatesGizmo
 
GameObject manoClassGizmo
 
GameObject handSideGizmo
 
GameObject continuousGestureGizmo
 
GameObject triggerTextPrefab
 
GameObject flagHolderGizmo
 
GameObject smoothingSliderControler
 
GameObject depthEstimationGizmo
 
GameObject wristInformationGizmo
 
GameObject fingerInformationGizmo
 
GameObject contourInformationGizmo
 
WristInfoGizmo wristInfoGizmo
 
FingerInfoGizmo fingerInfoGizmo
 
ContourGizmo contourGizmo
 
Text currentSmoothingValue
 
bool _showGestureAnalysis
 
bool _showPickDrop
 
bool _showGrabRelease
 
bool _showSwipes
 
bool _showLeftRight
 
bool _showHandStates
 
bool _showManoClass
 
bool _showHandSide
 
bool _showContinuousGestures
 
bool _showWarnings
 
bool _showPickTriggerGesture
 
bool _showDropTriggerGesture
 
bool _showSwipeHorizontalTriggerGesture
 
bool _showSwipeVerticalTriggerGesture
 
bool _showClickTriggerGesture
 
bool _showGrabTriggerGesture
 
bool _showReleaseTriggerGesture
 
bool _showSmoothingSlider
 
bool _showDepthEstimation
 
bool _showWristInfo
 
bool _showFingerInfo
 
bool _showContour
 
bool skeleton3d
 
bool gestures
 
bool fastMode
 
GameObject topFlag
 
GameObject leftFlag
 
GameObject rightFlag
 
Text leftRightText
 
Text manoClassText
 
Text handSideText
 
Text continuousGestureText
 
TMP_Text fingerFlag
 
TMP_Text wristFlag
 
TextMeshProUGUI depthEstimationValue
 
Image depthFillAmmount
 
ManoGestureTrigger previousTrigger
 

Static Private Attributes

static GizmoManager _instance
 

Detailed Description

Handles wich features / gizmos that will be calculated and visualized.

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.

◆ DisplayContour()

void GizmoManager.DisplayContour ( )
inlineprivate

Displays the hand contour from ContourGizmo if feature is on.

◆ 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.

◆ DisplayFingerFlags()

void GizmoManager.DisplayFingerFlags ( TrackingInfo  trackingInfo,
GestureInfo  gestureInfo 
)
inlineprivate

Prints out the finger infor´mation error code if finger information can´t be calculated correctly.

Parameters
trackingInfotracking information

◆ DisplayFingerInformation()

void GizmoManager.DisplayFingerInformation ( )
inlineprivate

Dispalys the Finger information from FingerInfoGizmo for the detected hand if feature is on.

◆ DisplayHandSide()

void GizmoManager.DisplayHandSide ( HandSide  handside)
inlineprivate

Displays wich hand side currently facing the camera.

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 handsate int

◆ DisplayLeftRight()

void GizmoManager.DisplayLeftRight ( LeftOrRightHand  isRight)
inlineprivate

Displays wich hand currently facing the camera.

Parameters
isRightRequiers the isRight from Gesture Inforamtion

◆ 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 and trigger swipes.

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 from ManoGestureTrigger.
trackingInfoRequires an input of tracking info.

◆ DisplayWristFlags()

void GizmoManager.DisplayWristFlags ( TrackingInfo  trackingInfo,
GestureInfo  gestureInfo 
)
inlineprivate

Prints out the wrist information error codeif wrist information can´t be calculated correctly.

Parameters
trackingInfo

◆ DisplayWristInformation()

void GizmoManager.DisplayWristInformation ( )
inlineprivate

Displays the Wrist Information from WristInfoGizmo for the detected hand if feature is on.

◆ 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

◆ SetFlagDescriptionParts()

void GizmoManager.SetFlagDescriptionParts ( )
inlineprivate

Initialized the text componets for displaying the finger and wrist flags.

◆ SetGestureDescriptionParts()

void GizmoManager.SetGestureDescriptionParts ( )
inlineprivate

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

◆ ShouldDisplaySmoothingSlider()

void GizmoManager.ShouldDisplaySmoothingSlider ( bool  display)
inline

Displayes 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

Updates the GestureInfo, TrackingInfo, Warning and Session every frame.

Also updates all the display methods

Field Documentation

◆ _instance

GizmoManager GizmoManager._instance
staticprivate

◆ _showClickTriggerGesture

bool GizmoManager._showClickTriggerGesture
private

◆ _showContinuousGestures

bool GizmoManager._showContinuousGestures
private

◆ _showContour

bool GizmoManager._showContour
private

◆ _showDepthEstimation

bool GizmoManager._showDepthEstimation
private

◆ _showDropTriggerGesture

bool GizmoManager._showDropTriggerGesture
private

◆ _showFingerInfo

bool GizmoManager._showFingerInfo
private

◆ _showGestureAnalysis

bool GizmoManager._showGestureAnalysis
private

◆ _showGrabRelease

bool GizmoManager._showGrabRelease
private

◆ _showGrabTriggerGesture

bool GizmoManager._showGrabTriggerGesture
private

◆ _showHandSide

bool GizmoManager._showHandSide
private

◆ _showHandStates

bool GizmoManager._showHandStates
private

◆ _showLeftRight

bool GizmoManager._showLeftRight
private

◆ _showManoClass

bool GizmoManager._showManoClass
private

◆ _showPickDrop

bool GizmoManager._showPickDrop
private

◆ _showPickTriggerGesture

bool GizmoManager._showPickTriggerGesture
private

◆ _showReleaseTriggerGesture

bool GizmoManager._showReleaseTriggerGesture
private

◆ _showSmoothingSlider

bool GizmoManager._showSmoothingSlider
private

◆ _showSwipeHorizontalTriggerGesture

bool GizmoManager._showSwipeHorizontalTriggerGesture
private

◆ _showSwipes

bool GizmoManager._showSwipes
private

◆ _showSwipeVerticalTriggerGesture

bool GizmoManager._showSwipeVerticalTriggerGesture
private

◆ _showWarnings

bool GizmoManager._showWarnings
private

◆ _showWristInfo

bool GizmoManager._showWristInfo
private

◆ amountToPool

int GizmoManager.amountToPool = 20

◆ continuousGestureGizmo

GameObject GizmoManager.continuousGestureGizmo
private

◆ continuousGestureText

Text GizmoManager.continuousGestureText
private

◆ contourGizmo

ContourGizmo GizmoManager.contourGizmo
private

◆ contourInformationGizmo

GameObject GizmoManager.contourInformationGizmo
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

◆ fingerFlag

TMP_Text GizmoManager.fingerFlag
private

◆ fingerInfoGizmo

FingerInfoGizmo GizmoManager.fingerInfoGizmo
private

◆ fingerInformationGizmo

GameObject GizmoManager.fingerInformationGizmo
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

◆ leftRightGizmo

GameObject GizmoManager.leftRightGizmo
private

◆ leftRightText

Text GizmoManager.leftRightText
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

◆ wristFlag

TMP_Text GizmoManager.wristFlag
private

◆ wristInfoGizmo

WristInfoGizmo GizmoManager.wristInfoGizmo
private

◆ wristInformationGizmo

GameObject GizmoManager.wristInformationGizmo
private

Property Documentation

◆ Fastmode

bool GizmoManager.Fastmode
getset

◆ Instance

GizmoManager GizmoManager.Instance
staticgetset

◆ ShowClickTriggerGesture

bool GizmoManager.ShowClickTriggerGesture
getset

◆ ShowContinuousGestures

bool GizmoManager.ShowContinuousGestures
getset

◆ ShowContour

bool GizmoManager.ShowContour
getset

◆ ShowDepthEstimation

bool GizmoManager.ShowDepthEstimation
getset

◆ ShowDropTriggerGesture

bool GizmoManager.ShowDropTriggerGesture
getset

◆ ShowFingerInfo

bool GizmoManager.ShowFingerInfo
getset

◆ ShowGestureAnalysis

bool GizmoManager.ShowGestureAnalysis
getset

◆ ShowGestures

bool GizmoManager.ShowGestures
getset

◆ ShowGrabRelease

bool GizmoManager.ShowGrabRelease
getset

◆ ShowGrabTriggerGesture

bool GizmoManager.ShowGrabTriggerGesture
getset

◆ ShowHandSide

bool GizmoManager.ShowHandSide
getset

◆ ShowHandStates

bool GizmoManager.ShowHandStates
getset

◆ ShowLeftRight

bool GizmoManager.ShowLeftRight
getset

◆ ShowManoClass

bool GizmoManager.ShowManoClass
getset

◆ ShowPickDrop

bool GizmoManager.ShowPickDrop
getset

◆ ShowPickTriggerGesture

bool GizmoManager.ShowPickTriggerGesture
getset

◆ ShowReleaseTriggerGesture

bool GizmoManager.ShowReleaseTriggerGesture
getset

◆ ShowSkeleton3d

bool GizmoManager.ShowSkeleton3d
getset

◆ ShowSmoothingSlider

bool GizmoManager.ShowSmoothingSlider
getset

◆ ShowSwipeHorizontalTriggerGesture

bool GizmoManager.ShowSwipeHorizontalTriggerGesture
getset

◆ ShowSwipes

bool GizmoManager.ShowSwipes
getset

◆ ShowSwipeVerticalTriggerGesture

bool GizmoManager.ShowSwipeVerticalTriggerGesture
getset

◆ ShowWarnings

bool GizmoManager.ShowWarnings
getset

◆ ShowWristInfo

bool GizmoManager.ShowWristInfo
getset

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