ucar.unidata.idv.flythrough
Class Flythrough

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.idv.flythrough.Flythrough
All Implemented Interfaces:
ImageObserver, PropertyChangeListener, EventListener, Sharable
Direct Known Subclasses:
Flythrough

public class Flythrough
extends SharableImpl
implements PropertyChangeListener, ImageObserver

Author:
IDV development team

Field Summary
static String ATTR_ALT
          xml tag and attr name
static String ATTR_DATE
          xml tag and attr name
static String ATTR_LAT
          xml tag and attr name
static String ATTR_LON
          xml tag and attr name
static String ATTR_MATRIX
          xml tag and attr name
static String[] ATTR_TILT
          xml tag and attr name
static String ATTR_ZOOM
          xml tag and attr name
protected  Point dashboardImageOffset
          _more_
static String ORIENT_DOWN
          _more_
static String ORIENT_FORWARD
          _more_
static String ORIENT_LEFT
          _more_
static String ORIENT_POINT
          _more_
static String ORIENT_RIGHT
          _more_
static String ORIENT_UP
          _more_
static String TAG_DESCRIPTION
          xml tag and attr name
static String TAG_FLYTHROUGH
          xml tag and attr name
static String TAG_POINT
          xml tag and attr name
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Flythrough()
          _more_
Flythrough(MapViewManager viewManager)
          _more_
 
Method Summary
 FlythroughPoint addPoint(boolean includeTime)
          _more_
 FlythroughPoint addPointWithoutTime()
          _more_
 FlythroughPoint addPointWithTime()
          _more_
 void animationTimeChanged()
          _more_
 void clearPoints()
          _more_
 void clearSamples()
          _more_
static org.jfree.chart.JFreeChart createChart(org.jfree.data.xy.XYDataset dataset)
          Creates a chart.
 void destroy()
          _more_
 void displayChanged(DisplayEvent event)
          _more_
 void displayControlChanged()
          _more_
 void doDrive(boolean takeStep, double heading)
          _more_
 void doDrive(boolean takeStep, double heading, boolean forward)
          _more_
 void doExport()
          _more_
 boolean doGlobe()
          _more_
 void doImport()
          _more_
 JComponent doMakeDashboardPanel()
          _more_
 JComponent doMakeDescriptionPanel()
          _more_
 JMenuBar doMakeMenuBar()
          _more_
 JComponent doMakeNavigationPanel()
          _more_
 JComponent doMakePointsPanel()
          _more_
 JComponent doMakeValuesPanel()
          _more_
 JComponent doMakeViewpointPanel()
          _more_
 void doRepaint(JComponent c)
          _more_
 void doUpdate()
          _more_
 void driveBack()
          _more_
 void driveForward()
          _more_
 void driveLeft()
          _more_
 void driveRight()
          _more_
 void flyAlongLatitude()
          _more_
 void flyAlongLongitude()
          _more_
 void flythrough(float[][] pts)
          _more_
 void flythrough(List<FlythroughPoint> newPoints)
          tmp
 void flythrough(List<FlythroughPoint> newPoints, boolean andShow)
          _more_
 double getAlt(EarthLocation location)
          _more_
 boolean getAnimate()
          Get the Animate property.
 Animation getAnimation()
          _more_
 AnimationInfo getAnimationInfo()
          Get the AnimationInfo property.
 int getAnimationSpeed()
          Get the AnimationSpeed property.
 AnimationWidget getAnimationWidget()
          _more_
 boolean getChangeViewpoint()
          Get the ChangeViewpoint property.
 int getCurrentIndex()
          Get the CurrentIndex property.
 FlythroughPoint getCurrentPoint()
          _more_
 Image getDashboardImage()
          _more_
 List<FlythroughDecorator> getDecorators()
          Get the Decorators property.
 boolean getGoToClick()
          Get the GoToClick property.
 double getHeading()
          Get the Heading property.
 IntegratedDataViewer getIdv()
          _more_
 EarthLocation getLastLocation()
          _more_
 double getLat(EarthLocation location)
          _more_
 EarthLocation getLocation()
          Get the Location property.
 double getLon(EarthLocation location)
          _more_
 VisADGeometryArray getMarker()
          _more_
 String getOrientation()
          Get the Orientation property.
 List<FlythroughPoint> getPoints()
          Get the Points property.
 List<FlythroughPoint> getPointsToUse()
          _more_
 boolean getShowAnimation()
          Get the ShowAnimation property.
 boolean getShowDecoration()
          Get the ShowDecoration property.
 boolean getShowLine()
          Get the ShowLine property.
 boolean getShowMarker()
          Get the ShowMarker property.
 boolean getShown()
          Get the Shown property.
 boolean getShowReadout()
          Get the ShowReadout property.
 boolean getShowTimes()
          Get the ShowTimes property.
 int getStride()
          Get the Stride property.
 double[] getTilt()
          Get the Tilt property.
 boolean getUseFixedZ()
          Get the UseFixedZ property.
 MapViewManager getViewManager()
          _more_
 Rectangle getWindowBounds()
          Get the WindowBounds property.
 double getZoom()
          Get the Zoom property.
