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.
SendMessage.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //
3 #ifndef __SEND_MESSAGE
4 #define __SEND_MESSAGE
5 
6 typedef void (*sendMessageFunc )(const char*);
7 typedef void (*sendLogFunc )(const char*);
8 typedef void (*sendPoseFunc )(float, float, float, double, double, double);
9 typedef void (*sendArrayPoints)(int[], int size);
10 
12 {
13 public:
14  SendMessage();
16  void SendStringToUnity(const char* st);
17  void SendLogToUnity(const char* st);
18  void SendPoseToUnity(float r1, float r2, float r3, double t1, double t2, double t3);
19  void SendArrayOfPoints(int arrayOfPoint [], int size);
20 
21 private:
27 };
28 
29 
30 
31 #endif
sendPoseFunc sendPoseToUnityPointer
Definition: SendMessage.h:23
sendArrayPoints sendArrayPointsToUnity
Definition: SendMessage.h:24
sendLogFunc sendLogToUnity
Definition: SendMessage.h:25
void SendPoseToUnity(float r1, float r2, float r3, double t1, double t2, double t3)
Send pose to Unity3D
Definition: SendMessage.cpp:63
void SendStringToUnity(const char *st)
Send string to Unity3D
Definition: SendMessage.cpp:46
int * arrayOfPointsData
Definition: SendMessage.h:26
void SendLogToUnity(const char *st)
Send string to Unity3D
Definition: SendMessage.cpp:34
void SetSendMessagesFunc(sendMessageFunc smf, sendPoseFunc spf, sendArrayPoints sar, sendLogFunc sendLog)
Sets callback functions recived from Unity3D
Definition: SendMessage.cpp:22
sendMessageFunc sendMessageToUnity
Definition: SendMessage.h:22
void(* sendPoseFunc)(float, float, float, double, double, double)
Definition: SendMessage.h:8
void(* sendArrayPoints)(int[], int size)
Definition: SendMessage.h:9
void SendArrayOfPoints(int arrayOfPoint[], int size)
Send array of points to Unity3D
Definition: SendMessage.cpp:75
void(* sendMessageFunc)(const char *)
Definition: SendMessage.h:6
SendMessage()
SendMessage implements communication protocol between plugin and Unity3D
Definition: SendMessage.cpp:7
void(* sendLogFunc)(const char *)
Definition: SendMessage.h:7