本文整理汇总了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;
}