Beispiel #1
0
 private void drawSegment(Atom atomA, Atom atomB, short colixA, short colixB, float max) {
   if (atomA.getNBackbonesDisplayed() == 0
       || atomB.getNBackbonesDisplayed() == 0
       || ms.isAtomHidden(atomB.i)
       || !isDataFrame && atomA.distanceSquared(atomB) > max) return;
   colixA = C.getColixInherited(colixA, atomA.colixAtom);
   colixB = C.getColixInherited(colixB, atomB.colixAtom);
   if (!isExport && !isPass2 && !setBioColix(colixA) && !setBioColix(colixB)) return;
   int xA = atomA.sX, yA = atomA.sY, zA = atomA.sZ;
   int xB = atomB.sX, yB = atomB.sY, zB = atomB.sZ;
   int mad = this.mad;
   if (max == 1000) mad = mad >> 1;
   if (mad < 0) {
     g3d.drawLine(colixA, colixB, xA, yA, zA, xB, yB, zB);
   } else {
     int width =
         (int)
             (exportType == GData.EXPORT_CARTESIAN
                 ? mad
                 : vwr.tm.scaleToScreen((zA + zB) / 2, mad));
     g3d.fillCylinderXYZ(colixA, colixB, GData.ENDCAPS_SPHERICAL, width, xA, yA, zA, xB, yB, zB);
   }
 }
Beispiel #2
0
 short getColix2() {
   return C.getColixInherited(colix, atom2.colixAtom);
 }
Beispiel #3
0
 protected short getLeadColix(int i) {
   return C.getColixInherited(colixes[i], monomers[i].getLeadAtom().colixAtom);
 }
Beispiel #4
0
 short getColix1() {
   return C.getColixInherited(colix, atom1.colixAtom);
 }