|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectastex.Selection
public class Selection
Class for evaluating selection expressions.
| Field Summary | |
|---|---|
static DynamicArray |
aminoacidNames
Residue names for aminoacids. |
static DynamicArray |
dnaNames
Residue names for dna. |
static DynamicArray |
dynamicArrayCache
Cache for DynamicArray that will return selected atoms. |
static int |
EQ
Equal attribute. |
static int |
GE
Greater equal attribute. |
static int |
GT
Greater than attribute. |
static DynamicArray |
ionNames
Residue names for ions. |
static int |
LE
Less equal attribute. |
static int |
LT
Less than attribute. |
static int |
NE
Not equal attribute. |
static DynamicArray |
solventNames
Residue names for solvent. |
| Constructor Summary | |
|---|---|
Selection()
|
|
| Method Summary | |
|---|---|
static byte[] |
all(MoleculeRenderer r)
Select all the atoms. |
static byte[] |
aminoacid(MoleculeRenderer r)
Aminoacid expression. |
static byte[] |
and(byte[] mask1,
byte[] mask2)
And two selection masks together. |
static byte[] |
arrayToMask(MoleculeRenderer r,
DynamicArray selectedAtoms)
Return a mask from a DynamicArray. |
static byte[] |
atom(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of atom ids. |
static byte[] |
attribute(MoleculeRenderer r,
int attribute,
int operator,
double value)
Select on the basis of an attribute. |
static byte[] |
bonded(MoleculeRenderer r,
byte[] mask)
Select a set of atoms on the basis of residue names. |
static byte[] |
builtin(MoleculeRenderer r,
DynamicArray names)
Evaluate a builtin expression against residue names. |
static byte[] |
builtin2(MoleculeRenderer r,
DynamicArray names)
Evaluate a builtin expression atom names. |
static byte[] |
builtin3(MoleculeRenderer r,
DynamicArray names)
Evaluate a builtin expression atom names. |
static byte[] |
byresidue(MoleculeRenderer r,
byte[] mask)
Select a set of atoms on the basis of residue names. |
static byte[] |
chain(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of residue names. |
static byte[] |
composite(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of ids. |
static byte[] |
compositeSelection(MoleculeRenderer r,
java.util.Vector molecules,
java.util.Vector chains,
java.util.Vector residues,
java.util.Vector atoms)
Composite specification. |
static byte[] |
contact(MoleculeRenderer r,
double rad,
byte[] sphereMask)
Return a set of atoms withinin a tolerance of sum of vdw radii. |
static byte[] |
current(MoleculeRenderer r)
Return the current selection. |
static byte[] |
defaultSelection(MoleculeRenderer r)
Return the default selection. |
static byte[] |
displayed(MoleculeRenderer r)
Return the atoms that are actively displayed. |
static byte[] |
dna(MoleculeRenderer r)
DNA expression. |
static byte[] |
element(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of elements. |
static byte[] |
graph(MoleculeRenderer r,
byte[] graphMask)
Return a set of atoms in a connected graph. |
static byte[] |
group(MoleculeRenderer r,
java.util.Hashtable group)
Select a set of atoms in a group. |
static byte[] |
id(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of ids. |
static byte[] |
insertion(MoleculeRenderer r,
java.lang.String insertionCode)
Select a set of atoms on the basis of insertion code. |
static byte[] |
ions(MoleculeRenderer r)
Ions expression. |
static byte[] |
labelled(MoleculeRenderer r)
Return the current selection. |
static DynamicArray |
maskToArray(MoleculeRenderer r,
byte[] mask)
Return a DynamicArray from a selection mask. |
static byte[] |
modulo(MoleculeRenderer r,
int n)
Select a set of atoms on the basis of ids. |
static byte[] |
molecule(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of molecule name. |
static byte[] |
moleculeExact(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of molecule name. |
static byte[] |
name(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of residue names. |
static byte[] |
none(MoleculeRenderer r)
Select all the atoms. |
static byte[] |
not(byte[] mask1)
Not a selection mask. |
static byte[] |
or(byte[] mask1,
byte[] mask2)
Or two selection masks together. |
static byte[] |
property(MoleculeRenderer r,
int property)
Return atoms that have the specified property. |
static byte[] |
residue(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of ids. |
static byte[] |
residue2(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of ids. |
static DynamicArray |
retrieve()
Retrieve the result of a selection expression. |
static byte[] |
sequential(MoleculeRenderer r,
java.util.Vector ids)
Select a set of atoms on the basis of ids. |
static byte[] |
solvent(MoleculeRenderer r)
Solvent expression. |
static byte[] |
sphere(MoleculeRenderer r,
double rad,
byte[] sphereMask)
Return a set of atoms withinin a sphere. |
static byte[] |
sphere(MoleculeRenderer r,
double rad,
double x,
double y,
double z)
Return a set of atoms withinin a sphere. |
static void |
store(DynamicArray sel)
Store the result of a selection expression. |
static byte[] |
wide(MoleculeRenderer r)
Return the current selection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static DynamicArray aminoacidNames
public static DynamicArray dnaNames
public static DynamicArray solventNames
public static DynamicArray ionNames
public static final int GT
public static final int GE
public static final int LT
public static final int LE
public static final int EQ
public static final int NE
public static DynamicArray dynamicArrayCache
| Constructor Detail |
|---|
public Selection()
| Method Detail |
|---|
public static void store(DynamicArray sel)
public static DynamicArray retrieve()
public static DynamicArray maskToArray(MoleculeRenderer r,
byte[] mask)
public static byte[] arrayToMask(MoleculeRenderer r,
DynamicArray selectedAtoms)
public static byte[] all(MoleculeRenderer r)
public static byte[] none(MoleculeRenderer r)
public static byte[] attribute(MoleculeRenderer r,
int attribute,
int operator,
double value)
public static byte[] residue2(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] residue(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] modulo(MoleculeRenderer r,
int n)
public static byte[] composite(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] sequential(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] insertion(MoleculeRenderer r,
java.lang.String insertionCode)
public static byte[] molecule(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] moleculeExact(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] byresidue(MoleculeRenderer r,
byte[] mask)
public static byte[] bonded(MoleculeRenderer r,
byte[] mask)
public static byte[] name(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] chain(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] atom(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] group(MoleculeRenderer r,
java.util.Hashtable group)
public static byte[] id(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] element(MoleculeRenderer r,
java.util.Vector ids)
public static byte[] current(MoleculeRenderer r)
public static byte[] property(MoleculeRenderer r,
int property)
public static byte[] displayed(MoleculeRenderer r)
public static byte[] labelled(MoleculeRenderer r)
public static byte[] defaultSelection(MoleculeRenderer r)
public static byte[] wide(MoleculeRenderer r)
public static byte[] sphere(MoleculeRenderer r,
double rad,
double x,
double y,
double z)
public static byte[] sphere(MoleculeRenderer r,
double rad,
byte[] sphereMask)
public static byte[] contact(MoleculeRenderer r,
double rad,
byte[] sphereMask)
public static byte[] graph(MoleculeRenderer r,
byte[] graphMask)
public static byte[] compositeSelection(MoleculeRenderer r,
java.util.Vector molecules,
java.util.Vector chains,
java.util.Vector residues,
java.util.Vector atoms)
public static byte[] and(byte[] mask1,
byte[] mask2)
public static byte[] or(byte[] mask1,
byte[] mask2)
public static byte[] not(byte[] mask1)
public static byte[] builtin(MoleculeRenderer r,
DynamicArray names)
public static byte[] builtin2(MoleculeRenderer r,
DynamicArray names)
public static byte[] builtin3(MoleculeRenderer r,
DynamicArray names)
public static byte[] aminoacid(MoleculeRenderer r)
public static byte[] solvent(MoleculeRenderer r)
public static byte[] dna(MoleculeRenderer r)
public static byte[] ions(MoleculeRenderer r)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||