|
|
|
@ -69,6 +69,7 @@ public abstract class Filter implements Savable { |
|
|
|
|
protected Material material; |
|
|
|
|
protected boolean enabled = true; |
|
|
|
|
protected FilterPostProcessor processor; |
|
|
|
|
protected boolean debug; |
|
|
|
|
|
|
|
|
|
public Filter(String name) { |
|
|
|
|
this.name = name; |
|
|
|
@ -442,4 +443,37 @@ public abstract class Filter implements Savable { |
|
|
|
|
protected void setProcessor(FilterPostProcessor proc) { |
|
|
|
|
processor = proc; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* return true if this filter is in debug mode |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public boolean isDisplayDebug() { |
|
|
|
|
return debug; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* set to true if you want this filtre in debig mode. |
|
|
|
|
* The method displayDebug will be called by the FilterPostProcessor after |
|
|
|
|
* the filter has been rendered.allowing you to output anything. |
|
|
|
|
* @param displayDebug |
|
|
|
|
*/ |
|
|
|
|
public void setDisplayDebug(boolean displayDebug) { |
|
|
|
|
this.debug = displayDebug; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* internal use only |
|
|
|
|
*/ |
|
|
|
|
protected void outputdebug(){ |
|
|
|
|
if(debug){ |
|
|
|
|
displayDebug(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* override this method if you want to diplay some debugging info on screen. |
|
|
|
|
*/ |
|
|
|
|
protected void displayDebug(){ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|