|
healpix.plot3d.demo
Class MapCanvas3D
java.lang.Object
java.awt.Component
java.awt.Canvas
javax.media.j3d.Canvas3D
healpix.plot3d.demo.MapCanvas3D
- All Implemented Interfaces:
- RotateAble, ImageObserver, MenuContainer, Serializable, Accessible
public class MapCanvas3D - extends Canvas3D
- implements RotateAble
Construct a canvas3D for plotting a sphere from a demo healpix map. Modified
version of MapCanvas from G.Giardino. That itself claims to be a "Rehash" of
Hipparcos Sky3d.
Richard Carr, 6th of May 2004. E. Joliet, 5th of March 2007, modified for
Gaia
- Version:
- $Id: MapCanvas3D.java,v 1.1.2.4 2010/02/22 14:55:50 healpix Exp $
- Author:
- ejoliet
- See Also:
- Serialized Form
Methods inherited from class javax.media.j3d.Canvas3D |
addNotify, getBounds, getBounds, getCenterEyeInImagePlate, getDoubleBufferAvailable, getDoubleBufferEnable, getGraphics2D, getGraphicsContext3D, getHeight, getImagePlateToVworld, getInverseVworldProjection, getLeftEyeInImagePlate, getLeftManualEyeInImagePlate, getLocation, getLocation, getLocationOnScreen, getMonoscopicViewPolicy, getOffScreenBuffer, getOffScreenLocation, getOffScreenLocation, getPhysicalHeight, getPhysicalWidth, getPixelLocationFromImagePlate, getPixelLocationInImagePlate, getPixelLocationInImagePlate, getRightEyeInImagePlate, getRightManualEyeInImagePlate, getSceneAntialiasingAvailable, getScreen3D, getSize, getSize, getStereoAvailable, getStereoEnable, getView, getVworldProjection, getVworldToImagePlate, getWidth, getX, getY, isOffScreen, isRendererRunning, paint, postRender, postSwap, preRender, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRendering |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
MAX_LONE_FACE_NSIDE
public static final int MAX_LONE_FACE_NSIDE
- If nside of map less than this use it. Otherwise use this.
- See Also:
- Constant Field Values
MapCanvas3D
public MapCanvas3D(GraphicsConfiguration gc)
- Just calls parent constructor.
- Parameters:
gc - the GraphicsConfiguration to be used for rendering.
getRotationInterpolator
public RotationInterpolator getRotationInterpolator()
- From Rotatable interface.
- Specified by:
getRotationInterpolator in interface RotateAble
- Returns:
- the RotationInterpolator used for the animation.
setupScene
public void setupScene()
- Dispose of any old scene and create a new one
showScene
public void showScene()
- Actually display the already created model
setNside
public void setNside(int nside)
- This sets the nside used for the display of the whole sphere.
- Parameters:
nside - the healpix pixel density parameter.
setMap
public void setMap(HealpixMap map)
- This sets a new map for display.
- Parameters:
map - the new map to display.
getMap
public HealpixMap getMap()
- This sets a new map for display.
- Returns:
- the map currently shown.
setAlpha
public void setAlpha(Alpha alpha)
- set up a timer object to drive animation.
- Parameters:
alpha - specifies the timing parameters.
setViewAxis
public void setViewAxis(boolean b)
- Specify whether to make axes visible.
- Parameters:
b - whether visible.
setViewEquator
public void setViewEquator(boolean b)
- Specify whether to make equator visible.
- Parameters:
b - whether visible.
setViewWholeSphere
public void setViewWholeSphere(boolean b)
- Specify whether to make a view of the whole sphere visible.
- Parameters:
b - whether visible.
setViewSpecificFace
public void setViewSpecificFace(boolean b)
- Specify whether to make the view of a single face visible.
- Parameters:
b - whether visible.
setFace
public void setFace(int f)
- Modify/specify which single face this canvas will display. Whether i is
actually shown is specified independently.
- Parameters:
f - the face's id.
setShowGrid
public void setShowGrid(boolean showGrid1)
- Set the grid whether it is present or not
- Parameters:
showGrid1 - the grid is added or not
|
|