Examples of BoundingVolume


Examples of com.jme.bounding.BoundingVolume

    private CellTransform generateGoToPosition(CellID cellID) {

        CellTransform viewTransform = model.getCellTransformForCellID(cellID);
       
        ServerSessionManager manager = LoginManager.getPrimary();
        BoundingVolume boundsHint = new BoundingSphere(1.0f, Vector3f.ZERO);
            CellTransform generated = CellPlacementUtils.getCellTransform(manager, boundsHint,
                    viewTransform);
        LOGGER.fine("ORIGINAL:\n" + logTransform(viewTransform) + "\n"
                + "GENERATED:\n" + logTransform(generated));
View Full Code Here

Examples of com.jme.bounding.BoundingVolume

        outsideVolumeSlider.setValue(originalOutsideAudioVolume);
        fullVolumeRadiusSpinner.setValue(originalBounds.getX());

  showBoundsCheckBox.setSelected(originalShowBounds);

  BoundingVolume bounds = editor.getCell().getLocalBounds();

  if (bounds instanceof BoundingSphere) {
      float radius = ((BoundingSphere) bounds).getRadius();
     
            String text = BUNDLE.getString("Sphere_With_Radius");
            text = MessageFormat.format(text, (Math.round(radius * 10) / 10f));
            boundsLabel.setText(text);
  } else if (bounds instanceof BoundingBox) {
      Vector3f extent = new Vector3f();
      extent = ((BoundingBox) bounds).getExtent(extent);
      showBoxBounds("Box", extent);
  } else if (bounds instanceof OrientedBoundingBox) {
      Vector3f extent = ((OrientedBoundingBox) bounds).getExtent();
      showBoxBounds("OrientedBox", extent);
  } else {
      boundsLabel.setText(bounds.toString());
  }

  showBounds();
  inRestore = false;
    }
View Full Code Here

Examples of com.jme.bounding.BoundingVolume

      extent = cellRadius;
  }

  CellMO cellMO = cellRef.get();

  BoundingVolume bounds = cellMO.getWorldBounds();

  if (useCellBounds) {
      audioBounds = bounds;

      if (bounds instanceof BoundingBox) {
View Full Code Here

Examples of com.jme.bounding.BoundingVolume

      component.removeProximityListener(proximityListener.get());
  }
    }

    private float getCellRadius() {
  BoundingVolume bounds = cellRef.get().getLocalBounds();

  logger.warning("Cell bounds:  " + bounds);

  float cellRadius;
View Full Code Here

Examples of com.jme.bounding.BoundingVolume

        originalFalloff = (int) compState.getFalloff();

  originalUseCellBounds = compState.getUseCellBounds();

  BoundingVolume bounds = editor.getCell().getLocalBounds();

  if (originalUseCellBounds == true && bounds instanceof BoundingBox) {
      originalDistanceAttenuated = false;
      distanceAttenuated = false;
  }
View Full Code Here

Examples of com.jme.bounding.BoundingVolume


        falloffSlider.setValue(originalFalloff);
        falloffSlider.setEnabled(originalDistanceAttenuated);

  BoundingVolume bounds = editor.getCell().getLocalBounds();

  if (originalUseCellBounds == true && bounds instanceof BoundingBox) {
            distanceAttenuatedRadioButton.setSelected(false);
            distanceAttenuatedRadioButton.setEnabled(false);
      distanceAttenuated = false;
View Full Code Here

Examples of com.jme.bounding.BoundingVolume

   
    useCellBounds = useCellBoundsRadioButton.isSelected();

    extentRadiusSpinner.setEnabled(useCellBounds == false);

    BoundingVolume bounds = editor.getCell().getLocalBounds();

    if (useCellBounds == true) {
  if (bounds instanceof BoundingBox) {
      distanceAttenuatedRadioButton.setSelected(false);
      distanceAttenuatedRadioButton.setEnabled(false);
View Full Code Here

Examples of com.jme3.bounding.BoundingVolume

  private void addBBoxes(Node n) {
    for(Spatial s : n.getChildren()){
      if(s instanceof Geometry){
        Node a = s.getParent();
        if(a==null)return;
        BoundingVolume bound = ((Geometry) s).getModelBound();
        if(bound instanceof BoundingBox) {
          WireBox b = new WireBox(((BoundingBox) bound).getXExtent(), ((BoundingBox) bound).getYExtent(), ((BoundingBox) bound).getZExtent());
          Geometry g = new Geometry(null, b);
          g.setLocalTransform(s.getWorldTransform());
          g.setMaterial(matWireframe);
View Full Code Here

Examples of com.jme3.bounding.BoundingVolume

    System.out.println("add boxes");
    for(Spatial s : n.getChildren()){
      if(s instanceof Geometry){
        Node a = s.getParent();
        if(a==null)return;
        BoundingVolume bound = ((Geometry) s).getModelBound();
        if(bound instanceof BoundingBox) {
        Box b = new Box(bound.getCenter(), ((BoundingBox) bound).getXExtent(), ((BoundingBox) bound).getYExtent(), ((BoundingBox) bound).getZExtent());
        Geometry g = new Geometry(null, b);
        g.setLocalTransform(s.getWorldTransform());
        g.setMaterial(matWireframe);
        bboxes.attachChild(g);
        }
View Full Code Here

Examples of com.jme3.bounding.BoundingVolume

  private void addBBoxes(Node n) {
    for(Spatial s : n.getChildren()){
      if(s instanceof Geometry){
        Node a = s.getParent();
        if(a==null)return;
        BoundingVolume bound = ((Geometry) s).getModelBound();
        if(bound instanceof BoundingBox) {
          BoundingBox bb = ((BoundingBox) bound);
          WireBox b = new WireBox(bb.getXExtent(), bb.getYExtent(), bb.getZExtent());
          Geometry g = new Geometry(null, b);
          Transform t = s.getWorldTransform().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.