|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectActivity
org.openintents.samples.openglsensors.OpenGLSensors
public class OpenGLSensors
Displays a pyramid that always points up, or a compass needle that always points towards North. Directions are obtained from Android Sensors. If no real sensors are available, one can connect to the SensorSimulator. Accelerometer, compass, and orientation sensors are supported.
| Field Summary | |
|---|---|
boolean |
mUseAccelerometer
|
boolean |
mUseCompass
|
boolean |
mUseOrientation
|
| Constructor Summary | |
|---|---|
OpenGLSensors()
|
|
| Method Summary | |
|---|---|
void |
disableAllSensors()
Disable all sensors that we want to use. |
void |
enableAllSensors()
Enable all sensors that we want to use. |
void |
findSupportedSensors()
|
boolean |
onCreateOptionsMenu(Menu menu)
|
boolean |
onOptionsItemSelected(MenuItem item)
|
boolean |
onPrepareOptionsMenu(Menu menu)
|
void |
onSensorChanged(int sensor,
float[] values)
|
void |
updateUseBestAvailableSensors()
See if the currently selected sensor(s) is (are) still available. |
void |
useBestAvailableSensors()
Selects the best supported sensors currently available. |
void |
useSensorsReset()
Resets which sensors we want to use. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean mUseAccelerometer
public boolean mUseCompass
public boolean mUseOrientation
| Constructor Detail |
|---|
public OpenGLSensors()
| Method Detail |
|---|
public boolean onCreateOptionsMenu(Menu menu)
public boolean onPrepareOptionsMenu(Menu menu)
public boolean onOptionsItemSelected(MenuItem item)
public void findSupportedSensors()
public void disableAllSensors()
public void enableAllSensors()
public void useBestAvailableSensors()
public void updateUseBestAvailableSensors()
public void useSensorsReset()
public void onSensorChanged(int sensor,
float[] values)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||