ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
ManoMotion.ManoMotionManagerBase Class Referenceabstract

Base class for ManoMotionManager. Handles library imports and settings.

Inheritance diagram for ManoMotion.ManoMotionManagerBase:
ManoMotion.ManoMotionManager

Public Member Functions

void ShouldCalculateSkeleton3D (bool condition)
 Lets the SDK know if it should calculate the Skeleton in 3D or 2D. And gives information to SkeletonManager which skeleton model to display.
 
void ShouldCalculateGestures (bool condition)
 Lets the SDK know that it needs to calculate the Gestures.
 
void ShouldRunFastMode (bool condition)
 Lets the SDK know if it should run fast mode or not.
 
void ShouldRunWristInfo (bool condition)
 Lets the SDK know if it should calculate wrist information.
 
void ShouldRunFingerInfo (bool condition)
 Lets the SDK know if it should calculate finger information. 4 will run the finger_info for the ring finger, 0 is off.
 
void ToggleFingerInfoFinger (int index)
 Toggle wich finger to use for the finger information. 0 = off 1 = Thumb 2 = Index 3 = Middle 4 = Ring 5 = Pinky.
 
bool TryGetHandInfo (LeftOrRightHand leftRight, out HandInfo handInfo)
 Returns true and gives back the hand info of the left/right hand specified.
 
bool TryGetHandInfo (LeftOrRightHand leftRight, out HandInfo handInfo, out int handIndex)
 Returns true and gives back the hand info of the left/right hand specified.
 
void SetProcessingType (ProcessingType processingType)
 
void ToggleProcessingType ()
 

Public Attributes

float oneEuroFilterSmoothing
 Smoothing value.
 

Static Public Attributes

static Action OnManoMotionFrameProcessed
 Sends information after each frame is processed by the SDK.
 
static Action OnManoMotionLicenseInitialized
 Sends information after the license is checked by the SDK.
 
static Action< SkeletonModelOnSkeletonActivated
 Sends information when changing between 2D and 3D joints.
 
static Action< float > OnSmoothingValueChanged
 Sends information when changing the smoothing value.
 

Protected Member Functions

static void initSetup (int imageFormat, ref AssetStatus status)
 
static void initSetupWithKey (ManoSettings settings, ref AssetStatus status)
 
static void stop ()
 
static void SetTextureFromUnity (IntPtr textureHandleLeft, int width, int height, int splittingFactor)
 
static IntPtr GetRenderEventFunc ()
 Tell the SDK to process the current frame.
 
static int copyHandInfo (ref HandInfo first_hand_info, ref HandInfo second_hand_info, ref Session manomotion_session)
 
static void processFrameTwoHands (ref HandInfo first_hand_info, ref HandInfo second_hand_info, ref Session manomotion_session)
 
static void setLeftFrameArray (Color32[] frame)
 
static void setResolution (int width, int height)
 
static void getPerformanceInfo (ref int processingTime, ref int getImageTime)
 
virtual void Awake ()
 
void Init ()
 
void CalculateFPSAndProcessingTime ()
 Calculates the Frames Per Second in the application and retrieves the estimated Processing time.
 
void CalculateProcessingTime ()
 Calculates the elapses time needed for processing the frame.
 
virtual void SetResolutionValues (int width, int height)
 Sets the resolution values used throughout the initialization methods of the arrays and textures.
 

Protected Attributes

ProcessingType processingType = ProcessingType.Async
 
Session manomotionSession
 
HandInfo[] handInfos
 
bool overrideLicense
 
string customLicense
 
AssetStatus status
 
ManoSettings settings
 
float version
 
InputManagerBase inputManager
 
ManoMotionFrame currentManomotionFrame
 Information about camera image(s)
 
VisualizationInfo visualizationInfo
 
int width
 
int height
 
int fps
 
int processingTime
 
float fpsUpdateTimer = 0
 
int frameCount = 0
 
List< int > processingTimeList = new List<int>()
 

Static Protected Attributes

const string library = "manomotion"
 

Properties

int ProcessingTime [get]
 
int Fps [get]
 
int Width [get]
 
int Height [get]
 
float Version [get]
 
ref VisualizationInfo VisualizationInfo [get]
 
