public class BaseMacroExtensions
extends Object
implements org.scijava.command.Command, ij.macro.MacroExtension
The functions are available in the macro language by doing
run("Acquifer IM04 macro extensions"); for IM04 datasets
run("Acquifer IM03 macro extensions"); for IM03 datasets
which defines the variable Ext, which allows then
Ext.getLightPower(imageName, lightPower)
Constructor and Description |
---|
BaseMacroExtensions(acquifer.core.im.FilenameFilter filenameFilter)
Descendant classes should call a custom constructor with the FilenameFilter class adapted to the IM model.
|
Modifier and Type | Method and Description |
---|---|
ij.macro.ExtensionDescriptor[] |
getExtensionFunctions()
Return the list of ExtensionDescriptor to make available custom macro-commands.
|
String |
handleExtension(String functionName,
Object[] args)
Handle call to the macro-functions.
|
void |
run() |
public BaseMacroExtensions(acquifer.core.im.FilenameFilter filenameFilter)
public void run()
run
in interface Runnable
public ij.macro.ExtensionDescriptor[] getExtensionFunctions()
getExtensionFunctions
in interface ij.macro.MacroExtension
public String handleExtension(String functionName, Object[] args)
handleExtension
in interface ij.macro.MacroExtension
functionName
- as declared in ExtensionDescriptorargs
- the arguments provided by the macro function, which can be output arguments too.
These output arguments are actually passed as single-element array (ex: single Double[])