Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This patch file was generated by NetBeans IDE
- # Following Index: paths are relative to: C:\Windows.old\Users\Toucher\Documents\jMonkeyProjects\trunk\engine\src\core\com\jme3\post
- # This patch can be applied using context Tools: Patch action on respective folder.
- # It uses platform neutral UTF-8 encoding and \n newlines.
- # Above lines and this line are ignored by the patching process.
- Index: FilterPostProcessor.java
- --- FilterPostProcessor.java Base (BASE)
- +++ FilterPostProcessor.java Locally Modified (Based On LOCAL)
- @@ -113,6 +113,25 @@
- }
- /**
- + * inserts a filter into the filters list, at the given index.
- + * @param index position in the filter list to insert the filter
- + * @param filter the filter to insert
- + */
- + public void addFilter(int index, Filter filter) {
- + if (filter == null) {
- + throw new IllegalArgumentException("Filter cannot be null.");
- + }
- + filters.add(index, filter);
- +
- + if (isInitialized()) {
- + initFilter(filter, viewPort);
- + }
- +
- + setFilterState(filter, filter.isEnabled());
- + }
- +
- +
- + /**
- * removes this filters from the filters list
- * @param filter
- */
- @@ -125,6 +144,18 @@
- updateLastFilterIndex();
- }
- + /**
- + * removes a filter from the filters list at the given index
- + * @param index of filter
- + * @return filter the removed filter
- + */
- + public Filter removeFilter(int index) {
- + Filter removed = filters.remove(index);
- + removed.cleanup(renderer);
- + updateLastFilterIndex();
- + return removed;
- + }
- +
- public Iterator<Filter> getFilterIterator() {
- return filters.iterator();
- }
- @@ -535,6 +566,15 @@
- }
- /**
- + * returns the filter from the filter list at the given index
- + * @param index
- + * @return the filter at that index in the filter list
- + */
- + public Filter getFilter(int index) {
- + return filters.get(index);
- + }
- +
- + /**
- * returns an unmodifiable version of the filter list.
- * @return the filters list
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement