本文整理匯總了Java中com.google.atap.tango.ux.TangoUx類的典型用法代碼示例。如果您正苦於以下問題:Java TangoUx類的具體用法?Java TangoUx怎麽用?Java TangoUx使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TangoUx類屬於com.google.atap.tango.ux包,在下文中一共展示了TangoUx類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCreate
import com.google.atap.tango.ux.TangoUx; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
tango = new Tango(this);
tangoUx = new TangoUx(this);
renderer = new SceneRenderer(this);
setContentView(R.layout.main_layout);
ButterKnife.bind(this);
setSupportActionBar(toolbar);
tangoUx.setLayout(uxLayout);
renderer.renderVirtualObjects(true);
mainSurfaceView.setSurfaceRenderer(renderer);
mainSurfaceView.setZOrderOnTop(false);
mapView.setFloorPlanData(renderer.getFloorPlanData());
}
示例2: connectTango
import com.google.atap.tango.ux.TangoUx; //導入依賴的package包/類
protected void connectTango() {
TangoUx.StartParams params = new TangoUx.StartParams();
tangoUx.start(params);
TangoConfig config = tango.getConfig(TangoConfig.CONFIG_TYPE_DEFAULT);
config.putBoolean(TangoConfig.KEY_BOOLEAN_LOWLATENCYIMUINTEGRATION, true);
config.putBoolean(TangoConfig.KEY_BOOLEAN_COLORCAMERA, true);
tango.connect(config);
ArrayList<TangoCoordinateFramePair> framePairs = new ArrayList<>();
framePairs.add(SOS_T_DEVICE_FRAME_PAIR);
framePairs.add(DEVICE_T_PREVIOUS_FRAME_PAIR);
tango.connectListener(framePairs, this);
setupCameraProperties(tango);
}
示例3: onCreate
import com.google.atap.tango.ux.TangoUx; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_jpoint_cloud);
setTitle(R.string.app_name);
mp = MediaPlayer.create(PointCloudActivity.this,R.raw.whitenoise);
mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
public void onPrepared(MediaPlayer player) {
mediaReady = true;
mp.setLooping(true); // This may not work???
mp.start();
mp.setVolume(0, 0);
}
});
banner = (TextView) findViewById(R.id.banner);
mBackground = (RelativeLayout) findViewById(R.id.container);
mTango = new Tango(this);
mConfig = new TangoConfig();
mConfig = mTango.getConfig(TangoConfig.CONFIG_TYPE_CURRENT);
mConfig.putBoolean(TangoConfig.KEY_BOOLEAN_DEPTH, true);
mTangoUx = new TangoUx.Builder(this).build();
mTangoUxLayout = (TangoUxLayout) findViewById(R.id.layout_tango);
mTangoUx = new TangoUx.Builder(this).setTangoUxLayout(mTangoUxLayout).build();
mTangoUx.setUxExceptionEventListener(mUxExceptionListener);
maxDepthPoints = mConfig.getInt("max_point_cloud_elements");
mIsTangoServiceConnected = false;
startUIThread();
}
示例4: setupTangoUxAndLayout
import com.google.atap.tango.ux.TangoUx; //導入依賴的package包/類
/**
* Sets up TangoUX layout and sets its listener.
*/
private TangoUx setupTangoUxAndLayout() {
TangoUxLayout uxLayout = (TangoUxLayout) findViewById(R.id.layout_tango);
TangoUx tangoUx = new TangoUx(this);
tangoUx.setLayout(uxLayout);
tangoUx.setUxExceptionEventListener(mUxExceptionListener);
return tangoUx;
}