|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
javax.media.j3d.Canvas3D
healpix.plot3d.demo.MapCanvas3D
public class MapCanvas3D
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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static int |
MAX_LONE_FACE_NSIDE
If nside of map less than this use it. |
| Fields inherited from class javax.media.j3d.Canvas3D |
|---|
FIELD_ALL, FIELD_LEFT, FIELD_RIGHT |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MapCanvas3D(GraphicsConfiguration gc)
Just calls parent constructor. |
|
| Method Summary | |
|---|---|
HealpixMap |
getMap()
This sets a new map for display. |
RotationInterpolator |
getRotationInterpolator()
From Rotatable interface. |
void |
setAlpha(Alpha alpha)
set up a timer object to drive animation. |
void |
setFace(int f)
Modify/specify which single face this canvas will display. |
void |
setMap(HealpixMap map)
This sets a new map for display. |
void |
setNside(int nside)
This sets the nside used for the display of the whole sphere. |
void |
setShowGrid(boolean showGrid1)
Set the grid whether it is present or not |
void |
setupScene()
Dispose of any old scene and create a new one |
void |
setViewAxis(boolean b)
Specify whether to make axes visible. |
void |
setViewEquator(boolean b)
Specify whether to make equator visible. |
void |
setViewSpecificFace(boolean b)
Specify whether to make the view of a single face visible. |
void |
setViewWholeSphere(boolean b)
Specify whether to make a view of the whole sphere visible. |
void |
showScene()
Actually display the already created model |
| Methods inherited from class java.awt.Canvas |
|---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_LONE_FACE_NSIDE
| Constructor Detail |
|---|
public MapCanvas3D(GraphicsConfiguration gc)
gc - the GraphicsConfiguration to be used for rendering.| Method Detail |
|---|
public RotationInterpolator getRotationInterpolator()
getRotationInterpolator in interface RotateAblepublic void setupScene()
public void showScene()
public void setNside(int nside)
nside - the healpix pixel density parameter.public void setMap(HealpixMap map)
map - the new map to display.public HealpixMap getMap()
public void setAlpha(Alpha alpha)
alpha - specifies the timing parameters.public void setViewAxis(boolean b)
b - whether visible.public void setViewEquator(boolean b)
b - whether visible.public void setViewWholeSphere(boolean b)
b - whether visible.public void setViewSpecificFace(boolean b)
b - whether visible.public void setFace(int f)
f - the face's id.public void setShowGrid(boolean showGrid1)
showGrid1 - the grid is added or not
|
"Built from revision exported" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||