|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectshowMol.Molecule
public class Molecule
Molecule contains the structural description of a molecule.
| Field Summary | |
|---|---|
static int |
BALLANDSTICK
|
static int |
SPACEFILLING
|
static int |
WIREFRAME
|
| Constructor Summary | |
|---|---|
Molecule()
Creates a Molecule object containing no atoms |
|
Molecule(int s,
java.lang.String path)
Creates a special molecule based upon one of several pre-programmed cases. |
|
Molecule(java.net.URL url,
int displayFormat)
Creates a molecule based upon the specified PDB structure file. |
|
Molecule(java.net.URL url,
int displayFormat,
int fileFormat)
Creates a molecule based upon the specified structure file. |
|
| Method Summary | |
|---|---|
void |
addRotation(double x,
double y,
double z,
double a)
Rotates the molecule about its center. |
void |
centerMolecule()
Positions the molecule so that the average atomic coordinates are at the origin. |
void |
centerMoleculeOnAtom(int idx)
Positions the molecule so that the specified atom is positioned at the origin. |
void |
clearRotation()
Resets the rotation portion of the transform. |
void |
destroy()
Destroys all Java3D objects |
Atom |
getAtom(int idx)
Provides the indicated atom |
javax.media.j3d.BranchGroup |
getBranchGroup()
Provides the BranchGroup for the molecule. |
javax.vecmath.Point3d |
getCenter()
|
int |
getNbrAtoms()
Provides the number of atoms in the molecule. |
void |
setDisplayFormat(int d)
Sets the display format. |
void |
setRotation(double x,
double y,
double z,
double a)
Rotates the molecule about its center. |
void |
setRotationOnAtom(int idx,
double x,
double y,
double z,
double a)
Rotates the molecule about the specified atom. |
void |
setTranslation(double x,
double y,
double z)
Sets the position of the molecule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int BALLANDSTICK
public static int SPACEFILLING
public static int WIREFRAME
| Constructor Detail |
|---|
public Molecule()
public Molecule(int s,
java.lang.String path)
s - index of special casepath - path to any needed files
public Molecule(java.net.URL url,
int displayFormat)
url - URL pointing to structure filedisplayFormat - display format for molecule
public Molecule(java.net.URL url,
int displayFormat,
int fileFormat)
url - URL pointing to structure filedisplayFormat - display format for moleculefileFormat - file format for structure file| Method Detail |
|---|
public void addRotation(double x,
double y,
double z,
double a)
x - x component of axis of rotationy - y component of axis of rotationz - z component of axis of rotationa - angle of rotationpublic void centerMolecule()
public void centerMoleculeOnAtom(int idx)
idx - index of atom to be placed at originpublic void destroy()
public Atom getAtom(int idx)
idx - index of atompublic void clearRotation()
public javax.media.j3d.BranchGroup getBranchGroup()
public javax.vecmath.Point3d getCenter()
public int getNbrAtoms()
public void setDisplayFormat(int d)
d - index for display
public void setRotation(double x,
double y,
double z,
double a)
x - x component of axis of rotationy - y component of axis of rotationz - z component of axis of rotationa - angle of rotation
public void setRotationOnAtom(int idx,
double x,
double y,
double z,
double a)
idx - index of atom about which rotation occursx - x component of axis of rotationy - y component of axis of rotationz - z component of axis of rotationa - angle of rotation
public void setTranslation(double x,
double y,
double z)
x - position along x-axisy - position along y-axisz - position along z-axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||