Package ShapePacking

Examples of ShapePacking.spShape


    //GLOBAL.shapePack.ZOOM = ((float) GLOBAL.applet.height) / 390f;
    for (int i = 0; i < this.getSlicePlanesY().size(); i++) {
      SlicePlane slicePlane = this.getSlicePlanesY().get(i);

      if (!slicePlane.guide) {
        spShape shape = slicePlane.getspShape();
        shape.shapePack = GLOBAL.shapePack; //hacky

        shape.build();
        shape.setLabel(((char) ('A' + i)) + "");
        shape.linkedObject = slicePlane;
        GLOBAL.shapePack.add(shape);
      }
    }

    for (int i = 0; i < this.slicePlanesSlatSlices.size(); i++) {
      SlicePlane slicePlane = this.slicePlanesSlatSlices.get(i);
      if (!slicePlane.guide) {
        spShape shape = slicePlane.getspShape();
        shape.shapePack = GLOBAL.shapePack; //hacky

        shape.build();
        shape.setLabel("" + (i + 1));
        shape.linkedObject = slicePlane;
        GLOBAL.shapePack.add(shape);
      }
    }
    GLOBAL.shapePack.scaleAll(SETTINGS.scale);
View Full Code Here


    LOGGER.debug("addToPreviewShapePack");
    for (int i = 0; i < this.getSlicePlanesY().size(); i++) {
      SlicePlane slicePlane = this.getSlicePlanesY().get(i);

      if (!slicePlane.guide) {
        spShape shape = slicePlane.getspShape();
        shape.shapePack = shapePack; //hacky
        shape.build();
        shape.linkedObject = slicePlane;
        shapePack.add(shape);
      }
    }

    for (int i = 0; i < this.slicePlanesSlatSlices.size(); i++) {
      SlicePlane slicePlane = this.slicePlanesSlatSlices.get(i);
      if (!slicePlane.guide) {
        spShape shape = slicePlane.getspShape();
        shape.shapePack = shapePack; //hacky

        shape.build();
        shape.linkedObject = slicePlane;
        shapePack.add(shape);
      }
    }
View Full Code Here

    } else {
      this.buildOutline(true, true);

    }

    spShape returnShape = this.sketchOutlines.getspShape();
   
    //add collisionOutlines
     this.buildOutline(false, false);
     this.sketchOutlines.addCollisionToSpShape(returnShape);
   
View Full Code Here

    } else
      return null;
  }

  public spShape getspShape() {
    spShape shape = new spShape();
    for (int i = 0; i < this.getList().size(); i++) {
      SketchOutline sktOutline = this.getList().get(i);
      sktOutline.setupSpShape(shape);
    }
View Full Code Here

TOP

Related Classes of ShapePacking.spShape

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.