Class Flythrough

java.lang.Object
ucar.unidata.collab.SharableImpl
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 Details

  • Constructor Details

    • Flythrough

      public Flythrough()
      _more_
    • Flythrough

      public Flythrough(MapViewManager viewManager)
      _more_
      Parameters:
      viewManager - _more_
  • Method Details

    • 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