/**
   * Adds a filter to the filters list<br>
   *
   * @param filter the filter to add
   */
  public void addFilter(Filter filter) {
    filters.add(filter);

    if (isInitialized()) {
      initFilter(filter, viewPort);
    }

    setFilterState(filter, filter.isEnabled());
  }
 public void read(JmeImporter im) throws IOException {
   InputCapsule ic = im.getCapsule(this);
   numSamples = ic.readInt("numSamples", 0);
   filters = ic.readSavableArrayList("filters", null);
   for (Filter filter : filters) {
     filter.setProcessor(this);
     setFilterState(filter, filter.isEnabled());
   }
   assetManager = im.getAssetManager();
 }