protected  void goTo(FlythroughPoint pt1, double[] xyz1, double[] xyz2, double[] actualPoint, boolean animateMove)
          _more_
 void goToCurrent()
          _more_
 boolean hasPoints()
          _more_
 boolean imageUpdate(Image img, int flags, int x, int y, int width, int height)
          _more_
 void init(MapViewManager viewManager)
          _more_
 void initEditMenu(JMenu editMenu)
          _more_
 void initFileMenu(JMenu fileMenu)
          _more_
 void initViewMenu(JMenu viewMenu)
          _more_
 void initWith(Flythrough that)
          _more_
 boolean isActive()
          _more_
 void logException(String msg, Throwable exc)
          _more_
 void paintDashboardAfter(Graphics g, JComponent comp)
          _more_
 void paintDashboardBackground(Graphics g, JComponent comp)
          _more_
protected  void processReadout(FlythroughPoint pt1)
          _more_
 void propertyChange(PropertyChangeEvent evt)
          _more_
 void setAnimate(boolean value)
          Set the Animate property.
 void setAnimateSpeed(long value)
          Set the AnimateSpeed property.
 void setAnimationInfo(AnimationInfo value)
          Set the AnimationInfo property.
 void setAnimationSpeed(int value)
          Set the AnimationSpeed property.
 void setChangeViewpoint(boolean value)
          Set the ChangeViewpoint property.
 void setClip(boolean value)
          Set the Clip property.
 void setCurrentIndex(int value)
          Set the CurrentIndex property.
 void setDecorators(List<FlythroughDecorator> value)
          Set the Decorators property.
 void setFrameLocation(Point value)
          Set the FrameLocation property.
 void setGoToClick(boolean value)
          Set the GoToClick property.
 void setHeading(double value)
          Set the Heading property.
 void setLocation(EarthLocation value)
          Set the Location property.
 void setMaxPoints(int value)
          Set the MaxPoints property.
 void setOrientation(String value)
          Set the Orientation property.
 void setPoints(List<FlythroughPoint> value)
          Set the Points property.
 void setRelativeOrientation(boolean value)
          _more_
 void setScaleOnMarkers()
          _more_
 void setShareGroup(Object shareGroup)
          _more_
 void setSharing(boolean sharing)
          _more_
 void setShowAnimation(boolean value)
          Set the ShowAnimation property.
 void setShowChart(boolean value)
          Set the ShowChart property.
 void setShowDecoration(boolean value)
          Set the ShowDecoration property.
 void setShowLine(boolean value)
          Set the ShowLine property.
 void setShowMarker(boolean value)
          Set the ShowMarker property.
 void setShown(boolean value)
          Set the Shown property.
 void setShowReadout(boolean value)
          Set the ShowReadout property.
 void setShowTimes(boolean value)
          Set the ShowTimes property.
 void setStride(int value)
          Set the Stride property.
 void setTilt(double[] value)
          Set the Tilt property.
 void setTiltX(double value)
          Set the Tilt property.
 void setTiltY(double value)
          Set the Tilt property.
 void setTiltZ(double value)
          Set the Tilt propertz.
 void setUseFixedZ(boolean value)
          Set the UseFixedZ property.
 void setViewManager(MapViewManager viewManager)
          _more_
 void setWindowBounds(Rectangle value)
          Set the WindowBounds property.
 void setZoom(double value)
          Set the Zoom property.
 void show()
          _more_
 void updateDashboard()
          _more_
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIENT_POINT