HandInfo[] HandInfos [get]
 
AssetStatus LicenseStatus [get]
 
Session ManomotionSession [get]
 
InputManagerBase InputManager [get]
 

Private Attributes

int targetFps = 0
 

Member Function Documentation

◆ Awake()

virtual void ManoMotion.ManoMotionManagerBase.Awake ( )
inlineprotectedvirtual

Reimplemented in ManoMotion.ManoMotionManager.

◆ CalculateFPSAndProcessingTime()

void ManoMotion.ManoMotionManagerBase.CalculateFPSAndProcessingTime ( )
inlineprotected

◆ CalculateProcessingTime()

void ManoMotion.ManoMotionManagerBase.CalculateProcessingTime ( )
inlineprotected

◆ copyHandInfo()

static int ManoMotion.ManoMotionManagerBase.copyHandInfo ( ref HandInfo first_hand_info,
ref HandInfo second_hand_info,
ref Session manomotion_session )
protected

◆ getPerformanceInfo()

static void ManoMotion.ManoMotionManagerBase.getPerformanceInfo ( ref int processingTime,
ref int getImageTime )
protected

◆ GetRenderEventFunc()

static IntPtr ManoMotion.ManoMotionManagerBase.GetRenderEventFunc ( )
protected

◆ Init()

void ManoMotion.ManoMotionManagerBase.Init ( )
inlineprotected

◆ initSetup()

static void ManoMotion.ManoMotionManagerBase.initSetup ( int imageFormat,
ref AssetStatus status )
protected

◆ initSetupWithKey()

static void ManoMotion.ManoMotionManagerBase.initSetupWithKey ( ManoSettings settings,
ref AssetStatus status )
protected

◆ processFrameTwoHands()

static void ManoMotion.ManoMotionManagerBase.processFrameTwoHands ( ref HandInfo first_hand_info,
ref HandInfo second_hand_info,
ref Session manomotion_session )
protected

◆ setLeftFrameArray()

static void ManoMotion.ManoMotionManagerBase.setLeftFrameArray ( Color32[] frame)
protected

◆ SetProcessingType()

void ManoMotion.ManoMotionManagerBase.SetProcessingType ( ProcessingType processingType)
inline

◆ setResolution()

static void ManoMotion.ManoMotionManagerBase.setResolution ( int width,
int height )
protected

◆ SetResolutionValues()

virtual void ManoMotion.ManoMotionManagerBase.SetResolutionValues ( int width,
int height )
inlineprotectedvirtual
Parameters
widthRequires a width value.
heightRequires a height value.

◆ SetTextureFromUnity()

static void ManoMotion.ManoMotionManagerBase.SetTextureFromUnity ( IntPtr textureHandleLeft,
int width,
int height,
int splittingFactor )
protected

◆ ShouldCalculateGestures()

void ManoMotion.ManoMotionManagerBase.ShouldCalculateGestures ( bool condition)
inline
Parameters
conditionrun or not

◆ ShouldCalculateSkeleton3D()

void ManoMotion.ManoMotionManagerBase.ShouldCalculateSkeleton3D ( bool condition)
inline
Parameters
conditionrun or not

◆ ShouldRunFastMode()

void ManoMotion.ManoMotionManagerBase.ShouldRunFastMode ( bool condition)
inline
Parameters
conditionrun or not

◆ ShouldRunFingerInfo()

void ManoMotion.ManoMotionManagerBase.ShouldRunFingerInfo ( bool condition)
inline
Parameters
conditionrun or not

◆ ShouldRunWristInfo()

void ManoMotion.ManoMotionManagerBase.ShouldRunWristInfo ( bool condition)
inline
Parameters
conditionrun or not

◆ stop()

static void ManoMotion.ManoMotionManagerBase.stop ( )
protected

◆ ToggleFingerInfoFinger()

void ManoMotion.ManoMotionManagerBase.ToggleFingerInfoFinger ( int index)
inline
Parameters
indexint between 0 and 5, 0 is off and 1-5 is the different fingers

◆ ToggleProcessingType()

void ManoMotion.ManoMotionManagerBase.ToggleProcessingType ( )
inline

◆ TryGetHandInfo() [1/2]

