|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.pick.PickSupport
gov.nasa.worldwind.render.Path.PathPickSupport
protected static class Path.PathPickSupport
Subclass of PickSupport that adds the capability to resolve a Path's picked position point. Path position points
are registered with PathPickSupport by calling addPickablePositions(int, int, Path) with the minimum and
maximum color codes that the Path's position points are drawn in.
| Field Summary | |
|---|---|
protected Map<Object,PickedObject> |
pathPickedObjects
A map that associates each path with a picked object. |
protected List<Path.PickablePositions> |
pickablePositions
The list of Path pickable positions that this PathPickSupport is currently tracking. |
| Fields inherited from class gov.nasa.worldwind.pick.PickSupport |
|---|
minAndMaxColorCodes, pickableObjects |
| Constructor Summary | |
|---|---|
protected |
Path.PathPickSupport()
|
| Method Summary | |
|---|---|
void |
addPickablePositions(int minColorCode,
int maxColorCode,
Path path)
Registers a range of unique pick color codes with a Path, representing the range of pick colors that the Path's position points are drawn in. |
void |
clearPickList()
Overridden to clear the list of pickable positions. |
protected void |
doResolvePick(DrawContext dc,
Rectangle pickRect,
Layer layer)
Adds all picked paths that are registered with this PickSupport and intersect the specified rectangle in AWT screen coordinates (if any) to the draw context's list of picked objects. |
List<Path.PickablePositions> |
getPickablePositions()
Indicates the list of Path pickable positions that this PathPickSupport is currently tracking. |
PickedObject |
getTopObject(DrawContext dc,
Point pickPoint)
Computes and returns the top object at the specified pick point. |
| Methods inherited from class gov.nasa.worldwind.pick.PickSupport |
|---|
addPickableObject, addPickableObject, addPickableObject, addPickableObject, adjustExtremeColorCodes, areSelectionsTheSame, beginPicking, doResolvePick, endPicking, getPickableObjects, getTopColor, resolvePick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Object,PickedObject> pathPickedObjects
protected List<Path.PickablePositions> pickablePositions
| Constructor Detail |
|---|
protected Path.PathPickSupport()
| Method Detail |
|---|
public void addPickablePositions(int minColorCode,
int maxColorCode,
Path path)
minColorCode - the minimum color code, inclusive.maxColorCode - the maximum color code, inclusive.path - the Path who's position points are associated with the specified color code range.
IllegalArgumentException - if the path is null.public void clearPickList()
clearPickList in class PickSupport
protected void doResolvePick(DrawContext dc,
Rectangle pickRect,
Layer layer)
doResolvePick in class PickSupportdc - the draw context which receives the picked objects.pickRect - the rectangle in AWT screen coordinates.layer - the layer associated with the picked objects.public List<Path.PickablePositions> getPickablePositions()
public PickedObject getTopObject(DrawContext dc,
Point pickPoint)
getTopObject in class PickSupportdc - the current draw context.pickPoint - the screen-coordinate point in question.
IllegalArgumentException - if the draw context is null.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||