|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.gui.extended.molecule.Ring
public class Ring
Tripos base Ring class
| Field Summary | |
|---|---|
protected int[] |
atoms
Ids of the atoms in the ring * |
protected int |
id
Ring id |
protected int |
numAtoms
Number of atoms in ring * |
protected float |
tx
Transformed ring centroid * |
protected float |
ty
Transformed ring centroid * |
protected float |
tz
Transformed ring centroid * |
protected float |
x
Ring centroid * |
protected float |
y
Ring centroid * |
protected float |
z
Ring centroid * |
| Constructor Summary | |
|---|---|
Ring()
Default constructor |
|
Ring(float x,
float y,
float z)
Real coordinates constructor |
|
Ring(float x,
float y,
float z,
float tx,
float ty,
float tz)
Real and transformed coordinates constructor |
|
Ring(int id,
float x,
float y,
float z,
float tx,
float ty,
float tz,
int numAtoms,
int[] atoms)
Full constructor |
|
Ring(Ring ring)
Copy constructor |
|
| Method Summary | |
|---|---|
boolean |
contains(Atom a)
Return true if an atom is in this ring |
int |
getId()
Return ring id |
int |
getNumAtoms()
Return number of atoms in the ring |
float |
getTx()
Return transformed ring centroid X coordinate |
float |
getTy()
Return transformed ring centroid Y coordinate |
float |
getTz()
Return transformed ring centroid Z coordinate |
float |
getX()
Return ring centroid X coordinate |
float |
getY()
Return ring centroid Y coordinate |
float |
getZ()
Return ring centroid Z coordinate |
protected void |
setCentroid(float x,
float y,
float z)
Set the centroid of the ring |
void |
setId(int id)
Set ring id |
void |
setTx(float x)
Set transformed ring centroid X coordinate |
void |
setTy(float y)
Set transformed ring centroid Y coordinate |
void |
setTz(float z)
Set transformed ring centroid Z coordinate |
void |
setX(float x)
Set ring centroid X coordinate |
void |
setY(float y)
Set ring centroid Y coordinate |
void |
setZ(float z)
Set ring centroid Z coordinate |
protected void |
transform(Matrix3D m)
Transforms center point coordinates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int id
protected float x
protected float y
protected float z
protected float tx
protected float ty
protected float tz
protected int numAtoms
protected int[] atoms
| Constructor Detail |
|---|
public Ring(int id,
float x,
float y,
float z,
float tx,
float ty,
float tz,
int numAtoms,
int[] atoms)
id - ring id (1 based)x - x coord of centroidy - y coord of centroidz - z coord of centroidtx - tx coord of centroidty - ty coord of centroidtz - tz coord of centroidnumAtoms - number of atoms in the ringatoms - ids of the atoms in the ringpublic Ring()
public Ring(float x,
float y,
float z)
x - x coord of centroidy - y coord of centroidz - z coord of centroid
public Ring(float x,
float y,
float z,
float tx,
float ty,
float tz)
x - x coord of centroidy - y coord of centroidz - z coord of centroidtx - tx coord of centroidty - ty coord of centroidtz - tz coord of centroidpublic Ring(Ring ring)
ring - ring to be copied| Method Detail |
|---|
protected void setCentroid(float x,
float y,
float z)
x - x coordinate of the centroidy - y coordinate of the centroidz - z coordinate of the centroidprotected void transform(Matrix3D m)
m - the trnasformation matrix to be appliedpublic int getId()
public int getNumAtoms()
public float getX()
public float getY()
public float getZ()
public float getTx()
public float getTy()
public float getTz()
public boolean contains(Atom a)
atom - the atompublic void setId(int id)
public void setX(float x)
public void setY(float y)
public void setZ(float z)
public void setTx(float x)
public void setTy(float y)
public void setTz(float z)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||