Handles wich features / gizmos that will be calculated and visualized. More...
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... | |
Static Private Attributes | |
static GizmoManager | _instance |
Handles wich features / gizmos that will be calculated and visualized.
|
inlineprivate |
Highlights the edges of the screen according to the warning given by the ManoMotion Manager
warning | Requires a Warning. |
|
inlineprivate |
Displays information regarding the detected manoclass
manoGestureContinuous | Requires a continuous Gesture. |
|
inlineprivate |
Displays the hand contour from ContourGizmo if feature is on.
|
inlineprivate |
Displays in text value the current smoothing value of the session
session | Requires a Session. |
|
inlineprivate |
Displays the depth estimation of the detected hand.
depthEstimation | Requires the float value of depth estimation. |
|
inlineprivate |
Prints out the finger infor´mation error code if finger information can´t be calculated correctly.
trackingInfo | tracking information |
|
inlineprivate |
Dispalys the Finger information from FingerInfoGizmo for the detected hand if feature is on.
|
inlineprivate |
Displays wich hand side currently facing the camera.
handside | Requires a ManoMotion Handside. |
|
inlineprivate |
Updates the visual information that showcases the hand state (how open/closed) it is
handstate | Requires a handsate int |
|
inlineprivate |
Displays wich hand currently facing the camera.
isRight | Requiers the isRight from Gesture Inforamtion |
|
inlineprivate |
Displays information regarding the detected manoclass
manoclass | Requires a Manoclass. |
|
inline |
Displays the smoothing slider that controls the level of delay applied to the calculations for Tracking Information.
|
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
triggerGesture | Requires an input from ManoGestureTrigger. |
trackingInfo | Requires an input of tracking info. |
|
inlineprivate |
Prints out the wrist information error codeif wrist information can´t be calculated correctly.
trackingInfo |
|
inlineprivate |
Displays the Wrist Information from WristInfoGizmo for the detected hand if feature is on.
|
inlineprivate |
Gets the current pooled trigger object.
|
inlineprivate |
Visualizes the current hand state by coloring white the images up to that value and turning grey the rest
stateValue | Requires a hand state value to assign the colors accordingly |
|
inlineprivate |
Initializes the components for the visual illustration of warnings related to approaching edges flags.
|
inlineprivate |
Initializes the object pool for trigger gestures.
|
inlineprivate |
Sets which features that should be calculated
|
inlineprivate |
Initialized the text componets for displaying the finger and wrist flags.
|
inlineprivate |
Initializes the components of the Manoclass,Continuous Gesture and Trigger Gesture Gizmos
|
inline |
Displayes the smoothing slider.
display | If set to true display. |
|
inlineprivate |
|
inlineprivate |
Displays the visual information of the performed trigger gesture.
bounding_box | Bounding box. |
triggerGesture | Trigger gesture. |
|
inlineprivate |
Updates the GestureInfo, TrackingInfo, Warning and Session every frame.
Also updates all the display methods
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
int GizmoManager.amountToPool = 20 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Color GizmoManager.disabledStateColor |
The color of the hand state UI.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
List<GameObject> GizmoManager.triggerObjectPool = new List<GameObject>() |
|
private |
|
private |
|
private |
|
private |
|
getset |
|
staticgetset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |