26#ifndef ACTION_EXTENSION_H
27#define ACTION_EXTENSION_H
40#define registerNewAction(X) registerAction(new X(this))
100 QString dynamicLibraryFileName;
103 QTranslator* translator;
#define CAMITK_API
Definition CamiTKAPI.h:66
This class describes what is a generic Action extension.
Definition ActionExtension.h:57
ActionList actions
the list of actions
Definition ActionExtension.h:95
QString getLocation() const
get the file path (location of the .dll/.so/.dylib) of this plugin or the file path to the CamiTK ext...
Definition ActionExtension.cpp:65
void registerAction(Action *)
register an action instance
Definition ActionExtension.cpp:92
virtual void init()=0
this method should just call registerNewAction(MyAction) for any MyAction class you need to register ...
void initResources()
Load, for the selected langage (asked to the Application), the associated .qm file.
Definition ActionExtension.cpp:70
virtual QString getDescription() const =0
returns the action extension small description (to be overriden in your ActionExtension)
ActionExtension()
constructor
Definition ActionExtension.cpp:38
const ActionList & getActions()
get the list of actions registered y this extension
Definition ActionExtension.cpp:98
void setLocation(const QString loc)
set the file path (once loaded as a dynamic library)
Definition ActionExtension.cpp:60
virtual QString getName() const =0
returns the action extension name (to be overriden in your ActionExtension)
Action class is an abstract class that enables you to build a action (generally an algorithm that wor...
Definition Action.h:215
QList< Action * > ActionList
A list of Action.
Definition CamiTKAPI.h:170