| 1 |
/* |
|---|
| 2 |
* Moonlight|3D Copyright (C) 2005 The Moonlight|3D team |
|---|
| 3 |
* |
|---|
| 4 |
* This library is free software; you can redistribute it and/or modify it under |
|---|
| 5 |
* the terms of the GNU Lesser General Public License as published by the Free |
|---|
| 6 |
* Software Foundation; either version 2.1 of the License, or (at your option) |
|---|
| 7 |
* any later version. |
|---|
| 8 |
* |
|---|
| 9 |
* This library is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|---|
| 11 |
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
|---|
| 12 |
* details. |
|---|
| 13 |
* |
|---|
| 14 |
* You should have received a copy of the GNU Lesser General Public License |
|---|
| 15 |
* along with this library; if not, write to the Free Software Foundation, Inc., |
|---|
| 16 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 17 |
* |
|---|
| 18 |
* Created on Nov 5, 2005 |
|---|
| 19 |
*/ |
|---|
| 20 |
package eu.moonlight3d.common.image.openexr; |
|---|
| 21 |
/** |
|---|
| 22 |
* \package ml.plugins.images.openexr |
|---|
| 23 |
* |
|---|
| 24 |
* This is the plugin for loading and storing OpenEXR image files. |
|---|
| 25 |
* |
|---|
| 26 |
* This package is a standalone plugin. It depends on the the |
|---|
| 27 |
* OpenEXR implementation by Mario Fichtenmayer |
|---|
| 28 |
*/ |
|---|
| 29 |
|
|---|
| 30 |
import java.util.ArrayList; |
|---|
| 31 |
|
|---|
| 32 |
import eu.moonlight3d.common.image.core.FormatManager; |
|---|
| 33 |
|
|---|
| 34 |
public class Plugin implements eu.moonlight3d.framework.plugins.Plugin { |
|---|
| 35 |
|
|---|
| 36 |
private AboutEXRPage aboutEXRPage; |
|---|
| 37 |
|
|---|
| 38 |
public String getName() { |
|---|
| 39 |
return "eu.moonlight3d.ml3d.images.openexr.Plugin"; |
|---|
| 40 |
} |
|---|
| 41 |
|
|---|
| 42 |
public ArrayList<String> getDependencies() { |
|---|
| 43 |
ArrayList<String> dependencyList=new ArrayList<String>(); |
|---|
| 44 |
dependencyList.add("eu.moonlight3d.common.image.core.Plugin"); |
|---|
| 45 |
return dependencyList; |
|---|
| 46 |
} |
|---|
| 47 |
|
|---|
| 48 |
public void load() throws Exception { |
|---|
| 49 |
FormatManager.getInstance().registerImageFormat(new ImageFormat()); |
|---|
| 50 |
|
|---|
| 51 |
aboutEXRPage=new AboutEXRPage(); |
|---|
| 52 |
eu.moonlight3d.framework.ui.AboutDialog.registerAboutDialogPageFactory(aboutEXRPage); |
|---|
| 53 |
} |
|---|
| 54 |
|
|---|
| 55 |
public void unload() throws Exception { |
|---|
| 56 |
FormatManager.getInstance().unregisterImageFormat("OpenEXR"); |
|---|
| 57 |
eu.moonlight3d.framework.ui.AboutDialog.unregisterAboutDialogPageFactory(aboutEXRPage); |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|
| 60 |
} |
|---|