wiki:PluginMenu

Version 5 (modified by alassane, 12 years ago) ( diff )

--

Using Plugins

On the main Morphanalyser window, click 'Plugins' -> 'Add a Plugin' to add a plugin. A file browser window will open, select a jar file containing one or more Batchable3D and/or Plugin3D classes. The plugin will add a new cascaded menu to the Plugins menu, the cascaded menu will contain each "Batchable3D" class as both a single and a batch item on the "Plugins" sub menu.

To remove a plugin, click 'Plugins' -> 'remove an existing Plugin'

Using Factories

Beside Plugins, Factories can be added to Morphanalyser for personalized tasks. Factories are added in the same way than Plugins. If the selected jar contains one or more classes implementing a particular Factory, a new selectable factory is added in the Plugins menu ( in Factores submenu).

Morphanalyser uses Factories to specify the way that the 3D objects are loaded and rendered. The default Factory (installed by default) is DefaultObjectGeometryFactory. It makes Morphanalyser load a geometry and render it with only one texture which is supposed to be in the same directory than the object and having the same base name (for example, if we want to open an object whose name is "face.obj", its corresponding texture must be located in the same directory, with the name "face.jpg" or "face.bmp").

There is another loading and rendering Factory

Writing Batchable and Plugin classes

MorphAnalyser handles two plugin interfaces. The first, Batchable3D, allows single and batch processing of images. A no-args constructor (or no constructor for the no args default) needs to be provided for loading at runtime (using java reflection). The second interface, Plugin3D, is more general, and simply supports a setup and cleanup method.

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.