|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectshowIsosurface.Atom
public class Atom
The Atom class creates a TransformGroup object that locates the position of the atom and a Switch object that contains one or more Orbital Representations.
| Constructor Summary | |
|---|---|
Atom()
Creates an Atom object with the atom located at the origin. |
|
Atom(double x,
double y,
double z)
Creates an Atom object with the atom located at the specified position. |
|
| Method Summary | |
|---|---|
void |
createOrbital(int n)
Creates a new Orbital object containing no isosurfaces |
void |
createOrbital(int n,
java.net.URL url)
Creates a new Orbital object containing one isosurface, which is loaded from the specified VRML file |
void |
createOrbital(int n,
java.net.URL url,
int nSurf)
Creates a new Orbital object containing multiple isosurfaces, which are loaded from the specified VRML files |
void |
destroy()
Destroys the objects associated with this atom |
java.util.BitSet |
getChildMask()
Returns the ChildMask for the atom SwitchGroup. |
java.lang.String |
getInfo()
Returns name, version, copyright, and author information about this class. |
java.lang.String |
getName()
Provides the name of the atom |
Orbital |
getOrbital(int n)
Provides the indicated Orbital object |
javax.media.j3d.Transform3D |
getTransform3D()
Method for obtaining the atom's TransformGroup transform |
javax.media.j3d.TransformGroup |
getTransformGroup()
Method for obtaining the atom's TransformGroup |
void |
loadIsosurface(int n,
java.net.URL url)
Loads an isosurface in the specified orbital |
void |
loadIsosurfaces(int n,
java.net.URL url,
int nSurf)
Loads multiple isosurfaces in the specified orbital |
void |
setAllIsosurfacesVisible(int nOrb,
boolean s)
Determines whether all isosurfaces in the specified orbital are visible |
void |
setChildMask(java.util.BitSet b)
Sets the ChildMask option to indicate which orbitals are displayed. |
void |
setIsosurfaceVisible(int nOrb,
int nIso,
boolean s)
Determines whether the specified isosurface in the specified orbital is visible |
void |
setName(java.lang.String name)
Sets the name of the atom |
void |
setNucleusColor(float x,
float y,
float z)
Sets the emissive color of the nucleus and sets the nucleus to be visible |
void |
setNucleusVisible(boolean s)
Determines whether the nucleus is visible as a small where sphere |
void |
setOrbitalActive(int n)
The orbital's BranchGroup is compiled and added to the atom's Switch node. |
void |
setPosition(double x,
double y,
double z)
Sets the position of the atom |
void |
setScale(double s)
Sets the transform scale |
void |
setTransform(javax.media.j3d.Transform3D trans)
Sets the transform of the atom |
void |
setTransparency(int n,
float t)
Sets the transparency of the specified orbital |
void |
setWhichOrbital(int n)
Indicates which orbital is to be displayed May also specify Switch.CHILD_ALL, Switch.CHILD_NONE, or Switch.CHILD_MASK. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Atom()
public Atom(double x,
double y,
double z)
x - position of atom along x axisy - position of atom along y axisz - position of atom along z axis| Method Detail |
|---|
public void createOrbital(int n)
n - number of isosurfaces for the orbital
public void createOrbital(int n,
java.net.URL url)
n - number of isosurfaces for the orbitalfname - file name of the VRML file describing an isosurface
public void createOrbital(int n,
java.net.URL url,
int nSurf)
n - number of isosurfaces for the orbitalfname - base file name of the VRML files describing isosurfacesnSurf - number of isosurfaces to be loadedpublic void destroy()
public java.lang.String getInfo()
public java.lang.String getName()
public Orbital getOrbital(int n)
n - index of the orbital
public javax.media.j3d.Transform3D getTransform3D()
public javax.media.j3d.TransformGroup getTransformGroup()
public void loadIsosurface(int n,
java.net.URL url)
n - orbital indexfname - file name of VRML file used to create the isosurface
public void loadIsosurfaces(int n,
java.net.URL url,
int nSurf)
n - orbital indexfname - base file name of VRML files used to create the isosurfacesnSurf - number of isosurfaces to be loaded
public void setAllIsosurfacesVisible(int nOrb,
boolean s)
nOrb - index of Orbitals - visibility state
public void setIsosurfaceVisible(int nOrb,
int nIso,
boolean s)
nOrb - index of OrbitalnIso - index of Isosurfaces - visibility statepublic void setName(java.lang.String name)
name - atom name
public void setNucleusColor(float x,
float y,
float z)
x - x componenty - y componentz - z componentpublic void setNucleusVisible(boolean s)
s - visibility statepublic void setOrbitalActive(int n)
n - index of orbital to be made active
public void setPosition(double x,
double y,
double z)
x - position of atom along x axisy - position of atom along y axisz - position of atom along z axispublic void setScale(double s)
s - scalepublic void setTransform(javax.media.j3d.Transform3D trans)
trans - orientation and position of the atom
public void setTransparency(int n,
float t)
n - orbital indext - transparencypublic void setWhichOrbital(int n)
n - orbital indexsetChildMask,
getChildMaskpublic java.util.BitSet getChildMask()
public void setChildMask(java.util.BitSet b)
b - BitSet indicating which orbitals are displayedsetWhichOrbital
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||