Ejemplo n.º 1
0
 protected void updateLayerPanel() {
   // remove RTT layer, update layer panel, re-insert RTT; otherwise it will appear in the layer
   // list
   int rttIndex = getWwd().getModel().getLayers().indexOf(RenderToTextureLayer.getInstance());
   if (rttIndex != -1) getWwd().getModel().getLayers().remove(rttIndex);
   this.layerPanel.update(getWwd());
   getWwd().getModel().getLayers().add(rttIndex, RenderToTextureLayer.getInstance());
 }
Ejemplo n.º 2
0
  public static void main(String[] args) {
    // MeasureRenderTime.enable(true);
    // MeasureRenderTime.setMesureGpu(true);

    Configuration.insertConfigurationDocument("si/xlab/gaea/examples/gaea-example-config.xml");
    appFrame =
        (GaeaAppFrame)
            ApplicationTemplate.start("Gaea+ Open Source Example Application", GaeaAppFrame.class);
    insertBeforeCompass(appFrame.getWwd(), RenderToTextureLayer.getInstance());
    appFrame.getWwd().addSelectListener(new FeatureSelectListener(appFrame.getWwd()));
    makeMenu(appFrame);
  }