public static final String ORIENT_POINT
_more_

See Also:
Constant Field Values

ORIENT_FORWARD

public static final String ORIENT_FORWARD
_more_

See Also:
Constant Field Values

ORIENT_UP

public static final String ORIENT_UP
_more_

See Also:
Constant Field Values

ORIENT_DOWN

public static final String ORIENT_DOWN
_more_

See Also:
Constant Field Values

ORIENT_LEFT

public static final String ORIENT_LEFT
_more_

See Also:
Constant Field Values

ORIENT_RIGHT

public static final String ORIENT_RIGHT
_more_

See Also:
Constant Field Values

TAG_FLYTHROUGH

public static final String TAG_FLYTHROUGH
xml tag and attr name

See Also:
Constant Field Values

TAG_DESCRIPTION

public static final String TAG_DESCRIPTION
xml tag and attr name

See Also:
Constant Field Values

TAG_POINT

public static final String TAG_POINT
xml tag and attr name

See Also:
Constant Field Values

ATTR_DATE

public static final String ATTR_DATE
xml tag and attr name

See Also:
Constant Field Values

ATTR_LAT

public static final String ATTR_LAT
xml tag and attr name

See Also:
Constant Field Values

ATTR_LON

public static final String ATTR_LON
xml tag and attr name

See Also:
Constant Field Values

ATTR_ALT

public static final String ATTR_ALT
xml tag and attr name

See Also:
Constant Field Values

ATTR_TILT

public static final String[] ATTR_TILT
xml tag and attr name


ATTR_ZOOM

public static final String ATTR_ZOOM
xml tag and attr name

See Also:
Constant Field Values

ATTR_MATRIX

public static final String ATTR_MATRIX
xml tag and attr name

See Also:
Constant Field Values

dashboardImageOffset

protected Point dashboardImageOffset
_more_

Constructor Detail

Flythrough

public Flythrough()
_more_


Flythrough

public Flythrough(MapViewManager viewManager)
_more_

Parameters:
viewManager - _more_
Method Detail

setViewManager

public void setViewManager(MapViewManager viewManager)
_more_

Parameters:
viewManager - _more_

init

public void init(MapViewManager viewManager)
_more_

Parameters:
viewManager - _more_

initWith

public void initWith(Flythrough that)
_more_

Parameters:
that - _more_

getViewManager

public MapViewManager getViewManager()
_more_

Returns:
_more_

getIdv

public IntegratedDataViewer getIdv()
_more_

Returns:
_more_

destroy

public void destroy()
             throws VisADException,
                    RemoteException
_more_

Throws:
RemoteException - _more_
VisADException - _more_

getAnimationWidget

public AnimationWidget getAnimationWidget()
_more_

Returns:
_more_

getAnimation

public Animation getAnimation()
_more_

Returns:
_more_

flythrough

public void flythrough(float[][] pts)
_more_

Parameters:
pts - _more_

flythrough

public void flythrough(List<FlythroughPoint> newPoints)
tmp

Parameters:
newPoints - _more_

flythrough

public void flythrough(List<FlythroughPoint> newPoints,
                       boolean andShow)
_more_

Parameters:
newPoints - _more_
andShow - _more_

goToCurrent

public void goToCurrent()
_more_


updateDashboard

public void updateDashboard()
_more_


imageUpdate

public boolean imageUpdate(Image img,
                           int flags,
                           int x,
                           int y,
                           int width,
                           int height)
_more_

Specified by:
imageUpdate in interface ImageObserver
Parameters:
img - _more_
flags - _more_
x - _more_
y - _more_
width - _more_
height - _more_
Returns:
_more_

propertyChange

public void propertyChange(PropertyChangeEvent evt)
_more_

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - _more_

