ManoMotion SDK PRO  1.4.8
ManoMotion SDK PRO API documentation
CameraSystem.InputManagerAdjustable Class Reference
Inheritance diagram for CameraSystem.InputManagerAdjustable:
InputManagerBaseClass

Public Member Functions

void FlipTextureHorizontal (ref Texture2D original)
 Flips the texture Horizontaly More...
 
void FlipTextureVertical (ref Texture2D orignal)
 Flips the texture Verticaly. More...
 

Data Fields

ManoMotionFrame currentManoMotionFrame
 
bool isFrontFacingSceneario
 
- Data Fields inherited from InputManagerBaseClass
bool isFrontFacing
 

Protected Member Functions

void GetCameraFrameInformation ()
 Gets the camera frame pixel colors. More...
 
void ResizeManoMotionFrameResolution (int newWidth, int newHeight)
 Sets the resolution of the currentManoMotion frame that is passed to the subscribers that want to make use of the input camera feed. More...
 
- Protected Member Functions inherited from InputManagerBaseClass
virtual void ResizeCurrentFrameTexture (int width, int height)
 
virtual void ForceApplicationPermissions ()
 Forces the application to ask for camera permissions and external storage read and writte. More...
 
virtual void UpdateFrame< T > (T parameter)
 
virtual void UpdateFrame ()
 

Private Member Functions

void HandleNewCameraDeviceSelected (int deviceNumber)
 
void StopCurrentPlayingCamera ()
 Stop all cameras that might be playing. More...
 
void AssignNewCurrentCamera (int cameraNumber)
 
void StartCurrentCamera ()
 
void Awake ()
 
void Start ()
 
void InitializeManoMotionFrame ()
 Initializes the ManoMotion Frame and lets the subscribers of the event know of its information. More...
 
void Update ()
 
void OnEnable ()
 Start the camera when enabled. More...
 
void OnDisable ()
 Stops the camera when disabled. More...
 
void OnApplicationFocus (bool hasFocus)
 Stops processing when application is put to background. More...
 
void OnApplicationPause (bool pauseStatus)
 Stops the processing if application is paused. More...
 

Private Attributes

WebCamDevice[] webCamDevices
 
WebCamTexture currentPlayingCamera
 
int currentIndex
 
bool isPaused = false
 

Static Private Attributes

const int STARTING_WIDTH = 640
 
const int STARTING_HEIGHT = 480
 

Additional Inherited Members

- Static Public Attributes inherited from InputManagerBaseClass
static Action< ManoMotionFrameOnFrameUpdated
 
static Action< ManoMotionFrameOnFrameInitialized
 
static Action< ManoMotionFrameOnFrameResized
 
static Action< DeviceOrientation > OnOrientationChanged
 
static Action< AddOnOnAddonSet
 
static Action OnChangeCamera
 
- Protected Attributes inherited from InputManagerBaseClass
int rezMinValue
 
int rezMaxValue
 

Member Function Documentation

◆ AssignNewCurrentCamera()

void CameraSystem.InputManagerAdjustable.AssignNewCurrentCamera ( int  cameraNumber)
inlineprivate

◆ Awake()

void CameraSystem.InputManagerAdjustable.Awake ( )
inlineprivate

◆ FlipTextureHorizontal()

void CameraSystem.InputManagerAdjustable.FlipTextureHorizontal ( ref Texture2D  original)
inline

Flips the texture Horizontaly

Parameters
originalthe ref to the texture to filp

◆ FlipTextureVertical()

void CameraSystem.InputManagerAdjustable.FlipTextureVertical ( ref Texture2D  orignal)
inline

Flips the texture Verticaly.

Parameters
orignalThe ref to the texture to flip

◆ GetCameraFrameInformation()

void CameraSystem.InputManagerAdjustable.GetCameraFrameInformation ( )
inlineprotected

Gets the camera frame pixel colors.

◆ HandleNewCameraDeviceSelected()

void CameraSystem.InputManagerAdjustable.HandleNewCameraDeviceSelected ( int  deviceNumber)
inlineprivate

◆ InitializeManoMotionFrame()

void CameraSystem.InputManagerAdjustable.InitializeManoMotionFrame ( )
inlineprivate

Initializes the ManoMotion Frame and lets the subscribers of the event know of its information.

◆ OnApplicationFocus()

void CameraSystem.InputManagerAdjustable.OnApplicationFocus ( bool  hasFocus)
inlineprivate

Stops processing when application is put to background.

Parameters
hasFocusIf application is running or is in background

◆ OnApplicationPause()

void CameraSystem.InputManagerAdjustable.OnApplicationPause ( bool  pauseStatus)
inlineprivate

Stops the processing if application is paused.

Parameters
pauseStatusIf application is paused or not

◆ OnDisable()

void CameraSystem.InputManagerAdjustable.OnDisable ( )
inlineprivate

Stops the camera when disabled.

◆ OnEnable()

void CameraSystem.InputManagerAdjustable.OnEnable ( )
inlineprivate

Start the camera when enabled.

◆ ResizeManoMotionFrameResolution()

void CameraSystem.InputManagerAdjustable.ResizeManoMotionFrameResolution ( int  newWidth,
int  newHeight 
)
inlineprotected

Sets the resolution of the currentManoMotion frame that is passed to the subscribers that want to make use of the input camera feed.

Parameters
newWidthRequires a width value.
newHeightRequires a height value.

◆ Start()

void CameraSystem.InputManagerAdjustable.Start ( )
inlineprivate

◆ StartCurrentCamera()

void CameraSystem.InputManagerAdjustable.StartCurrentCamera ( )
inlineprivate

◆ StopCurrentPlayingCamera()

void CameraSystem.InputManagerAdjustable.StopCurrentPlayingCamera ( )
inlineprivate

Stop all cameras that might be playing.

◆ Update()

void CameraSystem.InputManagerAdjustable.Update ( )
inlineprivate

Field Documentation

◆ currentIndex

int CameraSystem.InputManagerAdjustable.currentIndex
private

◆ currentManoMotionFrame

ManoMotionFrame CameraSystem.InputManagerAdjustable.currentManoMotionFrame

◆ currentPlayingCamera

WebCamTexture CameraSystem.InputManagerAdjustable.currentPlayingCamera
private

◆ isFrontFacingSceneario

bool CameraSystem.InputManagerAdjustable.isFrontFacingSceneario

◆ isPaused

bool CameraSystem.InputManagerAdjustable.isPaused = false
private

◆ STARTING_HEIGHT

const int CameraSystem.InputManagerAdjustable.STARTING_HEIGHT = 480
staticprivate

◆ STARTING_WIDTH

const int CameraSystem.InputManagerAdjustable.STARTING_WIDTH = 640
staticprivate

◆ webCamDevices

WebCamDevice [] CameraSystem.InputManagerAdjustable.webCamDevices
private

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