Logo Search packages:      
Sourcecode: cdk version File versions  Download package

IAtomContainer org::openscience::cdk::layout::AtomPlacer::getPlacedAtoms ( IAtomContainer  ac ) [inline]

Get all the placed atoms in an AtomContainer

Parameters:
acThe AtomContainer to be searched for placed atoms
Returns:
An AtomContainer containing all the placed atoms

Definition at line 840 of file AtomPlacer.java.

References org::openscience::cdk::interfaces::IAtomContainer::addAtom(), org::openscience::cdk::interfaces::IAtomContainer::getAtom(), org::openscience::cdk::interfaces::IAtomContainer::getAtomCount(), org::openscience::cdk::interfaces::IChemObject::getBuilder(), org::openscience::cdk::interfaces::IChemObject::getFlag(), org::openscience::cdk::CDKConstants::ISPLACED, and org::openscience::cdk::interfaces::IChemObjectBuilder::newAtomContainer().

Referenced by org::openscience::cdk::layout::StructureDiagramGenerator::layoutNextRingSystem().

    {
        IAtomContainer ret = ac.getBuilder().newAtomContainer();
        for (int f = 0; f < ac.getAtomCount(); f++)
        {
            if (ac.getAtom(f).getFlag(CDKConstants.ISPLACED))
            {
                ret.addAtom(ac.getAtom(f));
            }
        }
        return ret;
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index