Examples of CircleMarker


Examples of org.dynmap.markers.CircleMarker

  private static void showRoundBorder(String worldName, BorderData border)
  {
    if (squareBorders.containsKey(worldName))
      removeBorder(worldName);

    CircleMarker marker = roundBorders.get(worldName);
    if (marker == null)
    {
      marker = markSet.createCircleMarker("worldborder_"+worldName, Config.DynmapMessage(), false, worldName, border.getX(), 64.0, border.getZ(), border.getRadiusX(), border.getRadiusZ(), true);
      marker.setLineStyle(lineWeight, lineOpacity, lineColor);
      marker.setFillStyle(0.0, 0x000000);
      roundBorders.put(worldName, marker);
    }
    else
    {
      marker.setCenter(worldName, border.getX(), 64.0, border.getZ());
      marker.setRadius(border.getRadiusX(), border.getRadiusZ());
    }
  }
View Full Code Here

Examples of org.dynmap.markers.CircleMarker

  public static void removeBorder(String worldName)
  {
    if (!borderEnabled()) return;

    CircleMarker marker = roundBorders.remove(worldName);
    if (marker != null)
      marker.deleteMarker();

    AreaMarker marker2 = squareBorders.remove(worldName);
    if (marker2 != null)
      marker2.deleteMarker();
  }
View Full Code Here

Examples of org.pollux3d.menu.CircleMarker

    this.size = size;
    genPlanet();
    // make planet clickable
    Pollux.get().getGeometryManager().registerGeometry(planet, this);
    if (mark) {
      marker = new CircleMarker(size/2+10);
      hideMark();
      this.attachChild(marker);
    }
  }
View Full Code Here

Examples of org.pollux3d.menu.CircleMarker

    super(name);
    assetManager = Pollux.get().getAssetManager();
    mesh = (Node) assetManager.loadModel(modelPath);
    mesh.rotate(0, FastMath.PI, 0);
    this.attachChild(mesh);
    marker = new CircleMarker(8);
    marker.hideMark();
    this.attachChild(marker);
    registerGeometries();
  }
View Full Code Here

Examples of org.pollux3d.menu.CircleMarker

    this.assetManager = Pollux.get().getAssetManager();
    genSunClickGeo();
    this.attachChild(getEmitter("part_"+name));
    Pollux.get().getGeometryManager().registerGeometry(sun, this);
    this.attachChild(sun);
    marker = new CircleMarker(size*0.8f, size*0.02f, ColorRGBA.White);
    //marker.rotate(0, FastMath.PI, FastMath.PI);
    //marker.hide();
    //marker = new QuadMarker(size);
    this.attachChild((Spatial)marker);
  }
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.