|
||||||||||
| 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
ffe.panels.Graphics3D
The Graphics class provides 3D Graphics capibilities, making heavy use of Java3D and its utility packages. The following display types are currently supported: Wireframe, Ball & Stick, Spacefill/CPK and Tube models.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
ACTIVE
|
static javax.media.j3d.ColoringAttributes |
coloringAttributes
|
static javax.vecmath.Color3f[] |
colors
|
static javax.media.j3d.PolygonAttributes |
fillPolygonAttributes
|
static int |
JPEG
|
static javax.media.j3d.LineAttributes |
lineAttributes
|
static javax.media.j3d.PolygonAttributes |
linePolygonAttributes
|
static int |
PNG
|
static javax.media.j3d.PolygonAttributes |
pointPolygonAttributes
|
static javax.media.j3d.RenderingAttributes |
renderingAttributes
|
static int |
SCREEN
|
static javax.media.j3d.TransparencyAttributes |
transparencyAttributes
|
static float[] |
vdw
|
| 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 | |
Graphics3D(java.awt.GraphicsConfiguration config,
MainPanel f)
|
|
Graphics3D(MainPanel f)
The Graphics Constructor initializes the Java3D SimpleUniverse, scene graph, lighting and Mouse Behaviors. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Handles actions performed on various menu items. |
void |
attach(javax.media.j3d.BranchGroup bg)
|
boolean |
cacheFull()
|
void |
centerView()
This functions trys to center the molecular scene on the 3D canvas |
void |
clearPicks()
|
static javax.media.j3d.Shape3D |
createCone(javax.media.j3d.Appearance ap,
int res)
This method creates a Cylinder |
static javax.media.j3d.Shape3D |
createCylinder(javax.media.j3d.Appearance ap,
int res)
This method creates a Cylinder |
static javax.media.j3d.Material |
createMaterial(javax.vecmath.Color3f col)
|
static javax.media.j3d.Shape3D |
createPolar(javax.media.j3d.Appearance ap,
int div)
|
static javax.media.j3d.Shape3D |
createSphere(javax.media.j3d.Appearance ap,
int div)
This method creates a single Sphere from the given appearance |
static javax.media.j3d.Appearance |
getAppearance(javax.vecmath.Color3f col,
int type)
|
static javax.vecmath.Color3f |
getColor(Atom a,
int colortype)
Finds the desired color for an Atom |
static javax.media.j3d.Geometry |
getConeGeom(int num,
int res)
|
static javax.media.j3d.Geometry |
getCylinderGeom(int num,
int res)
|
GlobalAxis |
getNavigation()
|
int |
getPickMode()
|
static javax.media.j3d.Geometry |
getPolarGeom(int res)
|
javax.vecmath.Point2d |
getScreenCoordinate(javax.media.j3d.Node node,
javax.vecmath.Point3d point3d)
|
static javax.media.j3d.Geometry |
getSphereGeom(int res)
|
javax.swing.JLabel |
getStatusBar()
|
void |
loadPrefs()
Load preferences from the user node |
javax.media.j3d.BranchGroup |
loadVRML(java.io.BufferedReader br)
|
javax.media.j3d.BranchGroup |
loadVRML(java.io.File file)
|
javax.media.j3d.BranchGroup |
loadVRML(java.net.URL pdburl)
|
void |
paint(java.awt.Graphics g)
|
void |
postRender()
|
void |
postSwap()
This function facilitates image capture from the 3D Canvas. |
void |
recurseVRML(javax.media.j3d.Node node)
|
void |
remove(FSystem m)
This method removes a FSystem from the Scene Graph |
void |
Render(FSystem s,
boolean update)
This method renders a FSystem to the 3DCanvas |
void |
savePrefs()
Save preferences to the user node |
boolean |
sceneRendering()
|
void |
selected()
|
void |
setAxisShowing(boolean b)
|
void |
setCapture(boolean c)
|
void |
setColor(FNode node,
java.lang.String colortype)
|
void |
setColor(java.lang.String colortype)
|
void |
setLabelsUpdated()
|
void |
setPosition()
|
void |
setPosition(FNode node)
|
void |
setView(FNode node,
java.lang.String style)
|
void |
setView(java.lang.String style)
|
void |
updateScene(java.util.ArrayList n,
boolean t,
boolean v,
int viewtype,
boolean c,
int colortype)
|
void |
updateScene(FNode n,
boolean t,
boolean v,
int viewtype,
boolean c,
int colortype)
|
| 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, preRender, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRendering |
| Methods inherited from class java.awt.Canvas |
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
| 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, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, 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, 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, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final javax.media.j3d.ColoringAttributes coloringAttributes
public static final javax.media.j3d.RenderingAttributes renderingAttributes
public static final javax.media.j3d.LineAttributes lineAttributes
public static final javax.media.j3d.TransparencyAttributes transparencyAttributes
public static final javax.media.j3d.PolygonAttributes fillPolygonAttributes
public static final javax.media.j3d.PolygonAttributes pointPolygonAttributes
public static final javax.media.j3d.PolygonAttributes linePolygonAttributes
public static final int JPEG
public static final int PNG
public static final int SCREEN
public static final int ACTIVE
public static javax.vecmath.Color3f[] colors
public static float[] vdw
| Constructor Detail |
public Graphics3D(java.awt.GraphicsConfiguration config,
MainPanel f)
public Graphics3D(MainPanel f)
| Method Detail |
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerpublic javax.media.j3d.BranchGroup loadVRML(java.io.File file)
public javax.media.j3d.BranchGroup loadVRML(java.net.URL pdburl)
public javax.media.j3d.BranchGroup loadVRML(java.io.BufferedReader br)
public void recurseVRML(javax.media.j3d.Node node)
public void attach(javax.media.j3d.BranchGroup bg)
public void centerView()
public void clearPicks()
public static javax.media.j3d.Material createMaterial(javax.vecmath.Color3f col)
public static javax.media.j3d.Appearance getAppearance(javax.vecmath.Color3f col,
int type)
public static javax.media.j3d.Geometry getConeGeom(int num,
int res)
public static javax.media.j3d.Shape3D createCone(javax.media.j3d.Appearance ap,
int res)
public static javax.media.j3d.Geometry getCylinderGeom(int num,
int res)
public static javax.media.j3d.Shape3D createCylinder(javax.media.j3d.Appearance ap,
int res)
public static javax.media.j3d.Shape3D createPolar(javax.media.j3d.Appearance ap,
int div)
public static javax.media.j3d.Shape3D createSphere(javax.media.j3d.Appearance ap,
int div)
public static javax.vecmath.Color3f getColor(Atom a,
int colortype)
public GlobalAxis getNavigation()
public int getPickMode()
public static javax.media.j3d.Geometry getPolarGeom(int res)
public javax.swing.JLabel getStatusBar()
public static javax.media.j3d.Geometry getSphereGeom(int res)
public void paint(java.awt.Graphics g)
public void postSwap()
public javax.vecmath.Point2d getScreenCoordinate(javax.media.j3d.Node node,
javax.vecmath.Point3d point3d)
public void postRender()
public void setLabelsUpdated()
public void remove(FSystem m)
m - FSystem to removepublic void savePrefs()
public void loadPrefs()
public void Render(FSystem s,
boolean update)
public void setAxisShowing(boolean b)
public void setCapture(boolean c)
public void selected()
public void updateScene(FNode n,
boolean t,
boolean v,
int viewtype,
boolean c,
int colortype)
public void updateScene(java.util.ArrayList n,
boolean t,
boolean v,
int viewtype,
boolean c,
int colortype)
public void setView(java.lang.String style)
public void setView(FNode node,
java.lang.String style)
public void setColor(java.lang.String colortype)
public void setColor(FNode node,
java.lang.String colortype)
public void setPosition()
public void setPosition(FNode node)
public boolean sceneRendering()
public boolean cacheFull()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||