public class SegmentPlaneEditor extends AbstractLayer
Modifier and Type | Field and Description |
---|---|
protected static int |
SEGMENT_BEGIN_INDEX |
protected static int |
SEGMENT_END_INDEX |
Constructor and Description |
---|
SegmentPlaneEditor() |
Modifier and Type | Method and Description |
---|---|
protected Position |
computeNewPositionFromPlaneGeometry(WorldWindow wwd) |
protected Position |
computeNewPositionFromPlaneIntersection(WorldWindow wwd,
Point mousePoint) |
protected Position |
computePositionOnOrAboveSurface(WorldWindow wwd,
Position position) |
protected void |
doMoveControlPoint(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected void |
doMoveHorizontalControlPoint(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected void |
doMoveLateralControlPoint(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected void |
doMoveSegmentPlane(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected void |
doMoveSegmentPoint(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected void |
doMoveVerticalControlPoint(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected void |
doPick(DrawContext dc,
Point pickPoint) |
protected void |
doRender(DrawContext dc) |
protected double |
getNextGridStep(double value,
double origin,
double gridSize) |
protected PickedObject |
getPickedSegmentPlaneObject(WorldWindow wwd,
Object pickedObjectId) |
SegmentPlane |
getSegmentPlane() |
SegmentPlaneRenderer |
getSegmentPlaneRenderer() |
boolean |
isArmed() |
boolean |
isSnapToGrid() |
void |
moveControlPoint(WorldWindow wwd,
PickedObject pickedObject,
Point mousePoint,
Point previousMousePoint) |
protected Position |
moveSegmentAltitudeWithPlane(Position position,
double[] minAndMaxElevation) |
protected void |
moveSegmentLocationWithPlane(LatLon[] newPlaneLocations,
int segmentPositionIndex) |
protected Position |
resizeSegmentPlaneToFitPosition(WorldWindow wwd,
Position position) |
void |
setArmed(boolean armed) |
void |
setSegmentPlane(SegmentPlane segmentPlane) |
void |
setSegmentPlaneRenderer(SegmentPlaneRenderer renderer) |
void |
setSnapToGrid(boolean snapToGrid) |
createLayerConfigElements, dispose, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
protected static final int SEGMENT_BEGIN_INDEX
protected static final int SEGMENT_END_INDEX
protected Position computeNewPositionFromPlaneGeometry(WorldWindow wwd)
protected Position computeNewPositionFromPlaneIntersection(WorldWindow wwd, Point mousePoint)
protected Position computePositionOnOrAboveSurface(WorldWindow wwd, Position position)
protected void doMoveControlPoint(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected void doMoveHorizontalControlPoint(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected void doMoveLateralControlPoint(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected void doMoveSegmentPlane(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected void doMoveSegmentPoint(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected void doMoveVerticalControlPoint(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected void doPick(DrawContext dc, Point pickPoint)
doPick
in class AbstractLayer
protected void doRender(DrawContext dc)
doRender
in class AbstractLayer
protected double getNextGridStep(double value, double origin, double gridSize)
protected PickedObject getPickedSegmentPlaneObject(WorldWindow wwd, Object pickedObjectId)
public SegmentPlane getSegmentPlane()
public SegmentPlaneRenderer getSegmentPlaneRenderer()
public boolean isArmed()
public boolean isSnapToGrid()
public void moveControlPoint(WorldWindow wwd, PickedObject pickedObject, Point mousePoint, Point previousMousePoint)
protected Position moveSegmentAltitudeWithPlane(Position position, double[] minAndMaxElevation)
protected void moveSegmentLocationWithPlane(LatLon[] newPlaneLocations, int segmentPositionIndex)
protected Position resizeSegmentPlaneToFitPosition(WorldWindow wwd, Position position)
public void setArmed(boolean armed)
public void setSegmentPlane(SegmentPlane segmentPlane)
public void setSegmentPlaneRenderer(SegmentPlaneRenderer renderer)
public void setSnapToGrid(boolean snapToGrid)