Examples of stretch()


Examples of ca.eandb.jmist.framework.scene.TransformableSceneElement.stretch()

        }
      }

      TransformableSceneElement e = new TransformableSceneElement(block.root);
      e.translate(block.base.vectorFromOrigin());
      e.stretch(scale[0], scale[1], scale[2]);
      e.rotateZ(Math.toRadians(angle));

      e.translate(insertionPoint.vectorFromOrigin());
      Basis3 basis = DxfUtil.getBasisFromArbitraryAxis(extrusionDir);
      AffineMatrix3 T = AffineMatrix3.fromColumns(basis.u(), basis.v(), basis.w());
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout.stretch()

   
    QHBoxLayout tagLayout = new QHBoxLayout();
    v.addWidget(titleLabel, 0);
    notebookLayout.addRow(notebookLabel, notebookBox);
    tagLayout.addLayout(notebookLayout, 0);
    tagLayout.stretch(4);
    tagLayout.addWidget(tagLabel, 0);
    tagLayout.addWidget(tagEdit, 1);
    v.addLayout(tagLayout);

    QHBoxLayout urlLayout = new QHBoxLayout();
View Full Code Here

Examples of com.vividsolutions.jtstest.testbuilder.topostretch.TopologyStretcher.stretch()

        isViewPerformant = stretcher.numVerticesInMask(maskEnv) < MAX_VERTICES_IN_MASK;
      }
      if (! isViewPerformant)
        return;

      stretchGeom = stretcher.stretch(nearnessTol, stretchSize, maskEnv);
      stretchCoords = stretcher.getModifiedCoordinates();
    }
  }
 
  private boolean isCacheValid()
View Full Code Here

Examples of dwlab.shapes.maps.tilemaps.TileMap.stretch()

      tileMap.draw();
      printText( "Press any Key to stretch tilemap by 2 times" );
      printText( "Stretch example", Align.TO_CENTER, Align.TO_BOTTOM );
      swapBuffers();
      waitForKey();
      tileMap.stretch( 2, 2 );
      tileMap.alterSize( 2, 2 );
    }
  }
}
View Full Code Here

Examples of org.antlr.xjlib.appkit.gview.base.Vector2D.stretch()

        path.add(p2);
        path.add(end_);
        path.add(end);

        Vector2D labelv = start_.sub(p2);
        labelv.stretch(0.5);
        link.label.setPosition(p2.add(labelv).shift(0, LABEL_OFFSET));
    }
}
View Full Code Here

Examples of org.antlr.xjlib.appkit.gview.base.Vector2D.stretch()

        if(selfLoop) {
            if(cubic == null)
                cubic = new CubicCurve2D.Double();

            Vector2D corde = direction.copy();
            corde.stretch(1.7);
            if(corde.length()<100)
                corde.setLength(100);

            corde.rotate(-40);
            cubic.ctrlx1 = getStartWithOffset().getX()+corde.getX();
View Full Code Here

Examples of org.antlr.xjlib.appkit.gview.base.Vector2D.stretch()

            v1 = v1.normalize();
            v1.stretch(startTangentOffset);

            v2 = v2.normalize();
            v2.stretch(endTangentOffset);

            cubic.x1 = getStartWithOffset().getX()+v1.getX();
            cubic.y1 = getStartWithOffset().getY()+v1.getY();
            cubic.x2 = getEndWithOffset().getX()+v2.getX();
            cubic.y2 = getEndWithOffset().getY()+v2.getY();
View Full Code Here

Examples of org.antlr.xjlib.appkit.gview.base.Vector2D.stretch()

            arrow.setDirection(new Vector2D(cubic.ctrlx2-cubic.x2, cubic.ctrly2-cubic.y2));

            shape = cubic;
        } else {
            Vector2D middle = getEndWithOffset().sub(getStartWithOffset());
            middle.stretch(0.5);

            Vector2D height = middle.normalize();
            height.rotate(-90);

            if(flateness == 0)
View Full Code Here

Examples of org.antlr.xjlib.appkit.gview.base.Vector2D.stretch()

            v1 = v1.normalize();
            v1.stretch(startTangentOffset);

            v2 = v2.normalize();
            v2.stretch(endTangentOffset);

            quad.x1 = getStartWithOffset().getX()+v1.getX();
            quad.y1 = getStartWithOffset().getY()+v1.getY();
            quad.x2 = getEndWithOffset().getX()+v2.getX();
            quad.y2 = getEndWithOffset().getY()+v2.getY();
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.