Beispiel #1
0
 @Override
 public void uninstall(Controller c) throws Exception {
   super.uninstall(c);
   Scene scene = c.getPlugin(Scene.class);
   scene.getBackdropComponent().removeChild(terrain);
   viewPreferences.removeColorPickerChangedListener(this);
   VRPanel vp = c.getPlugin(VRPanel.class);
   vp.removeAll(getClass());
 }
Beispiel #2
0
  @Override
  public void install(Controller c) throws Exception {
    super.install(c);

    // scene
    Scene scene = c.getPlugin(Scene.class);
    scene.getBackdropComponent().addChild(terrain);
    scene.setAutomaticClippingPlanes(false);

    viewPreferences = c.getPlugin(ViewPreferences.class);
    viewPreferences.addColorPickerChangedListener(this);
    faceColorChooser.getColorPanel().setMode(viewPreferences.getColorPickerMode());

    textureInspector.setAppearance(appearance);
    updateFaceColor();
    updateFacesReflecting();
    updateFaceReflection();
    updateTransparencyEnabled();
    updateTransparency();
    VRPanel vp = c.getPlugin(VRPanel.class);
    vp.addComponent(getClass(), shrinkPanel, 1.0, "VR");
  }