|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.marvin.util.MolFragLoader
public class MolFragLoader
Molecule fragment loader. Fragments can be added to the root structure or to R-group definitions as members.
Nested Class Summary | |
---|---|
static class |
MolFragLoader.RgroupAttachmentCountFilter
Molecule filter which accepts molecules with a specified number of R-group attachments. |
Field Summary | |
---|---|
static MolFilter |
FILTER_ONE_ATTACHMENT
Filter object for accepting fragments with one attachment point. |
static MolFilter |
FILTER_TWO_ATTACHMENTS
Filter object for accepting fragments with two attachment points. |
Constructor Summary | |
---|---|
MolFragLoader()
Constructor. |
|
MolFragLoader(MoleculeIterator iterator)
Constructor: sets the molecule fragment iterator. |
|
MolFragLoader(MolImporter importer)
Constructor: sets the molecule fragment iterator from the specified importer. |
Method Summary | |
---|---|
void |
arrangeRgroupMembers(RgMolecule mol)
Arranges R-group definition member coordinates. |
Molecule |
loadFrags()
Loads fragments, fuses them and returns the resulting molecule. |
Molecule |
loadFrags(boolean arrange)
Loads fragments, fuses them and returns the resulting molecule. |
void |
loadFrags(MoleculeGraph mol,
boolean arrange)
Loads fragments, fuses them to the specified molecule. |
void |
loadFrags(MoleculeGraph mol,
int dim,
boolean arrange)
Loads fragments, fuses them to the specified molecule. |
void |
loadRgroupMembers(RgMolecule mol,
int rgroupID)
Loads fragments and adds them as R-group definition members in the specified molecule. |
void |
setFilter(MolFilter filter)
Sets the fragment filter. |
void |
setImporter(MolImporter importer)
Sets the fragment iterator from the specified importer. |
void |
setIterator(MoleculeIterator iterator)
Sets the fragment iterator. |
void |
setRange(chemaxon.util.IntRange range)
Sets the (1-based) fragment index range to be loaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MolFilter FILTER_ONE_ATTACHMENT
public static MolFilter FILTER_TWO_ATTACHMENTS
Constructor Detail |
---|
public MolFragLoader()
public MolFragLoader(MolImporter importer)
importer
- the fragment importerpublic MolFragLoader(MoleculeIterator iterator)
iterator
- the fragment iteratorMethod Detail |
---|
public void setImporter(MolImporter importer)
importer
- the fragment importerpublic void setIterator(MoleculeIterator iterator)
iterator
- the fragment iteratorpublic void setRange(chemaxon.util.IntRange range)
range
- the fragment index rangepublic void setFilter(MolFilter filter)
FILTER_ONE_ATTACHMENT
), or structures with two R-group attachment points
(FILTER_TWO_ATTACHMENTS
), checking attachment point types.
(By default, all loaded fragments will be added.)
filter
- the fragment filterFILTER_ONE_ATTACHMENT
,
FILTER_TWO_ATTACHMENTS
public Molecule loadFrags()
RgMolecule
then its root structure
(structure without R-definitions) is used.
Arranges fragments if needed.
public Molecule loadFrags(boolean arrange)
RgMolecule
then its root structure
(structure without R-definitions) is used.
arrange
- is true
if fragment coordinates should be shifted
to avoid overlappings
public void loadFrags(MoleculeGraph mol, boolean arrange)
RgMolecule
then its root structure
(structure without R-definitions) is used.
mol
- the base moleculearrange
- is true
if fragment coordinates should be shifted
to avoid overlappingspublic void loadFrags(MoleculeGraph mol, int dim, boolean arrange)
RgMolecule
then its root structure
(structure without R-definitions) is used.
mol
- the base moleculedim
- the cleaning dim, -1
for automatic (dim of first fragment)arrange
- is true
if fragment coordinates should be shifted
to avoid overlappingspublic void loadRgroupMembers(RgMolecule mol, int rgroupID)
RgMolecule
then its root structure
(structure without R-definitions) is used.
mol
- the base moleculergroupID
- the R-group ID, 0
for unnumbered R-grouppublic void arrangeRgroupMembers(RgMolecule mol)
loadRgroupMembers(chemaxon.struc.RgMolecule, int)
.
mol
- the molecule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |