src.gov.nasa.worldwind.render.OrderedRenderable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.render;
/**
* @author tag
* @version $Id: OrderedRenderable.java 1171 2013-02-11 21:45:02Z dcollins $
*/
public interface OrderedRenderable extends Renderable
{
/**
* Returns the ordered renderable's distance from the current view's eye point. Intended to be used only to sort a
* list of ordered renderables according to eye distance, and only during frame generation when a view is active.
*
* @return the distance of the ordered renderable from the current view's eye point.
*/
double getDistanceFromEye();
/**
* Executes a pick of the ordered renderable.
*
* @param dc the current draw context.
* @param pickPoint the pick point.
*/
public void pick(DrawContext dc, java.awt.Point pickPoint);
}