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.
|
#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 |
Definition at line 11 of file SendMessage.h.
SendMessage::SendMessage | ( | ) |
SendMessage implements communication protocol between plugin and Unity3D
Definition at line 7 of file SendMessage.cpp.
void SendMessage::SendArrayOfPoints | ( | int | arrayOfPoints[], |
int | size | ||
) |
Send array of points to Unity3D
arrayOfPoints | array of points to send |
size | number of elements |
Definition at line 75 of file SendMessage.cpp.
void SendMessage::SendLogToUnity | ( | const char * | st | ) |
Send string to Unity3D
st | message 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
r1 | rotation euler angle for unity game object transform X |
r2 | rotation euler angle for unity game object transform Y |
r3 | rotation euler angle for unity game object transform Z |
t1 | translation for unity game object transform X |
t2 | translation for unity game object transform Y |
t3 | translation for unity game object transform Z |
Definition at line 63 of file SendMessage.cpp.
void SendMessage::SendStringToUnity | ( | const char * | st | ) |
Send string to Unity3D
st | message 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
smf | address of SendStringDelegate implemented in Unity3D |
spf | address of SendPoseDelegate implemented in Unity3D |
sendLog | address of SendLogDelegate implemented in Unity3D |
sar | address of SendArrayPointsDelegate implemented in Unity3D |
Definition at line 22 of file SendMessage.cpp.
|
private |
Definition at line 26 of file SendMessage.h.
|
private |
Definition at line 24 of file SendMessage.h.
|
private |
Definition at line 25 of file SendMessage.h.
|
private |
Definition at line 22 of file SendMessage.h.
|
private |
Definition at line 23 of file SendMessage.h.