Package org.jmol.atomdata

Examples of org.jmol.atomdata.RadiusData


 
  public Point3f[] calculateSurface(BitSet bsSelected, float envelopeRadius) {
    if (envelopeRadius < 0)
      envelopeRadius = EnvelopeCalculation.SURFACE_DISTANCE_FOR_CALCULATION;
    EnvelopeCalculation ec = new EnvelopeCalculation(viewer, atomCount, null, viewer.getTestFlag2());
    ec.calculate(new RadiusData(envelopeRadius, RadiusData.TYPE_ABSOLUTE, 0),
        Float.MAX_VALUE,
        bsSelected, BitSetUtil.copyInvert(bsSelected, atomCount),
        false, false, false, true);
    Point3f[] points = ec.getPoints();
    surfaceDistanceMax = 0;
View Full Code Here


      }
      atomData.atomicNumber[i] = atom.getElementNumber();
      atomData.lastModelIndex = atom.modelIndex;
      if (includeRadii) {
        float r = 0;
        RadiusData rd = atomData.radiusData;
        switch (rd.type) {
        case RadiusData.TYPE_ABSOLUTE:
          r = rd.value;
          break;
        case RadiusData.TYPE_FACTOR:
View Full Code Here

 
  protected void setSize(int size, BitSet bsSelected) {
    if (size == 0)
      setSize(null, bsSelected);
    else
      setSize(new RadiusData(size, RadiusData.TYPE_SCREEN, 0), bsSelected);
  }
View Full Code Here

   
  private Point3f[] currentPoints;
 
  public Point3f[] getPoints() {
    if (dotsConvexMaps == null) {
      calculate(new RadiusData(SURFACE_DISTANCE_FOR_CALCULATION, RadiusData.TYPE_ABSOLUTE, 0),
          Float.MAX_VALUE, bsMySelected, null, false, false, false, false);
    }
    if (currentPoints != null)
      return currentPoints;
    int nPoints = 0;
View Full Code Here

TOP

Related Classes of org.jmol.atomdata.RadiusData

Copyright © 2018 www.massapicom. 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.