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 Member Functions | Private Attributes | List of all members
SendMessage Class Reference

#include <SendMessage.h>

Public Member Functions

 SendMessage ()
 SendMessage implements communication protocol between plugin and Unity3D More...
 
void SetSendMessagesFunc (sendMessageFunc smf, sendPoseFunc spf, sendArrayPoints sar, sendLogFunc sendLog)
 Sets callback functions recived from Unity3D More...
 
void SendStringToUnity (const char *st)
 Send string to Unity3D More...
 
void SendLogToUnity (const char *st)
 Send string to Unity3D More...
 
void SendPoseToUnity (float r1, float r2, float r3, double t1, double t2, double t3)
 Send pose to Unity3D More...
 
void SendArrayOfPoints (int arrayOfPoint[], int size)
 Send array of points to Unity3D More...
 

Private Attributes

sendMessageFunc sendMessageToUnity
 
sendPoseFunc sendPoseToUnityPointer
 
sendArrayPoints sendArrayPointsToUnity
 
sendLogFunc sendLogToUnity
 
int * arrayOfPointsData
 

Detailed Description

Definition at line 11 of file SendMessage.h.

Constructor & Destructor Documentation

SendMessage::SendMessage ( )

SendMessage implements communication protocol between plugin and Unity3D

Definition at line 7 of file SendMessage.cpp.

Member Function Documentation

void SendMessage::SendArrayOfPoints ( int  arrayOfPoints[],
int  size 
)

Send array of points to Unity3D

Parameters
arrayOfPointsarray of points to send
sizenumber of elements

Definition at line 75 of file SendMessage.cpp.

void SendMessage::SendLogToUnity ( const char *  st)

Send string to Unity3D

Parameters
stmessage to send to log in Unity3D

Definition at line 34 of file SendMessage.cpp.

void SendMessage::SendPoseToUnity ( float  r1,
float  r2,
float  r3,
double  t1,
double  t2,
double  t3 
)

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

Definition at line 63 of file SendMessage.cpp.

void SendMessage::SendStringToUnity ( const char *  st)

Send string to Unity3D

Parameters
stmessage to send to Unity3D

Definition at line 46 of file SendMessage.cpp.

void SendMessage::SetSendMessagesFunc ( sendMessageFunc  smf,
sendPoseFunc  spf,
sendArrayPoints  sar,
sendLogFunc  sendLog 
)

Sets callback functions recived from Unity3D

Parameters
smfaddress of SendStringDelegate implemented in Unity3D
spfaddress of SendPoseDelegate implemented in Unity3D
sendLogaddress of SendLogDelegate implemented in Unity3D
saraddress of SendArrayPointsDelegate implemented in Unity3D

Definition at line 22 of file SendMessage.cpp.

Member Data Documentation

int* SendMessage::arrayOfPointsData
private

Definition at line 26 of file SendMessage.h.

sendArrayPoints SendMessage::sendArrayPointsToUnity
private

Definition at line 24 of file SendMessage.h.

sendLogFunc SendMessage::sendLogToUnity
private

Definition at line 25 of file SendMessage.h.

sendMessageFunc SendMessage::sendMessageToUnity
private

Definition at line 22 of file SendMessage.h.

sendPoseFunc SendMessage::sendPoseToUnityPointer
private

Definition at line 23 of file SendMessage.h.


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