doMakeDescriptionPanel

public JComponent doMakeDescriptionPanel()
_more_

Returns:
_more_

doMakeMenuBar

public JMenuBar doMakeMenuBar()
_more_

Returns:
_more_

doMakeViewpointPanel

public JComponent doMakeViewpointPanel()
                                throws VisADException,
                                       RemoteException
_more_

Returns:
_more_
Throws:
RemoteException - _more_
VisADException - _more_

setScaleOnMarkers

public void setScaleOnMarkers()
_more_


doMakePointsPanel

public JComponent doMakePointsPanel()
_more_

Returns:
_more_

doMakeValuesPanel

public JComponent doMakeValuesPanel()
_more_

Returns:
_more_

doMakeDashboardPanel

public JComponent doMakeDashboardPanel()
_more_

Returns:
_more_

doRepaint

public void doRepaint(JComponent c)
_more_

Parameters:
c - _more_

getLastLocation

public EarthLocation getLastLocation()
_more_

Returns:
_more_

paintDashboardAfter

public void paintDashboardAfter(Graphics g,
                                JComponent comp)
_more_

Parameters:
g - _more_
comp - _more_

getDashboardImage

public Image getDashboardImage()
_more_

Returns:
_more_

createChart

public static org.jfree.chart.JFreeChart createChart(org.jfree.data.xy.XYDataset dataset)
Creates a chart.

Parameters:
dataset - the data for the chart.
Returns:
a chart.

paintDashboardBackground

public void paintDashboardBackground(Graphics g,
                                     JComponent comp)
_more_

Parameters:
g - _more_
comp - _more_

displayChanged

public void displayChanged(DisplayEvent event)
                    throws VisADException,
                           RemoteException
_more_

Parameters:
event - _more_
Throws:
RemoteException - _more_
VisADException - _more_

doMakeNavigationPanel

public JComponent doMakeNavigationPanel()
_more_

Returns:
_more_

driveLeft

public void driveLeft()
_more_


driveRight

public void driveRight()
_more_


driveForward

public void driveForward()
_more_


driveBack

public void driveBack()
_more_


doDrive

public void doDrive(boolean takeStep,
                    double heading)
_more_

Parameters:
takeStep - _more_
heading - _more_

doDrive

public void doDrive(boolean takeStep,
                    double heading,
                    boolean forward)
_more_

Parameters:
takeStep - _more_
heading - _more_
forward - _more_

getLat

public double getLat(EarthLocation location)
              throws VisADException
_more_

Parameters:
location - _more_
Returns:
_more_
Throws:
VisADException - _more_

getLon

public double getLon(EarthLocation location)
              throws VisADException
_more_

Parameters:
location - _more_
Returns:
_more_
Throws:
VisADException - _more_

getAlt

public double getAlt(EarthLocation location)
              throws VisADException
_more_

Parameters:
location - _more_
Returns:
_more_
Throws:
VisADException - _more_

clearPoints

public void clearPoints()
_more_


initEditMenu

public void initEditMenu(JMenu editMenu)
_more_

Parameters:
editMenu - _more_

initFileMenu

public void initFileMenu(JMenu fileMenu)
_more_

Parameters:
fileMenu - _more_

initViewMenu

public void initViewMenu(JMenu viewMenu)
_more_

Parameters:
viewMenu - _more_

clearSamples

public void clearSamples()
_more_


setSharing

public void setSharing(boolean sharing)
_more_

Overrides:
setSharing in class SharableImpl
Parameters:
sharing - _more_

setShareGroup

public void setShareGroup(Object shareGroup)
_more_

Overrides:
setShareGroup in class SharableImpl
Parameters:
shareGroup - _more_

doImport

public void doImport()
_more_


addPointWithoutTime

public FlythroughPoint addPointWithoutTime()
_more_

Returns:
_more_

flyAlongLatitude

public void flyAlongLatitude()
                      throws VisADException,
                             RemoteException
_more_

Throws:
RemoteException - _more_
VisADException - _more_

flyAlongLongitude

public void flyAlongLongitude()
                       throws VisADException,
                              RemoteException
_more_

