/**
   * Asigna la vista de datos. En este caso es el panel de preprocesado de la vectorización
   *
   * @param prepPanel
   */
  public void setDataView(GrayConversionPanel prepPanel) {
    this.panel = prepPanel;
    process = new GrayConversionProcess(null);
    process.setSourceLayer(lyr);

    panel.getComboBands().addActionListener(this);
    panel.getPosterizationPanel().getActive().addActionListener(this);
    panel.getPosterizationPanel().getLevels().addValueChangedListener(this);
    panel.getPosterizationPanel().getThreshold().addValueChangedListener(this);
    panel.getPosterizationPanel().getActive().setSelected(true);

    panel.getNoisePanel().getActive().addActionListener(this);
    panel.getNoisePanel().getThreshold().addValueChangedListener(this);

    panel.getModePanel().getActive().addActionListener(this);
    panel.getModePanel().getThreshold().addValueChangedListener(this);

    // panel.getHighPassPanel().getActive().addActionListener(this);
    // panel.getHighPassPanel().getRadio().addValueChangedListener(this);
  }
 /**
  * Asigna la capa fuente para el proceso
  *
  * @param lyr
  */
 public void setProcessSource(FLyrRasterSE lyr) {
   if (process != null) process.setSourceLayer(lyr);
 }