gpt4 book ai didi

gov.nasa.worldwind.WorldWindow.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 02:15:05 29 4
gpt4 key购买 nike

本文整理了Java中gov.nasa.worldwind.WorldWindow.<init>()方法的一些代码示例,展示了WorldWindow.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorldWindow.<init>()方法的具体详情如下:
包路径:gov.nasa.worldwind.WorldWindow
类名称:WorldWindow
方法名:<init>

WorldWindow.<init>介绍

[英]Constructs a WorldWindow associated with the specified application context. This is the constructor to use when creating a WorldWindow from code.
[中]构造与指定应用程序上下文关联的WorldWindow。这是从代码创建WorldWindow时要使用的构造函数。

代码示例

代码示例来源:origin: NASAWorldWind/WorldWindAndroid

private WorldWindow createWorldWindow() {
  // Create the WorldWindow (a GLSurfaceView) which displays the globe.
  WorldWindow wwd = new WorldWindow(this);
  // Setup the WorldWindow's layers.
  wwd.getLayers().addLayer(new BackgroundLayer());
  wwd.getLayers().addLayer(new BlueMarbleLandsatLayer());
  wwd.getLayers().addLayer(new AtmosphereLayer());
  this.worldWindows.add(wwd);
  return wwd;
}

代码示例来源:origin: NASAWorldWind/WorldWindAndroid

/**
 * Creates a new WorldWindow (GLSurfaceView) object.
 */
public WorldWindow createWorldWindow() {
  // Create the WorldWindow (a GLSurfaceView) which displays the globe.
  this.wwd = new WorldWindow(getContext());
  // Setup the WorldWindow's layers.
  this.wwd.getLayers().addLayer(new BackgroundLayer());
  this.wwd.getLayers().addLayer(new BlueMarbleLandsatLayer());
  // Setup the WorldWindow's elevation coverages.
  this.wwd.getGlobe().getElevationModel().addCoverage(new BasicElevationCoverage());
  return this.wwd;
}

代码示例来源:origin: NASAWorldWind/WorldWindAndroid

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  // Establish the activity content
  setContentView(this.layoutResourceId);
  setAboutBoxTitle("About the " + this.getResources().getText(R.string.title_basic_globe));
  setAboutBoxText("Demonstrates how to construct a WorldWindow with a few layers.\n" +
    "The globe uses the default navigation gestures: \n" +
    " - one-finger pan moves the camera,\n" +
    " - two-finger pinch-zoom adjusts the range to the look at position, \n" +
    " - two-finger rotate arcs the camera horizontally around the look at position,\n" +
    " - three-finger tilt arcs the camera vertically around the look at position.");
  // Create the WorldWindow (a GLSurfaceView) which displays the globe.
  this.wwd = new WorldWindow(this);
  // Add the WorldWindow view object to the layout that was reserved for the globe.
  FrameLayout globeLayout = (FrameLayout) findViewById(R.id.globe);
  globeLayout.addView(this.wwd);
  // Setup the WorldWindow's layers.
  this.wwd.getLayers().addLayer(new BackgroundLayer());
  this.wwd.getLayers().addLayer(new BlueMarbleLandsatLayer());
  this.wwd.getLayers().addLayer(new AtmosphereLayer());
  // Setup the WorldWindow's elevation coverages.
  this.wwd.getGlobe().getElevationModel().addCoverage(new BasicElevationCoverage());
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com