Examples of atomContainers()


Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

        if (shiftPasted) {
          double maxXCurr = Double.NEGATIVE_INFINITY;
            double minXPaste = Double.POSITIVE_INFINITY;

          for (IAtomContainer atc : moleculeSet.atomContainers()) {
              // Detect  the right border of the current structure..
              for (IAtom atom : atc.atoms()) {
                  if(atom.getPoint2d().x>maxXCurr)
                      maxXCurr = atom.getPoint2d().x;
              }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

        // in different reactions need separate layout (different positions etc)
        if (chemModel.getReactionSet() != null) {
            for (IReaction reaction : chemModel.getReactionSet().reactions()) {
                int i = 0;
                IAtomContainerSet products = reaction.getProducts();
                for (IAtomContainer product : products.atomContainers()) {
                    try {
                        products.replaceAtomContainer(i,
                                (IAtomContainer) product.clone());
                    } catch (CloneNotSupportedException e) {
                    }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

                    }
                    i++;
                }
                i = 0;
                IAtomContainerSet reactants = reaction.getReactants();
                for (IAtomContainer reactant : reactants.atomContainers()) {
                    try {
                        reactants.replaceAtomContainer(i,
                                (IAtomContainer) reactant.clone());
                    } catch (CloneNotSupportedException e) {
                    }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

        generateNewCoordinates(container);
      } else {
        // deal with disconnected atom containers
        IAtomContainerSet molecules = ConnectivityChecker
            .partitionIntoMolecules(container);
        for (IAtomContainer subContainer : molecules.atomContainers()) {
          generateNewCoordinates(subContainer);
        }
      }

      for (IAtom atom : container.atoms()) {
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

        BufferedWriter out = new BufferedWriter(new FileWriter(outFile));

        String eol=System.getProperty("line.separator");
        if (object instanceof IChemModel) {
            IAtomContainerSet mSet = ((IChemModel) object).getMoleculeSet();
            for (IAtomContainer atc : mSet.atomContainers()) {
                InChI inchi = InChITool.generateInchi(atc);
                out.write(inchi.getInChI()+eol);
                out.write(inchi.getAuxInfo()+eol);
                out.write(inchi.getKey()+eol);
            }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

        //                       endPost < 0   endPost > 0
        //              ^                    ^
        //              |                    |
        //              --------------------->
        //
        for (IAtomContainer container : moleculeSet.atomContainers()) {
           
            // count the number of atoms before and after the arrow for this molecule
            int beforeStart = 0;
            int afterEnd = 0;
                      
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainerSet.atomContainers()

      reactantsorproducts = ReactionSetManipulator.getReactionByReactionID(chemModel.getReactionSet(), reactionID).getReactants();
    else
      reactantsorproducts = ReactionSetManipulator.getReactionByReactionID(chemModel.getReactionSet(), reactionID).getProducts();
    IReaction reaction = ReactionSetManipulator.getReactionByReactionID(chemModel.getReactionSet(), reactionID);
    int count=0;
    for(IAtomContainer mol : reactantsorproducts.atomContainers()){
      if(mol.getID().equals(movedContainer.getID())){
        reactantsorproducts.removeAtomContainer(count);
        break;
      }
      count++;
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRingSet.atomContainers()

                        else
                            unplacedNeighbours.addAtom((IAtom)l.get(i));
                    }
                    ap.distributePartners(lastplaced, placedNeighbours, GeometryTools.get2DCenter(placedNeighbours), unplacedNeighbours, 1.4);
                    IRingSet ringset=new SSSRFinder(container).findSSSR();
                    for(IAtomContainer ring:ringset.atomContainers()){
                        ringPlacer.placeRing((IRing)ring, GeometryTools.get2DCenter(container), chemModelRelay.getRenderer().getRenderer2DModel().getBondLength() / chemModelRelay.getRenderer().getRenderer2DModel().getScale());
                    }
                    lastplaced=container.getAtom(counter);
                    counter++;
                    if(counter==container.getAtomCount())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.