bool ManoMotion.ManoMotionManagerBase.TryGetHandInfo ( LeftOrRightHand leftRight,
out HandInfo handInfo )
inline

◆ TryGetHandInfo() [2/2]

bool ManoMotion.ManoMotionManagerBase.TryGetHandInfo ( LeftOrRightHand leftRight,
out HandInfo handInfo,
out int handIndex )
inline

Member Data Documentation

◆ currentManomotionFrame

ManoMotionFrame ManoMotion.ManoMotionManagerBase.currentManomotionFrame
protected

◆ customLicense

string ManoMotion.ManoMotionManagerBase.customLicense
protected

◆ fps

int ManoMotion.ManoMotionManagerBase.fps
protected

◆ fpsUpdateTimer

float ManoMotion.ManoMotionManagerBase.fpsUpdateTimer = 0
protected

◆ frameCount

int ManoMotion.ManoMotionManagerBase.frameCount = 0
protected

◆ handInfos

HandInfo [] ManoMotion.ManoMotionManagerBase.handInfos
protected

◆ height

int ManoMotion.ManoMotionManagerBase.height
protected

◆ inputManager

InputManagerBase ManoMotion.ManoMotionManagerBase.inputManager
protected

◆ library

const string ManoMotion.ManoMotionManagerBase.library = "manomotion"
staticprotected

◆ manomotionSession

Session ManoMotion.ManoMotionManagerBase.manomotionSession
protected

◆ oneEuroFilterSmoothing

float ManoMotion.ManoMotionManagerBase.oneEuroFilterSmoothing

◆ OnManoMotionFrameProcessed

Action ManoMotion.ManoMotionManagerBase.OnManoMotionFrameProcessed
static

◆ OnManoMotionLicenseInitialized

Action ManoMotion.ManoMotionManagerBase.OnManoMotionLicenseInitialized
static

◆ OnSkeletonActivated

Action<SkeletonModel> ManoMotion.ManoMotionManagerBase.OnSkeletonActivated
static

◆ OnSmoothingValueChanged

Action<float> ManoMotion.ManoMotionManagerBase.OnSmoothingValueChanged
static

◆ overrideLicense

bool ManoMotion.ManoMotionManagerBase.overrideLicense
protected

◆ processingTime

int ManoMotion.ManoMotionManagerBase.processingTime
protected

◆ processingTimeList

List<int> ManoMotion.ManoMotionManagerBase.processingTimeList = new List<int>()
protected

◆ processingType

ProcessingType ManoMotion.ManoMotionManagerBase.processingType = ProcessingType.Async
protected

◆ settings

ManoSettings ManoMotion.ManoMotionManagerBase.settings
protected

◆ status

AssetStatus ManoMotion.ManoMotionManagerBase.status
protected

◆ targetFps

int ManoMotion.ManoMotionManagerBase.targetFps = 0
private

◆ version

float ManoMotion.ManoMotionManagerBase.version
protected

◆ visualizationInfo

VisualizationInfo ManoMotion.ManoMotionManagerBase.visualizationInfo
protected

◆ width

int ManoMotion.ManoMotionManagerBase.width
protected

Property Documentation

◆ Fps

int ManoMotion.ManoMotionManagerBase.Fps
getpackage

◆ HandInfos

HandInfo [] ManoMotion.ManoMotionManagerBase.HandInfos
get

◆ Height

int ManoMotion.ManoMotionManagerBase.Height
getpackage

◆ InputManager

InputManagerBase ManoMotion.ManoMotionManagerBase.InputManager
get

◆ LicenseStatus

AssetStatus ManoMotion.ManoMotionManagerBase.LicenseStatus
get

◆ ManomotionSession

Session ManoMotion.ManoMotionManagerBase.ManomotionSession
get

◆ ProcessingTime

int ManoMotion.ManoMotionManagerBase.ProcessingTime
getpackage

◆ Version

float ManoMotion.ManoMotionManagerBase.Version
get

◆ VisualizationInfo

ref VisualizationInfo ManoMotion.ManoMotionManagerBase.VisualizationInfo
getpackage

◆ Width

int ManoMotion.ManoMotionManagerBase.Width
getpackage