Package es.iiia.shapegrammar.shape

Examples of es.iiia.shapegrammar.shape.ShapeModel.transform()


        ShapeModel returnShape = this.getRightShape().getCenteredShape();
        state.getAffineTransform().concatenate(this.getTransform());
        if (close) {
          state.setExecuted(true);
        }
        returnShape.transform(state.getAffineTransform());
        return returnShape;
    }


//    public RuleShapeModel setRightShape(ShapeModel rightShape) {
View Full Code Here


      // create right side of the rule
      ShapeModel lsh = model.getLeftShape().getCenteredShape();
      ShapeController lctr = new ShapeController(lsh);
     
      ShapeModel rsh = model.getRightShape().getCenteredShape();
      rsh.transform(model.getTransform());
      ShapeController rctr = new ShapeController(rsh);
     
      if (!(model instanceof RuleSubstitution)) {
        lctr.append(foreignModel);
      }
View Full Code Here

 
  private ShapeModel getTransformedShape(boolean moveToScreenCenter) {
    ShapeModel model = this.getCenteredShape();

    // transform based on stored transformation
    model.transform(this.transform.getTransform());

    //System.out.println("RuleShapeModel(45): " + this.transform.getTransform());

    // center model
//    if (moveToScreenCenter) {
View Full Code Here

 
  public ShapeModel getCenteredTransformedShape() {
    ShapeModel model = this.getCenteredShape();

    // transform based on stored transformation
    model.transform(this.transform.getTransform());
    return model;
  }

  public ShapeModel getCenteredShape() {
    ShapeModel clonedShape = this.shape.clone();
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.