|
||||||||||
| 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.canvas3d.MapCanvas
public class MapCanvas
Create Canvas 3D with tooltip behaviour and Color bar min/max displayed. Tooltip behaviour added to actually get info from a data sphere face. Transparency feature is present to give more interaction to the scene. Extends the code originally from G. Giardino. That itself claims to be a "Rehash" of Hipparcos Sky3d. Added features like tooltip and transparency function.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
HealpixMap |
theMap
The map. |
| 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 | |
|---|---|
MapCanvas()
Creates a new MapCanvas object. |
|
MapCanvas(boolean tooltip,
float transp)
|
|
| Method Summary | |
|---|---|
BranchGroup |
createSceneGraph()
Creates the scene graph. |
ColorBar |
getColorBar()
Gets the ColorBar |
RotationInterpolator |
getRotationInterpolator()
Getter. |
float |
getTransparency()
Gets tranparency value |
boolean |
isToolTipEnabled()
Gets the state of tootlip behaviour |
void |
setAll()
Set the scene |
void |
setAll(int imap)
Set the scene with the ith data map from HealpixMap loaded |
void |
setColname(String tmp)
Set the map called from its name tmp |
void |
setColorBar(ColorBar cb)
Set the color bar to be displayed |
void |
setFace(int f)
Set the face to be displayed |
void |
setMap(HealpixMap map)
Set the displayed HealpixMap |
void |
setMap(HealpixMap map,
int ithmap)
Set the displayed HealpixMap |
void |
setNside(int nside)
Set the resolution number of the HealpixMap displayed |
void |
setToolTip(boolean isTrue)
Set the tooltip beaviour state |
void |
setTransparency(float val)
Set the transparency factor, representing the percent of tranparency. 0 is totally opaque -no tranparency-. 1 is totally transparent |
void |
setupScene()
Set the scene if not before |
void |
setViewAll(boolean b)
Specify whether to make all scene visible. |
void |
setViewAxis(boolean b)
Specify whether to make axis visible. |
void |
setViewEquator(boolean b)
Specify whether to make equator visible. |
void |
setViewGrid(boolean b)
Specify whether to make grid visible. |
void |
setViewNest(boolean b)
Specify whether to make face visible |
void |
showScene()
Actually shows the scene with the sphere |
void |
updateFaces()
Update faces. |
| 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 HealpixMap theMap
| Constructor Detail |
|---|
public MapCanvas()
public MapCanvas(boolean tooltip,
float transp)
tooltip - transp - | Method Detail |
|---|
public RotationInterpolator getRotationInterpolator()
RotateAble
getRotationInterpolator in interface RotateAblepublic BranchGroup createSceneGraph()
public void setupScene()
public void showScene()
public void setNside(int nside)
HealpixMap displayed
nside - resolution number
public void setMap(HealpixMap map,
int ithmap)
HealpixMap
map - HealpixMappublic void setMap(HealpixMap map)
HealpixMap
map - HealpixMappublic void setColorBar(ColorBar cb)
cb - the ColorBar objectpublic ColorBar getColorBar()
ColorBar
ColorBarpublic void setViewAxis(boolean b)
b - axis is displayed if truepublic void setViewGrid(boolean b)
b - whether visible.public void setViewEquator(boolean b)
b - equator is shown if truepublic void setViewAll(boolean b)
b - scene is shown if truepublic void setViewNest(boolean b)
b - face displayed only if truepublic void setFace(int f)
f - face numberpublic void setAll(int imap)
HealpixMap loaded
imap - ith map in HealpixMap loadedpublic void setAll()
public void setToolTip(boolean isTrue)
isTrue - tooltip will be shown if truepublic boolean isToolTipEnabled()
public void setColname(String tmp)
tmp - map namepublic void setTransparency(float val)
val - percent value of transparency (0.->1.)public float getTransparency()
public void updateFaces()
|
"Built from revision exported" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||