コード例 #1
0
ファイル: Dummy.java プロジェクト: ubdsgroup/wglobe
 protected Path createPath() {
   Path path = new Path();
   path.setFollowTerrain(true);
   path.setPathType(AVKey.GREAT_CIRCLE);
   path.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
   path.setDelegateOwner(this.getActiveDelegateOwner());
   return path;
 }
コード例 #2
0
ファイル: SearchArea.java プロジェクト: metsci/worldwind
 /**
  * Create and configure the Path used to render this graphic.
  *
  * @param positions Positions that define the path.
  * @return New path configured with defaults appropriate for this type of graphic.
  */
 protected Path createPath(List<Position> positions) {
   Path path = new Path(positions);
   path.setFollowTerrain(true);
   path.setPathType(AVKey.GREAT_CIRCLE);
   path.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
   path.setDelegateOwner(this.getActiveDelegateOwner());
   path.setAttributes(this.getActiveShapeAttributes());
   return path;
 }
コード例 #3
0
ファイル: SearchArea.java プロジェクト: metsci/worldwind
  /** {@inheritDoc} */
  protected void applyDelegateOwner(Object owner) {
    if (this.paths == null) return;

    for (Path path : this.paths) {
      path.setDelegateOwner(owner);
    }

    if (this.symbol != null) this.symbol.setDelegateOwner(owner);

    this.arrowHead1.setDelegateOwner(owner);
    this.arrowHead2.setDelegateOwner(owner);
  }