NASA World Wind

gov.nasa.worldwind.render
Class SegmentPlaneEditor

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.layers.AbstractLayer
              extended by gov.nasa.worldwind.render.SegmentPlaneEditor
All Implemented Interfaces:
AVList, Disposable, Layer, Restorable, WWObject, PropertyChangeListener, EventListener

public class SegmentPlaneEditor
extends AbstractLayer


Field Summary
protected static int SEGMENT_BEGIN_INDEX
           
protected static int SEGMENT_END_INDEX
           
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SegmentPlaneEditor()
           
 
Method Summary
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)
           
 
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
dispose, doPreRender, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getRestorableState, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, toString
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

SEGMENT_BEGIN_INDEX

protected static final int SEGMENT_BEGIN_INDEX
See Also:
Constant Field Values

SEGMENT_END_INDEX

protected static final int SEGMENT_END_INDEX
See Also:
Constant Field Values
Constructor Detail

SegmentPlaneEditor

public SegmentPlaneEditor()
Method Detail

computeNewPositionFromPlaneGeometry

protected Position computeNewPositionFromPlaneGeometry(WorldWindow wwd)

computeNewPositionFromPlaneIntersection

protected Position computeNewPositionFromPlaneIntersection(WorldWindow wwd,
                                                           Point mousePoint)

computePositionOnOrAboveSurface

protected Position computePositionOnOrAboveSurface(WorldWindow wwd,
                                                   Position position)

doMoveControlPoint

protected void doMoveControlPoint(WorldWindow wwd,
                                  PickedObject pickedObject,
                                  Point mousePoint,
                                  Point previousMousePoint)

doMoveHorizontalControlPoint

protected void doMoveHorizontalControlPoint(WorldWindow wwd,
                                            PickedObject pickedObject,
                                            Point mousePoint,
                                            Point previousMousePoint)

doMoveLateralControlPoint

protected void doMoveLateralControlPoint(WorldWindow wwd,
                                         PickedObject pickedObject,
                                         Point mousePoint,
                                         Point previousMousePoint)

doMoveSegmentPlane

protected void doMoveSegmentPlane(WorldWindow wwd,
                                  PickedObject pickedObject,
                                  Point mousePoint,
                                  Point previousMousePoint)

doMoveSegmentPoint

protected void doMoveSegmentPoint(WorldWindow wwd,
                                  PickedObject pickedObject,
                                  Point mousePoint,
                                  Point previousMousePoint)

doMoveVerticalControlPoint

protected void doMoveVerticalControlPoint(WorldWindow wwd,
                                          PickedObject pickedObject,
                                          Point mousePoint,
                                          Point previousMousePoint)

doPick

protected void doPick(DrawContext dc,
                      Point pickPoint)
Overrides:
doPick in class AbstractLayer

doRender

protected void doRender(DrawContext dc)
Specified by:
doRender in class AbstractLayer

getNextGridStep

protected double getNextGridStep(double value,
                                 double origin,
                                 double gridSize)

getPickedSegmentPlaneObject

protected PickedObject getPickedSegmentPlaneObject(WorldWindow wwd,
                                                   Object pickedObjectId)

getSegmentPlane

public SegmentPlane getSegmentPlane()

getSegmentPlaneRenderer

public SegmentPlaneRenderer getSegmentPlaneRenderer()

isArmed

public boolean isArmed()

isSnapToGrid

public boolean isSnapToGrid()

moveControlPoint

public void moveControlPoint(WorldWindow wwd,
                             PickedObject pickedObject,
                             Point mousePoint,
                             Point previousMousePoint)

moveSegmentAltitudeWithPlane

protected Position moveSegmentAltitudeWithPlane(Position position,
                                                double[] minAndMaxElevation)

moveSegmentLocationWithPlane

protected void moveSegmentLocationWithPlane(LatLon[] newPlaneLocations,
                                            int segmentPositionIndex)

resizeSegmentPlaneToFitPosition

protected Position resizeSegmentPlaneToFitPosition(WorldWindow wwd,
                                                   Position position)

setArmed

public void setArmed(boolean armed)

setSegmentPlane

public void setSegmentPlane(SegmentPlane segmentPlane)

setSegmentPlaneRenderer

public void setSegmentPlaneRenderer(SegmentPlaneRenderer renderer)

setSnapToGrid

public void setSnapToGrid(boolean snapToGrid)

NASA World Wind