Ocean
|
The Ocean Devices Android Library provides device access for Android platforms. More...
Modules | |
Ocean Devices Android JNI Library | |
The Ocean Devices Android JNI Library provides a Java Native Interface for Android. | |
Data Structures | |
class | Ocean::Devices::Android::AndroidAccelerationSensor3DOF |
This class implements all 3DOF acceleration sensors (including the linear acceleration sensors). More... | |
class | Ocean::Devices::Android::AndroidDevice |
This class implements a device for the Android library. More... | |
class | Ocean::Devices::Android::AndroidFactory |
This class implements a device factory for the Android feature based tracking system. More... | |
class | Ocean::Devices::Android::AndroidGPSTracker |
This class implements a GPS tracker. More... | |
class | Ocean::Devices::Android::AndroidGravityTracker3DOF |
This class implements a tracker providing the gravity direction as 3-DOF orientation. More... | |
class | Ocean::Devices::Android::AndroidGyroSensor3DOF |
This class implements all 3DOF acceleration sensors (including the linear acceleration sensors). More... | |
class | Ocean::Devices::Android::AndroidHeadingTracker3DOF |
This class implements a tracker providing the heading/north direction as 3-DOF orientation. More... | |
class | Ocean::Devices::Android::AndroidOrientationTracker3DOF |
This class implements a 3DOF orientation tracker. More... | |
class | Ocean::Devices::Android::AndroidSensor |
This class implements a sensor for the Android library. More... | |
Functions | |
OCEAN_DEVICES_ANDROID_EXPORT std::string | Ocean::Devices::Android::nameAndroidLibrary () |
Returns the name of this devices library. More... | |
bool | Ocean::Devices::Android::registerAndroidLibrary () |
Registers this Android device library at the global device manager. More... | |
bool | Ocean::Devices::Android::unregisterAndroidLibrary () |
Unregisters this Android device library at the global device manager. More... | |
jboolean | Java_com_meta_ocean_devices_android_DevicesAndroidJni_registerLibrary (JNIEnv *env, jobject javaThis) |
Java native interface function to register the Devices::Android component. More... | |
jboolean | Java_com_meta_ocean_devices_android_DevicesAndroidJni_unregisterLibrary (JNIEnv *env, jobject javaThis) |
Java native interface function to unregister the Devices::Android component. More... | |
jboolean | Java_com_meta_ocean_devices_android_DevicesAndroidJni_newGPSLocation (JNIEnv *env, jobject javaThis, jdouble latitude, jdouble longitude, jfloat altitude, jfloat direction, jfloat speed, jfloat accuracy, jfloat altitudeAccuracy, jfloat directionAccuracy, jfloat speedAccuracy, jdouble timestamp) |
Java native interface function to send a new GPS location to the native side. More... | |
bool OCEAN_DEVICES_ANDROID_EXPORT | pluginLoad () |
Tries to load the plugin and initializes all internal 3rd party libraries. More... | |
bool OCEAN_DEVICES_ANDROID_EXPORT | pluginUnload () |
Tries to unload the plugin and all internal resources of 3rd party libraries. More... | |
The Ocean Devices Android Library provides device access for Android platforms.
The library is platform dependent.
jboolean Java_com_meta_ocean_devices_android_DevicesAndroidJni_newGPSLocation | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jdouble | latitude, | ||
jdouble | longitude, | ||
jfloat | altitude, | ||
jfloat | direction, | ||
jfloat | speed, | ||
jfloat | accuracy, | ||
jfloat | altitudeAccuracy, | ||
jfloat | directionAccuracy, | ||
jfloat | speedAccuracy, | ||
jdouble | timestamp | ||
) |
Java native interface function to send a new GPS location to the native side.
env | The JNI environment |
javaThis | The JNI object |
latitude | The position's latitude, in degree, always valid, with range [-90, 90] |
longitude | The position's longitude, in degree, must be valid, with range [-180, 180] |
altitude | The position's altitude, in meter, NumericF::minValue() if unknown |
direction | The travel direction of the device, relative to north, in degree, north is 0 degree, east is 90 degree, with range [0, 360], -1 if unknown |
speed | The device's speed, in meter per second, with range [0, infinity), -1 if unknown |
accuracy | The horizontal accuracy as radius, in meter, with range [0, infinity), -1 if unknown |
altitudeAccuracy | The vertical accuracy in meter, with range [0, infinity), -1 if unknown |
directionAccuracy | The direction accuracy, in degree, with range [0, 180], -1 if unknown |
speedAccuracy | The speed accuracy, in meter per second, with range [0, infinity), -1 if unknown |
timestamp | The unix timestamp of the GPS location |
jboolean Java_com_meta_ocean_devices_android_DevicesAndroidJni_registerLibrary | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function to register the Devices::Android component.
env | The JNI environment |
javaThis | The JNI object |
jboolean Java_com_meta_ocean_devices_android_DevicesAndroidJni_unregisterLibrary | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function to unregister the Devices::Android component.
env | The JNI environment |
javaThis | The JNI object |
OCEAN_DEVICES_ANDROID_EXPORT std::string Ocean::Devices::Android::nameAndroidLibrary | ( | ) |
Returns the name of this devices library.
bool OCEAN_RENDERING_GLES_EXPORT pluginLoad | ( | ) |
Tries to load the plugin and initializes all internal 3rd party libraries.
Make sure that the plugin will be loaded only once!
bool OCEAN_RENDERING_GLES_EXPORT pluginUnload | ( | ) |
Tries to unload the plugin and all internal resources of 3rd party libraries.
Make sure that all resources of this plugin has been released before!
bool Ocean::Devices::Android::registerAndroidLibrary | ( | ) |
Registers this Android device library at the global device manager.
This function calls AndroidFactory::registerFactory() only.
bool Ocean::Devices::Android::unregisterAndroidLibrary | ( | ) |
Unregisters this Android device library at the global device manager.
This function calls AndroidFactory::unregisterFactory() only.