Throws:
RemoteException - _more_
VisADException - _more_

addPointWithTime

public FlythroughPoint addPointWithTime()
_more_

Returns:
_more_

addPoint

public FlythroughPoint addPoint(boolean includeTime)
_more_

Parameters:
includeTime - _more_
Returns:
_more_

doExport

public void doExport()
_more_


show

public void show()
_more_


isActive

public boolean isActive()
_more_

Returns:
_more_

goTo

protected void goTo(FlythroughPoint pt1,
                    double[] xyz1,
                    double[] xyz2,
                    double[] actualPoint,
                    boolean animateMove)
_more_

Parameters:
pt1 - _more_
xyz1 - _more_
xyz2 - _more_
actualPoint - _more_
animateMove - _more_

doGlobe

public boolean doGlobe()
_more_

Returns:
_more_

getMarker

public VisADGeometryArray getMarker()
_more_

Returns:
_more_

logException

public void logException(String msg,
                         Throwable exc)
_more_

Parameters:
msg - _more_
exc - _more_

displayControlChanged

public void displayControlChanged()
_more_


doUpdate

public void doUpdate()
_more_


animationTimeChanged

public void animationTimeChanged()
_more_


processReadout

protected void processReadout(FlythroughPoint pt1)
                       throws Exception
_more_

Parameters:
pt1 - _more_
Throws:
Exception - _more_

getCurrentPoint

public FlythroughPoint getCurrentPoint()
_more_

Returns:
_more_

setPoints

public void setPoints(List<FlythroughPoint> value)
Set the Points property.

Parameters:
value - The new value for Points

getPoints

public List<FlythroughPoint> getPoints()
Get the Points property.

Returns:
The Points

getPointsToUse

public List<FlythroughPoint> getPointsToUse()
_more_

Returns:
_more_

hasPoints

public boolean hasPoints()
_more_

Returns:
_more_

setTiltX

public void setTiltX(double value)
Set the Tilt property.

Parameters:
value - The new value for Tilt

setTiltY

public void setTiltY(double value)
Set the Tilt property.

Parameters:
value - The new value for Tilt

setTiltZ

public void setTiltZ(double value)
Set the Tilt propertz.

Parameters:
value - The new value for Tilt

setTilt

public void setTilt(double[] value)
Set the Tilt property.

Parameters:
value - The new value for Tilt

getTilt

public double[] getTilt()
Get the Tilt property.

Returns:
The Tilt

setZoom

public void setZoom(double value)
Set the Zoom property.

Parameters:
value - The new value for Zoom

getZoom

public double getZoom()
Get the Zoom property.

Returns:
The Zoom

setChangeViewpoint

public void setChangeViewpoint(boolean value)
Set the ChangeViewpoint property.

Parameters:
value - The new value for ChangeViewpoint

getChangeViewpoint

public boolean getChangeViewpoint()
Get the ChangeViewpoint property.

Returns:
The ChangeViewpoint

setShowReadout

public void setShowReadout(boolean value)
Set the ShowReadout property.

Parameters:
value - The new value for ShowReadout

getShowReadout

public boolean getShowReadout()
Get the ShowReadout property.

Returns:
The ShowReadout

setShowTimes

public void setShowTimes(boolean value)
Set the ShowTimes property.

Parameters:
value - The new value for ShowTimes

getShowTimes

public boolean getShowTimes()
Get the ShowTimes property.

Returns:
The ShowTimes

setShowLine

public void setShowLine(boolean value)
Set the ShowLine property.

Parameters:
value - The new value for ShowLine

getShowLine

public boolean getShowLine()
Get the ShowLine property.

Returns:
The ShowLine

setShowMarker

public void setShowMarker(boolean value)
Set the ShowMarker property.

Parameters:
value - The new value for ShowMarker

getShowMarker

public boolean getShowMarker()
Get the ShowMarker property.

Returns:
The ShowMarker

setAnimate

public void setAnimate(boolean value)
Set the Animate property.

Parameters:
value - The new value for Animate

getAnimate

public boolean getAnimate()
Get the Animate property.

Returns:
The Animate

setRelativeOrientation

public void setRelativeOrientation(boolean value)
_more_

Parameters:
value - _more_

setOrientation

public void setOrientation(String value)
Set the Orientation property.

Parameters:
value - The new value for Orientation

getOrientation

public String getOrientation()
Get the Orientation property.

Returns:
The Orientation

setShown

public void setShown(boolean value)
Set the Shown property.

Parameters:
value - The new value for Shown

getShown

public boolean getShown()
Get the Shown property.

Returns:
The Shown

setClip

public void setClip(boolean value)
             throws Exception
Set the Clip property.

Parameters:
value - The new value for Clip
Throws:
Exception - _more_

setUseFixedZ

public void setUseFixedZ(boolean value)
Set the UseFixedZ property.

Parameters:
value - The new value for UseFixedZ

getUseFixedZ

public boolean getUseFixedZ()
Get the UseFixedZ property.

Returns:
The UseFixedZ

setCurrentIndex

public void setCurrentIndex(int value)
Set the CurrentIndex property.

Parameters:
value - The new value for CurrentIndex

getCurrentIndex

public int getCurrentIndex()
Get the CurrentIndex property.

Returns:
The CurrentIndex

setAnimateSpeed

public void setAnimateSpeed(long value)
Set the AnimateSpeed property.

Parameters:
value - The new value for AnimateSpeed

setAnimationSpeed

public void setAnimationSpeed(int value)
Set the AnimationSpeed property.

Parameters:
value - The new value for AnimationSpeed

getAnimationSpeed

public int getAnimationSpeed()
Get the AnimationSpeed property.

Returns:
The AnimationSpeed

setLocation

public void setLocation(EarthLocation value)
Set the Location property.

Parameters:
value - The new value for Location

getLocation

public EarthLocation getLocation()
Get the Location property.

Returns:
The Location

setHeading

public void setHeading(double value)
Set the Heading property.

Parameters:
value - The new value for Heading

getHeading

public double getHeading()
Get the Heading property.

Returns:
The Heading

setFrameLocation

public void setFrameLocation(Point value)
Set the FrameLocation property.

Parameters:
value - The new value for FrameLocation

setGoToClick

public void setGoToClick(boolean value)
Set the GoToClick property.

Parameters:
value - The new value for GoToClick

getGoToClick

public boolean getGoToClick()
Get the GoToClick property.

Returns:
The GoToClick

setShowChart

public void setShowChart(boolean value)
Set the ShowChart property.

Parameters:
value - The new value for ShowChart

setShowDecoration

public void setShowDecoration(boolean value)
Set the ShowDecoration property.

Parameters:
value - The new value for ShowDecoration

getShowDecoration

public boolean getShowDecoration()
Get the ShowDecoration property.

Returns:
The ShowDecoration

setShowAnimation

public void setShowAnimation(boolean value)
Set the ShowAnimation property.

Parameters:
value - The new value for ShowAnimation

getShowAnimation

public boolean getShowAnimation()
Get the ShowAnimation property.

Returns:
The ShowAnimation

setAnimationInfo

public void setAnimationInfo(AnimationInfo value)
Set the AnimationInfo property.

Parameters:
value - The new value for AnimationInfo

getAnimationInfo

public AnimationInfo getAnimationInfo()
Get the AnimationInfo property.

Returns:
The AnimationInfo

setWindowBounds

public void setWindowBounds(Rectangle value)
Set the WindowBounds property.

Parameters:
value - The new value for WindowBounds

getWindowBounds

public Rectangle getWindowBounds()
Get the WindowBounds property.

Returns:
The WindowBounds

setMaxPoints

public void setMaxPoints(int value)
Set the MaxPoints property.

Parameters:
value - The new value for MaxPoints

setStride

public void setStride(int value)
Set the Stride property.

Parameters:
value - The new value for Stride

getStride

public int getStride()
Get the Stride property.

Returns:
The Stride

setDecorators

public void setDecorators(List<FlythroughDecorator> value)
Set the Decorators property.

Parameters:
value - The new value for Decorators

getDecorators

public List<FlythroughDecorator> getDecorators()
Get the Decorators property.

Returns:
The Decorators