|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.space.monitor.Control
chemaxon.marvin.space.monitor.DihedralControl
public class DihedralControl
This control is to change a dihedral angle that is torsion a GraphicComponent.
Dihedral of 4 components is the angle between
the 2 planes determinde by the first 3 and the second 3 components. Measuring
dihedral has only sense if the 4 elements are 4 atoms of a molecule.
In this sense DihedralControl is rotation of a part of a molecule around a bond.
| Field Summary | |
|---|---|
protected int |
atomA
|
protected int |
atomB
|
protected int |
bond
|
protected int |
center
|
| Fields inherited from class chemaxon.marvin.space.monitor.Control |
|---|
ambient, component, DEFAULT_SIZE, diffuse, monitor, shininess, size, specular, x, y |
| Constructor Summary | |
|---|---|
DihedralControl(DihedralMonitor monitor)
Creates a new instance of DihedralControl |
|
| Method Summary | |
|---|---|
void |
control(int v)
One part of the molecule being in one of the end of the torsion bond will be rotated around the bond. |
void |
control(int x,
int y)
Does nothing. |
void |
finalize()
|
void |
flip()
Torsion will affect the other part of the component. |
byte[] |
getColor()
Returns the color of the control. |
void |
setAtoms(int atomA,
int atomB)
Sets 2 atoms as the 2 end of the torsion bond. |
void |
setComponent(GraphicComponent gc)
Sets the affecting component of the DihedralControl which has to be a MoleculeComponent. |
| Methods inherited from class chemaxon.marvin.space.monitor.Control |
|---|
getCenter, projectVector, setCenter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int atomA
protected int atomB
protected int center
protected int bond
| Constructor Detail |
|---|
public DihedralControl(DihedralMonitor monitor)
| Method Detail |
|---|
public void finalize()
finalize in class java.lang.Object
public void setAtoms(int atomA,
int atomB)
atomA - index of one of the atoms in the moleculeatomB - index of the other atom in the moleculepublic void flip()
public void setComponent(GraphicComponent gc)
setComponent in class Controlpublic void control(int v)
control in class Control
public void control(int x,
int y)
control in class Controlpublic byte[] getColor()
getColor in class Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||