Examples of Box


Examples of buildcraft.core.Box

    this.x = x;
    this.y = y;
    this.z = z;
    done = false;

    Box box = new Box();
    box.initialize(this);

    context = bluePrint.getContext(world, box);
  }
View Full Code Here

Examples of ca.ucalgary.ispia.rebac.Box

   

    else if (policy instanceof Box){

      Box temp = (Box) policy;

      findFreeVars(temp.getPolicy(), free_vars);

    }

   

    else if (policy instanceof Diamond){

      Diamond temp = (Diamond) policy;

      free_vars = findFreeVars(temp.getPolicy(), free_vars);

    }

   

    else if (policy instanceof Bind){

      Bind temp = (Bind) policy;

      findFreeVars(temp.getPolicy(), free_vars);

      free_vars.remove(temp.getVariable());

    }

   

    else if (policy instanceof At){

      At temp = (At) policy;

      findFreeVars(temp.getPolicy(), free_vars);

      free_vars.add(temp.getVariable());

    }

    return free_vars;
View Full Code Here

Examples of cl.alejo.jcsim.csim.circuit.Box

        // "Exiting RefreshScrollBar: recursive level-------> " +
        // recursivo);
        return;
      }
      // El calculo de proporciones
      Box boxViewport = new Box(_canvas.getViewport());
      boxViewport.scale(1.0 / _canvas.zoom);
      Box boxWorld = new Box(boxViewport);
      Box boxExtent;

      // El extent se calcula solo si hay circuito
      if (_circuit != null)
        boxExtent = _circuit.getExtent();
      else
        boxExtent = new Box(0, 0, 0, 0);

      // SI el circuito no esta vacio
      if (boxExtent.getXi() < boxExtent.getXf())
        boxWorld.extend(boxExtent);

      // Calculamos todo en vertical
      int worldYMin = boxWorld.getYi();
      int worldYMax = boxWorld.getYf();
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Box

    protected void initExample() {

        UIComponent.setUseTransparency(true);

        // Add a spinning 3D box to show behind UI.
        final Box box = new Box("Box", new Vector3(0, 0, 0), 5, 5, 5);
        box.setModelBound(new BoundingBox());
        box.setTranslation(new Vector3(0, 0, -15));
        box.addController(new SpatialController<Box>() {
            private final Matrix3 rotate = new Matrix3();
            private double angle = 0;
            private final Vector3 axis = new Vector3(1, 1, 0.5f).normalizeLocal();

            public void update(final double time, final Box caller) {
                angle += time * 50;
                angle %= 360;
                rotate.fromAngleNormalAxis(angle * MathUtils.DEG_TO_RAD, axis);
                caller.setRotation(rotate);
            }
        });
        // Add a texture to the box.
        final TextureState ts = new TextureState();

        final Texture tex = TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear,
                true);
        ts.setTexture(tex);
        box.setRenderState(ts);
        //_root.attachChild(box);

        final UIPanel panel = makeWidgetPanel();

        final UIPanel panel2 = makeLoginPanel();
View Full Code Here

Examples of com.barrybecker4.common.geometry.Box

    /**
     * @return the bounds of the current tantrix tiles.
     */
    public Box getBoundingBox() {
        Box bbox = new Box(lastTile.getLocation());

        for (Location loc : keySet())  {
            bbox.expandBy(loc);
        }
        return bbox;
    }
View Full Code Here

Examples of com.geophile.z.spatialobject.d2.Box

        return a;
    }

    private void goodBox(int latLo, int latHi, int lonLo, int lonHi)
    {
        new Box(latLo, latHi, lonLo, lonHi);
    }
View Full Code Here

Examples of com.graphics.Box

  }

  public void build(){   

    boarderBox = new Box(this.cam,this.d,this.p,this.r,this.color);
    boarderBox.setTransparent(true);
    boarderBox.only_lines = true;
   
    for(int i = 0;i<SHAPE_NUM-1;i++){
View Full Code Here

Examples of com.jme.scene.shape.Box

        } else if (bounds instanceof BoundingBox) {
            float xExtent = ((BoundingBox)bounds).xExtent;
            float yExtent = ((BoundingBox)bounds).yExtent;
            float zExtent = ((BoundingBox)bounds).zExtent;
            Vector3f origin = ((BoundingBox)bounds).getCenter();
            Box box = new Box("Box", origin, xExtent, yExtent, zExtent);
            rootNode.attachChild(box);
        }

        // Fetch the world translation for the root node of the cell and set
        // the translation for this entity root node
View Full Code Here

Examples of com.jme3.scene.shape.Box

        app.start();
    }

    @Override
    public void simpleInitApp() {
        Box b = new Box(Vector3f.ZERO, 1, 1, 1);
        Geometry geom = new Geometry("Box", b);
        geom.updateModelBound();

        Material mat = new Material(assetManager, "Common/MatDefs/Misc/SolidColor.j3md");
        mat.setColor("m_Color", ColorRGBA.Blue);
View Full Code Here

Examples of com.lightcrafts.ui.layout.Box

        Component left = slider.getLabel();
        Component center = slider.getSlider();
        Component text = slider.getText();

        Box right = Box.createVerticalBox();
        right.add(Box.createVerticalGlue());
        right.add(text);
        right.add(Box.createVerticalGlue());

        GridBagConstraints c = new GridBagConstraints();
        c.fill = GridBagConstraints.BOTH;
        c.gridy = count;
        c.weighty = 1.;
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.