Class SurfaceImageEditor
- java.lang.Object
-
- gov.nasa.worldwindx.examples.util.SurfaceImageEditor
-
- All Implemented Interfaces:
SelectListener,java.util.EventListener
public class SurfaceImageEditor extends java.lang.Object implements SelectListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSurfaceImageEditor.ControlPointMarker
-
Field Summary
Fields Modifier and Type Field Description protected booleanactiveprotected intactiveOperationprotected booleanarmedprotected MarkerLayercontrolPointLayerprotected static intMOVINGprotected static intNONEprotected PositionpreviousPositionprotected SurfaceImageshapeprotected static intSIZINGprotected WorldWindowwwd
-
Constructor Summary
Constructors Constructor Description SurfaceImageEditor(WorldWindow wwd, SurfaceImage shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecomputeSurfaceElevation(WorldWindow wwd, LatLon latLon)protected voiddisable()protected voiddragWholeShape(DragSelectEvent dragEvent, java.lang.Object topObject)protected voidenable()SurfaceImagegetSurfaceImage()WorldWindowgetWwd()booleanisArmed()protected voidresizeShape(java.lang.Object topObject)voidselected(SelectEvent event)voidsetArmed(boolean armed)protected voidupdateAffordances()
-
-
-
Field Detail
-
NONE
protected static final int NONE
- See Also:
- Constant Field Values
-
MOVING
protected static final int MOVING
- See Also:
- Constant Field Values
-
SIZING
protected static final int SIZING
- See Also:
- Constant Field Values
-
wwd
protected final WorldWindow wwd
-
shape
protected SurfaceImage shape
-
controlPointLayer
protected MarkerLayer controlPointLayer
-
armed
protected boolean armed
-
active
protected boolean active
-
activeOperation
protected int activeOperation
-
previousPosition
protected Position previousPosition
-
-
Constructor Detail
-
SurfaceImageEditor
public SurfaceImageEditor(WorldWindow wwd, SurfaceImage shape)
-
-
Method Detail
-
getWwd
public WorldWindow getWwd()
-
getSurfaceImage
public SurfaceImage getSurfaceImage()
-
isArmed
public boolean isArmed()
-
setArmed
public void setArmed(boolean armed)
-
enable
protected void enable()
-
disable
protected void disable()
-
selected
public void selected(SelectEvent event)
- Specified by:
selectedin interfaceSelectListener
-
dragWholeShape
protected void dragWholeShape(DragSelectEvent dragEvent, java.lang.Object topObject)
-
resizeShape
protected void resizeShape(java.lang.Object topObject)
-
updateAffordances
protected void updateAffordances()
-
computeSurfaceElevation
protected double computeSurfaceElevation(WorldWindow wwd, LatLon latLon)
-
-