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

void org::openscience::cdk::layout::StructureDiagramGenerator::resetUnplacedRings (  ) [inline, private]

Set all the atoms in unplaced rings to be unplaced

Definition at line 1058 of file StructureDiagramGenerator.java.

References org::openscience::cdk::tools::LoggingTool::debug(), org::openscience::cdk::interfaces::IAtomContainer::getAtom(), org::openscience::cdk::interfaces::IAtomContainerSet::getAtomContainer(), org::openscience::cdk::interfaces::IAtomContainerSet::getAtomContainerCount(), org::openscience::cdk::interfaces::IAtomContainer::getAtomCount(), org::openscience::cdk::interfaces::IChemObject::getFlag(), org::openscience::cdk::CDKConstants::ISPLACED, and org::openscience::cdk::interfaces::IChemObject::setFlag().

Referenced by layoutNextRingSystem().

      {
            IRing ring = null;
            if (sssr == null)
            {
                  return;
            }
            int unplacedCounter = 0;
            for (int f = 0; f < sssr.getAtomContainerCount(); f++)
            {
                  ring = (IRing) sssr.getAtomContainer(f);
                  if (!ring.getFlag(CDKConstants.ISPLACED))
                  {
                        logger.debug("Ring with " + ring.getAtomCount() + " atoms is not placed.");
                        unplacedCounter++;
                        for (int g = 0; g < ring.getAtomCount(); g++)
                        {
                              ring.getAtom(g).setFlag(CDKConstants.ISPLACED, false);
                        }
                  }
            }
            logger.debug("There are " + unplacedCounter + " unplaced Rings.");
      }

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