Package ucar.unidata.idv.flythrough
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
- Author:
- IDV development team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringxml tag and attr namestatic final Stringxml tag and attr namestatic final Stringxml tag and attr namestatic final Stringxml tag and attr namestatic final Stringxml tag and attr namestatic final String[]xml tag and attr namestatic final Stringxml tag and attr nameprotected Point_more_static final String_more_static final String_more_static final String_more_static final String_more_static final String_more_static final String_more_static final Stringxml tag and attr namestatic final Stringxml tag and attr namestatic final Stringxml tag and attr nameFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPoint(boolean includeTime) _more__more__more_void_more_void_more_void_more_static org.jfree.chart.JFreeChartcreateChart(org.jfree.data.xy.XYDataset dataset) Creates a chart.voiddestroy()_more_voiddisplayChanged(DisplayEvent event) _more_void_more_voiddoDrive(boolean takeStep, double heading) _more_voiddoDrive(boolean takeStep, double heading, boolean forward) _more_voiddoExport()_more_booleandoGlobe()_more_voiddoImport()_more__more__more__more__more__more__more__more_void_more_voiddoUpdate()_more_void_more_void_more_void_more_void_more_void_more_void_more_voidflythrough(float[][] pts) _more_voidflythrough(List<FlythroughPoint> newPoints) tmpvoidflythrough(List<FlythroughPoint> newPoints, boolean andShow) _more_doublegetAlt(EarthLocation location) _more_booleanGet the Animate property._more_Get the AnimationInfo property.intGet the AnimationSpeed property._more_booleanGet the ChangeViewpoint property.intGet the CurrentIndex property._more__more_Get the Decorators property.booleanGet the GoToClick property.doubleGet the Heading property.getIdv()_more__more_doublegetLat(EarthLocation location) _more_Get the Location property.doublegetLon(EarthLocation location) _more__more_Get the Orientation property.Get the Points property._more_booleanGet the ShowAnimation property.booleanGet the ShowDecoration property.booleanGet the ShowLine property.booleanGet the ShowMarker property.booleangetShown()Get the Shown property.booleanGet the ShowReadout property.booleanGet the ShowTimes property.intGet the Stride property.double[]getTilt()Get the Tilt property.booleanGet the UseFixedZ property._more_Get the WindowBounds property.doublegetZoom()Get the Zoom property.protected voidgoTo(FlythroughPoint pt1, double[] xyz1, double[] xyz2, double[] actualPoint, boolean animateMove) _more_void_more_boolean_more_booleanimageUpdate(Image img, int flags, int x, int y, int width, int height) _more_voidinit(MapViewManager viewManager) _more_voidinitEditMenu(JMenu editMenu) _more_voidinitFileMenu(JMenu fileMenu) _more_voidinitViewMenu(JMenu viewMenu) _more_voidinitWith(Flythrough that) _more_booleanisActive()_more_voidlogException(String msg, Throwable exc) _more_voidpaintDashboardAfter(Graphics g, JComponent comp) _more_voidpaintDashboardBackground(Graphics g, JComponent comp) _more_protected void_more_void_more_voidsetAnimate(boolean value) Set the Animate property.voidsetAnimateSpeed(long value) Set the AnimateSpeed property.voidsetAnimationInfo(AnimationInfo value) Set the AnimationInfo property.voidsetAnimationSpeed(int value) Set the AnimationSpeed property.voidsetChangeViewpoint(boolean value) Set the ChangeViewpoint property.voidsetClip(boolean value) Set the Clip property.voidsetCurrentIndex(int value) Set the CurrentIndex property.voidsetDecorators(List<FlythroughDecorator> value) Set the Decorators property.voidsetFrameLocation(Point value) Set the FrameLocation property.voidsetGoToClick(boolean value) Set the GoToClick property.voidsetHeading(double value) Set the Heading property.voidsetLocation(EarthLocation value) Set the Location property.voidsetMaxPoints(int value) Set the MaxPoints property.voidsetOrientation(String value) Set the Orientation property.voidsetPoints(List<FlythroughPoint> value) Set the Points property.voidsetRelativeOrientation(boolean value) _more_void_more_voidsetShareGroup(Object shareGroup) _more_voidsetSharing(boolean sharing) _more_voidsetShowAnimation(boolean value) Set the ShowAnimation property.voidsetShowChart(boolean value) Set the ShowChart property.voidsetShowDecoration(boolean value) Set the ShowDecoration property.voidsetShowLine(boolean value) Set the ShowLine property.voidsetShowMarker(boolean value) Set the ShowMarker property.voidsetShown(boolean value) Set the Shown property.voidsetShowReadout(boolean value) Set the ShowReadout property.voidsetShowTimes(boolean value) Set the ShowTimes property.voidsetStride(int value) Set the Stride property.voidsetTilt(double[] value) Set the Tilt property.voidsetTiltX(double value) Set the Tilt property.voidsetTiltY(double value) Set the Tilt property.voidsetTiltZ(double value) Set the Tilt propertz.voidsetUseFixedZ(boolean value) Set the UseFixedZ property.voidsetViewManager(MapViewManager viewManager) _more_voidsetWindowBounds(Rectangle value) Set the WindowBounds property.voidsetZoom(double value) Set the Zoom property.voidshow()_more_void_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
-
Field Details
-
ORIENT_POINT
_more_- See Also:
-
ORIENT_FORWARD
_more_- See Also:
-
ORIENT_UP
_more_- See Also:
-
ORIENT_DOWN
_more_- See Also:
-
ORIENT_LEFT
_more_- See Also:
-
ORIENT_RIGHT
_more_- See Also:
-
TAG_FLYTHROUGH
xml tag and attr name- See Also:
-
TAG_DESCRIPTION
xml tag and attr name- See Also:
-
TAG_POINT
xml tag and attr name- See Also:
-
ATTR_DATE
xml tag and attr name- See Also:
-
ATTR_LAT
xml tag and attr name- See Also:
-
ATTR_LON
xml tag and attr name- See Also:
-
ATTR_ALT
xml tag and attr name- See Also:
-
ATTR_TILT
xml tag and attr name -
ATTR_ZOOM
xml tag and attr name- See Also:
-
ATTR_MATRIX
xml tag and attr name- See Also:
-
dashboardImageOffset
_more_
-
-
Constructor Details
-
Flythrough
public Flythrough()_more_ -
Flythrough
_more_- Parameters:
viewManager- _more_
-
-
Method Details
-
setViewManager
_more_- Parameters:
viewManager- _more_
-
init
_more_- Parameters:
viewManager- _more_
-
initWith
_more_- Parameters:
that- _more_
-
getViewManager
_more_- Returns:
- _more_
-
getIdv
_more_- Returns:
- _more_
-
destroy
_more_- Throws:
RemoteException- _more_VisADException- _more_
-
getAnimationWidget
_more_- Returns:
- _more_
-
getAnimation
_more_- Returns:
- _more_
-
flythrough
public void flythrough(float[][] pts) _more_- Parameters:
pts- _more_
-
flythrough
tmp- Parameters:
newPoints- _more_
-
flythrough
_more_- Parameters:
newPoints- _more_andShow- _more_
-
goToCurrent
public void goToCurrent()_more_ -
updateDashboard
public void updateDashboard()_more_ -
imageUpdate
_more_- Specified by:
imageUpdatein interfaceImageObserver- Parameters:
img- _more_flags- _more_x- _more_y- _more_width- _more_height- _more_- Returns:
- _more_
-
propertyChange
_more_- Specified by:
propertyChangein interfacePropertyChangeListener- Parameters:
evt- _more_
-
doMakeDescriptionPanel
_more_- Returns:
- _more_
-
doMakeMenuBar
_more_- Returns:
- _more_
-
doMakeViewpointPanel
_more_- Returns:
- _more_
- Throws:
RemoteException- _more_VisADException- _more_
-
setScaleOnMarkers
public void setScaleOnMarkers()_more_ -
doMakePointsPanel
_more_- Returns:
- _more_
-
doMakeValuesPanel
_more_- Returns:
- _more_
-
doMakeDashboardPanel
_more_- Returns:
- _more_
-
doRepaint
_more_- Parameters:
c- _more_
-
getLastLocation
_more_- Returns:
- _more_
-
paintDashboardAfter
_more_- Parameters:
g- _more_comp- _more_
-
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
_more_- Parameters:
g- _more_comp- _more_
-
displayChanged
_more_- Parameters:
event- _more_- Throws:
RemoteException- _more_VisADException- _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
_more_- Parameters:
location- _more_- Returns:
- _more_
- Throws:
VisADException- _more_
-
getLon
_more_- Parameters:
location- _more_- Returns:
- _more_
- Throws:
VisADException- _more_
-
getAlt
_more_- Parameters:
location- _more_- Returns:
- _more_
- Throws:
VisADException- _more_
-
clearPoints
public void clearPoints()_more_ -
initEditMenu
_more_- Parameters:
editMenu- _more_
-
initFileMenu
_more_- Parameters:
fileMenu- _more_
-
initViewMenu
_more_- Parameters:
viewMenu- _more_
-
clearSamples
public void clearSamples()_more_ -
setSharing
public void setSharing(boolean sharing) _more_- Overrides:
setSharingin classSharableImpl- Parameters:
sharing- _more_
-
doImport
public void doImport()_more_ -
addPointWithoutTime
_more_- Returns:
- _more_
-
flyAlongLatitude
_more_- Throws:
RemoteException- _more_VisADException- _more_
-
flyAlongLongitude
_more_- Throws:
RemoteException- _more_VisADException- _more_
-
addPointWithTime
_more_- Returns:
- _more_
-
addPoint
_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
_more_- Returns:
- _more_
-
logException
_more_- Parameters:
msg- _more_exc- _more_
-
displayControlChanged
public void displayControlChanged()_more_ -
doUpdate
public void doUpdate()_more_ -
animationTimeChanged
public void animationTimeChanged()_more_ -
processReadout
_more_- Parameters:
pt1- _more_- Throws:
Exception- _more_
-
getCurrentPoint
_more_- Returns:
- _more_
-
setPoints
Set the Points property.- Parameters:
value- The new value for Points
-
getPoints
Get the Points property.- Returns:
- The Points
-
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
Set the Orientation property.- Parameters:
value- The new value for Orientation
-
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
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
Set the Location property.- Parameters:
value- The new value for Location
-
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
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
Set the AnimationInfo property.- Parameters:
value- The new value for AnimationInfo
-
getAnimationInfo
Get the AnimationInfo property.- Returns:
- The AnimationInfo
-
setWindowBounds
Set the WindowBounds property.- Parameters:
value- The new value for WindowBounds
-
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
Set the Decorators property.- Parameters:
value- The new value for Decorators
-
getDecorators
Get the Decorators property.- Returns:
- The Decorators
-