Package javax.vecmath

Examples of javax.vecmath.Point3i


    }
    nucleotide.getBaseRing6Points(ring6Points);
    viewer.transformPoints(ring6Points, ring6Screens);
    renderRing6();
    boolean hasRing5 = nucleotide.maybeGetBaseRing5Points(ring5Points);
    Point3i stepScreen;
    if (hasRing5) {
      viewer.transformPoints(ring5Points, ring5Screens);
      renderRing5();
      stepScreen = ring5Screens[3];//was 2
    } else {
View Full Code Here


      pointT.set(ptArc);
      matrixT.transform(pointT);
      pointT.add(atomB);
      // NOTE! Point3i screen is just a pointer
      //  to viewer.transformManager.point3iScreenTemp
      Point3i point3iScreenTemp = viewer.transformPoint(pointT);
      int zArc = point3iScreenTemp.z - zOffset;
      if (zArc < 0) zArc = 0;
      g3d.drawPixel(point3iScreenTemp.x, point3iScreenTemp.y, zArc);
      if (i == iMid) {
        pointT.set(ptArc);
View Full Code Here

  }
 
  private String extractVectorInfo(String name) {
    // (nx ny nz)  where n is 1/12 of the edge.
    // also allows for (nz), though that is not standard
    vector12ths = new Point3i();
    vectorCode = "";
    int i = name.indexOf("(");
    int j = name.indexOf(")", i);
    if (i > 0 && j > i) {
      String term = name.substring(i + 1, j);
View Full Code Here

  private Translation(char translationCode, int order,
      int rotationShift12ths) {
    this.translationCode = translationCode;
    this.rotationOrder = order;
    this.rotationShift12ths = rotationShift12ths;
    this.vectorShift12ths = new Point3i();       
  }
View Full Code Here

      render2(exportType != Graphics3D.EXPORT_NOT);
    } else {
      SymmetryInterface unitcell = viewer.getModelUnitCell(mesh.modelIndex);
      if (unitcell != null) {
        Point3f vTemp = new Point3f();
        Point3i minXYZ = new Point3i();
        Point3i maxXYZ = new Point3i((int) mesh.lattice.x,
            (int) mesh.lattice.y, (int) mesh.lattice.z);
        unitcell.setMinMaxLatticeParameters(minXYZ, maxXYZ);
        for (int tx = minXYZ.x; tx < maxXYZ.x; tx++)
          for (int ty = minXYZ.y; ty < maxXYZ.y; ty++)
            for (int tz = minXYZ.z; tz < maxXYZ.z; tz++) {
View Full Code Here

    Point3f[] vertices = p.vertices;
    byte[] planes;
    if (screens == null || screens.length < vertices.length) {
      screens = new Point3i[vertices.length];
      for (int i = vertices.length; --i >= 0;)
        screens[i] = new Point3i();
    }
    planes = p.planes;
    for (int i = vertices.length; --i >= 0;) {
      Atom atom = (vertices[i] instanceof Atom ? (Atom) vertices[i] : null);
      if (atom == null)
View Full Code Here

      z = new Vector3f();
      x = new Vector3f();
      y = new Vector3f();
      p1 = new Point3f();
      p2 = new Point3f();
      s1 = new Point3i();
      s2 = new Point3i();
    }
    showMultipleBonds = multipleBondSpacing != 0 && viewer.getShowMultipleBonds();
    modeMultipleBond = viewer.getModeMultipleBond();
    renderWireframe = viewer.getInMotion() && viewer.getWireframeRotation();
    ssbondsBackbone = viewer.getSsbondsBackbone();
View Full Code Here

      ((Tuple3i)value).get(this.value);
  }

  @Override
  Object get() {
      return new Point3i(value);
  }
View Full Code Here

  @Override
  Object get() {
      Tuple3i[] arr = new Tuple3i[this.length];
      for (int i = 0; i < this.length; i++) {
    int j = i * 3;
                arr[i] = new Point3i();
    arr[i].x = this.value[j+0];
    arr[i].y = this.value[j+1];
    arr[i].z = this.value[j+2];
      }
      return arr;
View Full Code Here

/*      */
/*  370 */     this.mcBounds[0] = new Point3d((1.0D / 0.0D), (1.0D / 0.0D), (1.0D / 0.0D));
/*      */
/*  373 */     this.mcBounds[1] = new Point3d((-1.0D / 0.0D), (-1.0D / 0.0D), (-1.0D / 0.0D));
/*      */
/*  377 */     this.qcBounds[0] = new Point3i(2147483647, 2147483647, 2147483647);
/*      */
/*  380 */     this.qcBounds[1] = new Point3i(-2147483648, -2147483648, -2147483648);
/*      */
/*  385 */     this.ncBounds[0] = new Point3d();
/*  386 */     this.ncBounds[1] = new Point3d();
/*      */   }
View Full Code Here

TOP

Related Classes of javax.vecmath.Point3i

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.