|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
showIsosurface.ShowIsosurface
public class ShowIsosurface
Displays orbital isosurfaces given a point set.
Applet Parameters
| NAME | Variable Type | Default | Description |
|---|---|---|---|
| CreateAxes | Boolean | False | Determines whether coordinate axes will be created. |
| EnableRotate | Boolean | True | Determines whether the scene may be rotated. Implemented only for ROTATE_SCENE |
| EnableTranslate | Boolean | True | Determines whether the scene may be translated. |
| EnableZoom | Boolean | True | Determines whether the scene zoom is available. |
| IsReady | String | JavaScript variable that will be set to true when applet has initialized. Must use MAYSCRIPT in APPLET tag to use this feature. | |
| NbrAtoms | Integer | 1 | Number of atoms to be displayed. |
| RotateBehavior | Integer | 0 | Specifies the mouse rotation behavior. 0 (ROTATE_SCENE) entire scene rotates together 1 (ROTATE_ALL) all atoms rotate simultaneous about their locations (axes do not rotate) 2 (ROTATE_INDIVIDUAL) all atoms rotate individually and independent of other atoms |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
int |
ROTATE_ALL
|
int |
ROTATE_INDIVIDUAL
|
int |
ROTATE_SCENE
|
| 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 | |
|---|---|
ShowIsosurface()
|
|
| Method Summary | |
|---|---|
void |
createOrbital(int nAtom,
int nIso)
Creates a new Orbital object containing no isosurfaces |
void |
createOrbital(int nAtom,
int nIso,
java.lang.String fname)
Creates a new Orbital object containing one isosurface, which is loaded from the specified VRML file |
void |
createOrbital(int nAtom,
int nIso,
java.lang.String fname,
int nSurf)
Creates a new Orbital object containing multiple isosurfaces, which are loaded from the specified VRML files |
void |
destroy()
|
java.lang.String |
getAppletInfo()
|
java.util.BitSet |
getChildMask(int nAtom)
Returns the Switch child mask for the orbitals on the specified atom |
boolean |
getChildMask(int nAtom,
int nOrb)
Returns the Switch child mask setting for a specific orbital. |
java.lang.String |
getParameter(java.lang.String key,
java.lang.String def)
|
java.lang.String[][] |
getParameterInfo()
|
javax.vecmath.AxisAngle4d |
getRotation()
Provides the current setting for the system TransformGroup. |
double |
getRotationAngle()
Returns the x component of the axis of rotation for the current transform |
double |
getRotationX()
Returns the x component of the axis of rotation for the current transform |
double |
getRotationY()
Returns the y component of the axis of rotation for the current transform |
double |
getRotationZ()
Returns the z component of the axis of rotation for the current transform |
void |
init()
|
void |
loadIsosurface(int nAtom,
int nOrb,
java.lang.String fname)
Loads an isosurface from a VRML file into an orbital |
void |
loadIsosurfaces(int nAtom,
int nOrb,
java.lang.String fname,
int nSurf)
Loads a set of isosurfaces from VRML files into an orbital |
void |
setAtomPosition(int n,
double x,
double y,
double z)
Sets the position of the specified atom. |
void |
setAtomScale(int n,
double s)
Scales the geometry objects for the specified atom |
void |
setAtomView(int na,
double x,
double y,
double z,
double xa,
double ya,
double za,
double a)
Sets the rotation for a specific atom to view down the x axis. |
void |
setAxesLength(float r)
Sets the range of all axes from -r to r. |
void |
setAxesLength(float xL,
float xU,
float yL,
float yU,
float zL,
float zU)
Sets the lengths of the axes. |
void |
setAxesVisible(boolean s)
Indicates whether axes are visible |
void |
setChildMask(int nAtom,
java.util.BitSet bs)
For the specified atom, sets the Switch child mask. |
void |
setChildMask(int nAtom,
int nOrb,
boolean s)
For the specified atom, sets the Switch child mask for the specified orbital. |
void |
setFontSize(int s)
Sets the font size for the axes labels |
void |
setIsosurfaceVisible(int nAtom,
int nOrb,
int nIso,
boolean s)
Indicates whether an isosurface is visible |
void |
setNucleusColor(int n,
float x,
float y,
float z)
Sets the emissive color of the nucleus of the specified atom and sets the nucleus to be visible |
void |
setNucleusVisible(int n,
boolean s)
Determines whether the nucleus is visible as a small where sphere |
void |
setOrbitalActive(int nAtom,
int nOrb)
The orbital's BranchGroup is compiled and added to the atom's Switch node. |
void |
setOrbitalTransparency(int nAtom,
int nOrb,
float t)
Sets the transparency of an orbital |
void |
setPosition(double x,
double y,
double z)
Sets the position of the root transform. |
void |
setView(double x,
double y,
double z,
double a)
Sets the orientation to a specific value. |
void |
setViewDistance(float r)
Sets the viewing distance. |
void |
setWhichOrbital(int nAtom,
int nOrb)
For the selected atom, specifies the orbital to be displayed. |
void |
setXView()
Sets the orientation to view down the x axis. |
void |
setYView()
Sets the orientation to view down the y axis. |
void |
setZView()
Sets the orientation to view down the z axis. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.applet.Applet |
|---|
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int ROTATE_SCENE
public final int ROTATE_ALL
public final int ROTATE_INDIVIDUAL
| Constructor Detail |
|---|
public ShowIsosurface()
| Method Detail |
|---|
public java.lang.String getAppletInfo()
getAppletInfo in class java.applet.Appletpublic java.lang.String[][] getParameterInfo()
getParameterInfo in class java.applet.Applet
public java.lang.String getParameter(java.lang.String key,
java.lang.String def)
public void init()
init in class java.applet.Appletpublic void start()
start in class java.applet.Appletpublic void stop()
stop in class java.applet.Appletpublic void destroy()
destroy in class java.applet.Applet
public void createOrbital(int nAtom,
int nIso)
nAtom - index of the atom to contain the new orbitalnIso - number of isosurfaces for the new orbital
public void createOrbital(int nAtom,
int nIso,
java.lang.String fname)
nAtom - index of the atom to contain the new orbitalnIso - number of isosurfaces for the new orbitalfname - file name of the VRML file describing an isosurface
public void createOrbital(int nAtom,
int nIso,
java.lang.String fname,
int nSurf)
nAtom - index of the atom to contain the new orbitalnIso - number of isosurfaces for the orbitalfname - base file name of the VRML files describing isosurfacesnSurf - number of isosurfaces to be loadedpublic javax.vecmath.AxisAngle4d getRotation()
public java.util.BitSet getChildMask(int nAtom)
nAtom - atom of interestsetWhichOrbital
public boolean getChildMask(int nAtom,
int nOrb)
nAtom - atom of interestnOrb - orbital of interestsetWhichOrbital
public void setChildMask(int nAtom,
java.util.BitSet bs)
nAtom - atom of interestbs - child masksetWhichOrbital
public void setChildMask(int nAtom,
int nOrb,
boolean s)
nAtom - atom of interestnOrb - orbital of interests - state for orbitalsetWhichOrbitalpublic double getRotationX()
public double getRotationY()
public double getRotationZ()
public double getRotationAngle()
public void loadIsosurface(int nAtom,
int nOrb,
java.lang.String fname)
nAtom - index of atomnOrb - index of orbitalfname - file name of the VRML file
public void loadIsosurfaces(int nAtom,
int nOrb,
java.lang.String fname,
int nSurf)
nAtom - index of atomnOrb - index of orbitalfname - base file name of the VRML filesnSurf - number of surfaces to be added
public void setAtomPosition(int n,
double x,
double y,
double z)
n - index of the atomsx - position of the atom along the x axisy - position of the atom along the y axisz - position of the atom along the z axis
public void setAtomScale(int n,
double s)
n - atom indexs - scale
public void setAtomView(int na,
double x,
double y,
double z,
double xa,
double ya,
double za,
double a)
na - atom indexx - x positiony - y positionz - z positionxa - x-component of the axis of rotationya - y-component of the axis of rotationza - z-component of the axis of rotationa - angle of rotationpublic void setAxesLength(float r)
r - limits of each axis
public void setAxesLength(float xL,
float xU,
float yL,
float yU,
float zL,
float zU)
xL - lower limit of x axisxU - upper limit of x axisyL - lower limit of y axisyU - upper limit of y axiszL - lower limit of z axiszU - upper limit of z axispublic void setAxesVisible(boolean s)
s - visibility statepublic void setFontSize(int s)
s - font size for the axes labels
public void setIsosurfaceVisible(int nAtom,
int nOrb,
int nIso,
boolean s)
nGroup - group in which isosurface existsnSurface - isosurface to be affecteds - new state for visibility
public void setNucleusColor(int n,
float x,
float y,
float z)
n - index of atomx - x componenty - y componentz - z component
public void setNucleusVisible(int n,
boolean s)
n - index of atoms - visibility state
public void setOrbitalActive(int nAtom,
int nOrb)
nAtom - index of atom containing the orbitalnOrb - index of the orbital to be made active
public void setOrbitalTransparency(int nAtom,
int nOrb,
float t)
nAtom - index of atom containing the orbitalnOrb - index of the orbitalt - transparency
public void setPosition(double x,
double y,
double z)
x - position of the atom along the x axisy - position of the atom along the y axisz - position of the atom along the z axis
public void setView(double x,
double y,
double z,
double a)
x - x-component of the axis of rotationy - y-component of the axis of rotationz - z-component of the axis of rotationa - angle of rotation (right hand rule)public void setViewDistance(float r)
r - new viewing distance (along z axis)setBoundsRadiuspublic void setXView()
public void setYView()
public void setZView()
public void setWhichOrbital(int nAtom,
int nOrb)
nAtom - atom that contains the orbitalnOrb - orbital to be displayed
Special values for nOrb:
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||