The ManomotionManager handles the communication with the SDK.
More...
|
const string | library = "manomotion" |
|
The ManomotionManager handles the communication with the SDK.
◆ Awake()
virtual void ManomotionManager.Awake |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ CalculateFPSAndProcessingTime()
override void ManomotionManager.CalculateFPSAndProcessingTime |
( |
| ) |
|
|
inlineprotectedvirtual |
Calculates the Frames Per Second in the application and retrieves the estimated Processing time.
Implements ManomotionBase.
◆ CalculateProcessingTime()
void ManomotionManager.CalculateProcessingTime |
( |
| ) |
|
|
inlineprotected |
Calculates the elapses time needed for processing the frame.
◆ GetCameraFramePixelColors()
void ManomotionManager.GetCameraFramePixelColors |
( |
ManoMotionFrame |
newFrame | ) |
|
|
inlineprotected |
Gets the camera frame pixel colors.
◆ HandleAddOnSet()
void ManomotionManager.HandleAddOnSet |
( |
AddOn |
addon | ) |
|
|
inlineprivate |
Gets the correct manomotion_session addon from the inputManager
- Parameters
-
addon | The addon used with the inputManager |
◆ HandleManoMotionFrameInitialized()
void ManomotionManager.HandleManoMotionFrameInitialized |
( |
ManoMotionFrame |
newFrame | ) |
|
|
inlineprivate |
Respond to the event of a ManoMotionFrame being initialized.
- Parameters
-
newFrame | The new frame to process |
◆ HandleManoMotionFrameResized()
void ManomotionManager.HandleManoMotionFrameResized |
( |
ManoMotionFrame |
newFrame | ) |
|
|
inlineprivate |
Respond to the event of a ManoMotionFrame resized.
- Parameters
-
newFrame | The new frame to process |
◆ HandleNewFrame()
Respond to the event of a ManoMotionFrame being sent for processing.
- Parameters
-
newFrame | The new frame to process |
◆ HandleOrientationChanged()
void ManomotionManager.HandleOrientationChanged |
( |
| ) |
|
|
inlineprotected |
Updates the orientation information as captured from the device to the Session
◆ init()
◆ Init()
override void ManomotionManager.Init |
( |
string |
serial_key | ) |
|
|
inlineprotectedvirtual |
◆ InitiateLibrary()
void ManomotionManager.InitiateLibrary |
( |
| ) |
|
|
inlineprotected |
◆ InstantiateHandInfos()
void ManomotionManager.InstantiateHandInfos |
( |
| ) |
|
|
inlineprivate |
Initializes the values for the hand information.
◆ InstantiateSession()
override void ManomotionManager.InstantiateSession |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ InstantiateVisualisationInfo()
void ManomotionManager.InstantiateVisualisationInfo |
( |
| ) |
|
|
inlineprivate |
Instantiates the visualisation info.
◆ ProcessFrame()
void ManomotionManager.ProcessFrame |
( |
| ) |
|
|
inlineprotected |
Wrapper method that calls the ManoMotion core tech to process the frame in order to perform hand tracking and gesture analysis
◆ processFrame()
static void ManomotionManager.processFrame |
( |
ref HandInfo |
hand_info0, |
|
|
ref Session |
manomotion_session |
|
) |
| |
|
private |
◆ ProcessManomotion()
override void ManomotionManager.ProcessManomotion |
( |
| ) |
|
|
inlineprotectedvirtual |
Evaluates the dimension of the pixel color array and if it matches the dimensions proceeds with Processing the Frame.
And adds the processing time to the processing_time_list.
Implements ManomotionBase.
◆ setFrameArray()
static void ManomotionManager.setFrameArray |
( |
Color32[] |
frame | ) |
|
|
private |
◆ SetFrameArray()
void ManomotionManager.SetFrameArray |
( |
Color32[] |
pixels | ) |
|
|
inlineprotected |
Gives instruction where frame pixels are stored.
◆ SetManoMotionSettings()
void ManomotionManager.SetManoMotionSettings |
( |
ImageFormat |
newImageFormat, |
|
|
string |
newLicenseKey |
|
) |
| |
|
inline |
Fills in the information needed in the manosettings Struct in order to initialize ManoMotion Tech.
- Parameters
-
newPlatform | Requires the platform the app is going to be used in. |
newImageFormat | Requires the image format that ManoMotion tech is going to process |
newLicenseKey | Requires a Serial Key that is valid for ManoMotion tech and it linked with the current boundle ID used in the application. |
◆ SetManoMotionSmoothingValue()
void ManomotionManager.SetManoMotionSmoothingValue |
( |
Slider |
slider | ) |
|
|
inline |
Sets the ManoMotion tracking smoothing value throught the gizmo slider, the bigger the value the stronger the smoothing.
- Parameters
-
◆ setMRFrameArray()
static void ManomotionManager.setMRFrameArray |
( |
Color32[] |
frame | ) |
|
|
private |
◆ SetMRFrameArray()
void ManomotionManager.SetMRFrameArray |
( |
Color32[] |
pixels | ) |
|
|
inlineprotected |
Gives instruction where frame pixels are stored.
◆ setResolution()
static void ManomotionManager.setResolution |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
private |
◆ SetResolution()
void ManomotionManager.SetResolution |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlineprotected |
Sends the resolution values to the SDK.
◆ SetResolutionValues()
override void ManomotionManager.SetResolutionValues |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlineprotectedvirtual |
Sets the resolution values used throughout the initialization methods of the arrays and textures.
- Parameters
-
width | Requires a width value. |
height | Requires a height value. |
Implements ManomotionBase.
◆ SetUnityConditions()
override void ManomotionManager.SetUnityConditions |
( |
| ) |
|
|
inlineprotectedvirtual |
Sets the Application to not go to sleep mode as well as the requested framerate.
Implements ManomotionBase.
◆ ShouldCalculateGestures()
void ManomotionManager.ShouldCalculateGestures |
( |
bool |
condition | ) |
|
|
inline |
Lets the SDK know that it needs to calculate the Gestures.
- Parameters
-
◆ ShouldCalculateSkeleton3D()
void ManomotionManager.ShouldCalculateSkeleton3D |
( |
bool |
condition | ) |
|
|
inline |
Lets the SDK know if it should calculate the Skeleton in 3D or 2D.
And gives information to SkeletonManager which skeleton model to display.
- Parameters
-
◆ ShouldRunContour()
void ManomotionManager.ShouldRunContour |
( |
bool |
condition | ) |
|
|
inline |
Lets the SDK know if it should calculate hand contour.
- Parameters
-
◆ ShouldRunFastMode()
void ManomotionManager.ShouldRunFastMode |
( |
bool |
condition | ) |
|
|
inline |
Lets the SDK know if it should run fast mode or not.
- Parameters
-
◆ ShouldRunFingerInfo()
void ManomotionManager.ShouldRunFingerInfo |
( |
bool |
condition | ) |
|
|
inline |
Lets the SDK know if it should calculate finger information.
4 will run the finger_info for the ring finger, 0 is off.
- Parameters
-
◆ ShouldRunWristInfo()
void ManomotionManager.ShouldRunWristInfo |
( |
bool |
condition | ) |
|
|
inline |
Lets the SDK know if it should calculate wrist information.
- Parameters
-
◆ Start()
void ManomotionManager.Start |
( |
| ) |
|
|
inlineprotected |
◆ stop()
static void ManomotionManager.stop |
( |
| ) |
|
|
private |
◆ StopProcessing()
void ManomotionManager.StopProcessing |
( |
| ) |
|
|
inline |
Stops the SDK from processing.
◆ ToggleFingerInfoFinger()
void ManomotionManager.ToggleFingerInfoFinger |
( |
int |
index | ) |
|
|
inline |
Toggle wich finger do use for the finger information.
0 = off 1 = Thumb 2 = Index 3 = Middle 4 = Ring 5 = Pinky
- Parameters
-
index | int between 0 and 5, 0 is off and 1-5 is the different fingers |
◆ Update()
void ManomotionManager.Update |
( |
| ) |
|
|
inlineprotected |
◆ UpdateTexturesWithNewInfo()
void ManomotionManager.UpdateTexturesWithNewInfo |
( |
ManoMotionFrame |
newFrame | ) |
|
|
inlineprotected |
Updates the RGB Frame of Visualization Info with the pixels captured from the camera.
◆ _fps
int ManomotionManager._fps |
|
protected |
◆ _height
int ManomotionManager._height |
|
protected |
the height of the images processed
◆ _initialized
bool ManomotionManager._initialized |
|
private |
◆ _manoLicense
◆ _manoSettings
◆ _processing_time
int ManomotionManager._processing_time |
|
protected |
◆ _width
int ManomotionManager._width |
|
protected |
the width of the images processed
◆ backOrFrontText
TMP_Text ManomotionManager.backOrFrontText |
|
private |
◆ currentImageFormat
◆ fpsCooldown
float ManomotionManager.fpsCooldown = 0 |
|
private |
◆ frameCount
int ManomotionManager.frameCount = 0 |
|
private |
◆ framePixelColors
Color32 [] ManomotionManager.framePixelColors |
|
protected |
◆ hand_infos
The information about the hand.
◆ input_manager
◆ instance
◆ library
const string ManomotionManager.library = "manomotion" |
|
staticprivate |
◆ manomotion_session
Session ManomotionManager.manomotion_session |
|
protected |
The information about the Session values, the SDK settings.
◆ MRframePixelColors
Color32 [] ManomotionManager.MRframePixelColors |
|
protected |
◆ OnManoMotionFrameProcessed
Action ManomotionManager.OnManoMotionFrameProcessed |
|
static |
Sends information after each frame is processed by the SDK.
◆ OnManoMotionLicenseInitialized
Action ManomotionManager.OnManoMotionLicenseInitialized |
|
static |
Sends information after the license is checked by the SDK.
◆ OnSkeleton3dActive
Action<int, int> ManomotionManager.OnSkeleton3dActive |
|
static |
Sends information when changing between 2D and 3D joints.
◆ processing_time_list
List<int> ManomotionManager.processing_time_list = new List<int>() |
|
private |
Stores the processing time values.
◆ visualization_info
◆ Instance
◆ LicenseKey
string ManomotionManager.LicenseKey |
|
getset |
◆ Mano_License
◆ Manomotion_Session
Session ManomotionManager.Manomotion_Session |
|
getset |
◆ ManoSettings
The documentation for this class was generated from the following file: