當前位置: 首頁>>代碼示例>>Java>>正文


Java TangoUx類代碼示例

本文整理匯總了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());
}
 
開發者ID:inovex,項目名稱:tango-ar-navigation-example,代碼行數:17,代碼來源:MainActivity.java

示例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);
}
 
開發者ID:inovex,項目名稱:tango-ar-navigation-example,代碼行數:14,代碼來源:MainActivity.java

示例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();
}
 
開發者ID:erlandsona,項目名稱:Bat-Vision,代碼行數:35,代碼來源:PointCloudActivity.java

示例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;
}
 
開發者ID:kupoko,項目名稱:Tiresias,代碼行數:11,代碼來源:PointCloudActivity.java


注:本文中的com.google.atap.tango.ux.TangoUx類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。