Examples of bonds()


Examples of org.openscience.cdk.interfaces.IAtomContainer.bonds()

      if(selectedAC == null)
          return;
      for(IAtom atom:selectedAC.atoms()) {
          chemModelRelay.removeAtom(atom);
      }
      for(IBond bond:selectedAC.bonds()) {
        chemModelRelay.removeBondAndLoneAtoms( bond );
      }
      setSelection( AbstractSelection.EMPTY_SELECTION );
  }
 
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainer.bonds()

              for (IAtom mAt : droppedContainer.atoms()) {
                if (!containerWithMerge.contains(mAt)) {
                  containerWithMerge.addAtom(mAt);
                }
              }
              for (IBond mBond : droppedContainer.bonds()) {
                if (!containerWithMerge.contains(mBond)) {
                  containerWithMerge.addBond(mBond);
                }
              }
              chemModelRelay.getChemModel().getMoleculeSet().removeAtomContainer(droppedContainer);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainer.bonds()

              for (IAtom mAt : droppedContainer.atoms()) {
                if (containerWithMerge.contains(mAt)) {
                  containerWithMerge.removeAtom(mAt);
                }
              }
              for (IBond mBond : droppedContainer.bonds()) {
                if (containerWithMerge.contains(mBond)) {
                  containerWithMerge.removeBond(mBond);
                }
              }
              //restore removed container atc2
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtomContainer.bonds()

           atomsToMove = new HashSet<IAtom>();

            for (IAtom atom : selectedAC.atoms()) {
                atomsToMove.add(atom);
            }
            for (IBond bond : selectedAC.bonds()) {
                for (IAtom atom : bond.atoms()){
                    atomsToMove.add(atom);
                    selectedAC.addAtom(atom);
                }
            }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.bonds()

          else
            sourceContainer.addAtom(ringAtom);
        }
      }

      for (IBond ringBond : newRing.bonds()) {
        if (phantom)
          this.addPhantomBond(ringBond);
        else
          sourceContainer.addBond(ringBond);
      }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.bonds()

        else
          sourceContainer.addAtom(ringAtom);
      }
    }

    for (IBond ringBond : newRing.bonds()) {
      if (phantom)
        this.addPhantomBond(ringBond);
      else
        sourceContainer.addBond(ringBond);
    }
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.bonds()

          addPhantomAtom(ringAtom);
        else
          sourceContainer.addAtom(ringAtom);
      }
    }
    for (IBond ringBond : newRing.bonds()) {
      if (ringBond != bond) {
        if (phantom)
          addPhantomBond(ringBond);
        else
          sourceContainer.addBond(ringBond);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.bonds()

          this.addPhantomAtom(ringAtom);
        else
          sourceContainer.addAtom(ringAtom);
      }
    }
    for (IBond ringBond : newRing.bonds()) {
      if (ringBond != bond) {
        if (phantom)
          this.addPhantomBond(ringBond);
        else
          sourceContainer.addBond(ringBond);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IRing.bonds()

           
            ringPlacer.placeRing(ring, worldCoord, bondLength, RingPlacer.jcpAngles);
           
            for(IAtom atom : ring.atoms())
                this.chemModelRelay.addPhantomAtom(atom);
            for(IBond atom : ring.bonds())
                this.chemModelRelay.addPhantomBond(atom);
            //and look if it would merge somewhere
            chemModelRelay.getRenderer().getRenderer2DModel().getMerge().clear();
            for(IAtom atom : ring.atoms()){
                IAtom closestAtomInRing = this.chemModelRelay.getClosestAtom(atom);
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.