private void drawBoundingVolumes(DrawContext dc, ArrayList<MercatorTextureTile> tiles) {
    float[] previousColor = new float[4];
    dc.getGL().glGetFloatv(GL.GL_CURRENT_COLOR, previousColor, 0);
    dc.getGL().glColor3d(0, 1, 0);

    for (MercatorTextureTile tile : tiles) {
      ((Cylinder) tile.getExtent(dc)).render(dc);
    }

    Cylinder c =
        dc.getGlobe()
            .computeBoundingCylinder(dc.getVerticalExaggeration(), this.levels.getSector());
    dc.getGL().glColor3d(1, 1, 0);
    c.render(dc);

    dc.getGL().glColor4fv(previousColor, 0);
  }
Exemplo n.º 2
0
 protected void initialize(DrawContext dc) {
   super.initialize(dc);
   this.name = "Pipe";
 }