SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
SlamFlexWrapper Class Reference

SlamFlexWrapper implements interface to native implementation and public interface for use inside C# and JS code More...

Public Types

enum  DetectionState { DetectionState.Started, DetectionState.InProgres, DetectionState.Stopped, DetectionState.Finished }
 Enum for state of SLAM detection process More...
 

Public Member Functions

delegate void SendStringDelegate (string s)
 Definition of delegate used from plugin to send string to Unity3D More...
 
delegate void SendPoseDelegate (float r1, float r2, float r3, double t1, double t2, double t3)
 Definition of delegate used from plugin to send pose to Unity3D More...
 
delegate void SendLogDelegate (string text)
 Definition of delegate used from plugin to send log to Unity3D More...
 
delegate void SendArrayPointsDelegate (IntPtr pointer, int size)
 Definition of delegate used from plugin to send array of points to Unity3D More...
 

Static Public Member Functions

static void StartSlam (SendStringDelegate ssd, SendPoseDelegate spd, SendLogDelegate sLogd, SendArrayPointsDelegate arrayPoints)
 Starts SLAM detection More...
 
static void StopSlam ()
 Stops SLAM detection More...
 
static DetectionState SetNewFrame (IntPtr pointer, int width, int height)
 Send image data to plugin for SLAM detection More...
 
static void StartPlaneDetection ()
 Initiate SLAM detection More...
 

Static Private Member Functions

static bool ViablePlatform ()
 Check if is viable platform for running plugin More...
 

Detailed Description

SlamFlexWrapper implements interface to native implementation and public interface for use inside C# and JS code

Definition at line 8 of file SlamFlexWrapper.cs.

Member Enumeration Documentation

Enum for state of SLAM detection process

Enumerator
Started 
InProgres 
Stopped 
Finished 

Definition at line 12 of file SlamFlexWrapper.cs.

Member Function Documentation

delegate void SlamFlexWrapper.SendArrayPointsDelegate ( IntPtr  pointer,
int  size 
)

Definition of delegate used from plugin to send array of points to Unity3D

Parameters
pointerAddress of array
sizenumber of elements
delegate void SlamFlexWrapper.SendLogDelegate ( string  text)

Definition of delegate used from plugin to send log to Unity3D

Parameters
textstring message to log
delegate void SlamFlexWrapper.SendPoseDelegate ( float  r1,
float  r2,
float  r3,
double  t1,
double  t2,
double  t3 
)

Definition of delegate used from plugin to send pose to Unity3D

Parameters
r1rotation euler angle for unity game object transform X
r2rotation euler angle for unity game object transform Y
r3rotation euler angle for unity game object transform Z
t1translation for unity game object transform X
t2translation for unity game object transform Y
t3translation for unity game object transform Z
delegate void SlamFlexWrapper.SendStringDelegate ( string  s)

Definition of delegate used from plugin to send string to Unity3D

Parameters
sstring to send
static DetectionState SlamFlexWrapper.SetNewFrame ( IntPtr  pointer,
int  width,
int  height 
)
inlinestatic

Send image data to plugin for SLAM detection

Parameters
pointerimage addess, pointer to first byte
widthimage width
heightimage height
Returns
current state of detection

Definition at line 115 of file SlamFlexWrapper.cs.

static void SlamFlexWrapper.StartPlaneDetection ( )
inlinestatic

Initiate SLAM detection

Definition at line 166 of file SlamFlexWrapper.cs.

static void SlamFlexWrapper.StartSlam ( SendStringDelegate  ssd,
SendPoseDelegate  spd,
SendLogDelegate  sLogd,
SendArrayPointsDelegate  arrayPoints 
)
inlinestatic

Starts SLAM detection

Parameters
ssdaddress of SendStringDelegate implemented in Unity3D
spdaddress of SendPoseDelegate implemented in Unity3D
sLogdaddress of SendLogDelegate implemented in Unity3D
arrayPointsaddress of SendArrayPointsDelegate implemented in Unity3D

Definition at line 86 of file SlamFlexWrapper.cs.

static void SlamFlexWrapper.StopSlam ( )
inlinestatic

Stops SLAM detection

Definition at line 100 of file SlamFlexWrapper.cs.

static bool SlamFlexWrapper.ViablePlatform ( )
inlinestaticprivate

Check if is viable platform for running plugin

Returns

Definition at line 178 of file SlamFlexWrapper.cs.


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