/** * Moves the sightline over the globe's surface. For an OmnidirectionalSightline, this simply calls {@link * OmnidirectionalSightline#setPosition(Position)}. * * @param globe not used. * @param position the new position of the sightline's reference position. */ @Override public void moveTo(Globe globe, Position position) { this.setPosition(position); }
/** * A position associated with the object that indicates its aggregate geographic position. For an * OmnidirectionalSightline, this is simply it's position property. * * @return {@link #getPosition()} */ @Override public Position getReferencePosition() { return this.getPosition(); }
this.sightline = new OmnidirectionalSightline(pos, 10000.0); this.sightline.setAttributes(viewableRegions); this.sightline.setOccludeAttributes(blockedRegions); this.sightline.setAltitudeMode(WorldWind.RELATIVE_TO_GROUND); this.sightlinePlacemark = new Placemark(pos); this.sightlinePlacemark.setAltitudeMode(WorldWind.RELATIVE_TO_GROUND);
OmnidirectionalSightline sightline = new OmnidirectionalSightline(position, range); sightline.setAttributes(visibleAttributes); sightline.setOccludeAttributes(occludedAttributes);
@Override protected void doRender(RenderContext rc) { // Compute this sightline's center point in Cartesian coordinates. if (!this.determineCenterPoint(rc)) { return; } // Don't render anything if the sightline's coverage area is not visible. if (!this.isVisible(rc)) { return; } // Select the currently active attributes. this.determineActiveAttributes(rc); // Configure the pick color when rendering in pick mode. if (rc.pickMode) { this.pickedObjectId = rc.nextPickedObjectId(); this.pickColor = PickedObject.identifierToUniqueColor(this.pickedObjectId, this.pickColor); } // Enqueue drawables for processing on the OpenGL thread. this.makeDrawable(rc); // Enqueue a picked object that associates the sightline's drawables with its picked object ID. if (rc.pickMode) { rc.offerPickedObject(PickedObject.fromRenderable(this.pickedObjectId, this, rc.currentLayer)); } }
sightline.setPosition(position);