This class describes what is a generic Action extension. More...
#include <ActionExtension.h>
Inheritance diagram for camitk::ActionExtension:
Collaboration diagram for camitk::ActionExtension:Public Member Functions | |
| const ActionList & | getActions () |
| get the list of actions registered y this extension | |
| virtual QString | getDescription () const =0 |
| returns the action extension small description (to be overriden in your ActionExtension) | |
| QString | getLocation () const |
| get the file path (location of the .dll/.so/.dylib) of this plugin or the file path to the CamiTK extension file that generated this extension | |
| virtual QString | getName () const =0 |
| returns the action extension name (to be overriden in your ActionExtension) | |
| virtual void | init ()=0 |
| this method should just call registerNewAction(MyAction) for any MyAction class you need to register by this extension | |
| void | initResources () |
| Load, for the selected langage (asked to the Application), the associated .qm file. | |
| void | setLocation (const QString loc) |
| set the file path (once loaded as a dynamic library) | |
| ~ActionExtension () override | |
| destructor | |
Protected Member Functions | |
| ActionExtension () | |
| constructor | |
| void | registerAction (Action *) |
| register an action instance | |
Protected Attributes | |
| ActionList | actions |
| the list of actions | |
This class describes what is a generic Action extension.
To add an ActionExtension to CamiTK core, write a new class that inherits from this class.
The following methods HAVE to be redefined in your subclass:
|
protected |
constructor
|
override |
destructor
References actions, and camitk::Action::getName().
Here is the call graph for this function:| const camitk::ActionList & camitk::ActionExtension::getActions | ( | ) |
get the list of actions registered y this extension
References actions.
Referenced by camitk::HotPlugExtensionManager::load(), camitk::Application::registerAllActions(), and camitk::Application::unregisterAllActions().
Here is the caller graph for this function:
|
pure virtual |
returns the action extension small description (to be overriden in your ActionExtension)
Implemented in ITKFiltersExtension, ITKSegmentationExtension, MMLActionExtension, PMLActionExtension, ApplicationEditActionExtension, ApplicationFileActionExtension, ApplicationHelpActionExtension, ArbitrarySliceExtension, ElastixRegistrationExtension, ImageLutExtension, ResampleExtension, MultiPickingExtension, PixelColorChangerExtension, ReconstructionExtension, ReorientImageExtension, ShowIn3DExtension, VolumeRenderingExtension, ImageAcquisitionActionExtension, MedicalImageViewerActionExtension, BasicMeshExtension, BasicTopologyExtension, MeshProcessingExtension, MeshProjectionExtension, and camitk::HotPlugActionExtension.
| QString camitk::ActionExtension::getLocation | ( | ) | const |
get the file path (location of the .dll/.so/.dylib) of this plugin or the file path to the CamiTK extension file that generated this extension
Referenced by camitk::HotPlugActionExtension::declaredActionCount(), camitk::CppHotPlugActionExtension::initActions(), and initResources().
Here is the caller graph for this function:
|
pure virtual |
returns the action extension name (to be overriden in your ActionExtension)
Implemented in ITKFiltersExtension, ITKSegmentationExtension, MMLActionExtension, PMLActionExtension, ApplicationEditActionExtension, ApplicationFileActionExtension, ApplicationHelpActionExtension, ArbitrarySliceExtension, ElastixRegistrationExtension, ImageLutExtension, ResampleExtension, MultiPickingExtension, PixelColorChangerExtension, ReconstructionExtension, ReorientImageExtension, ShowIn3DExtension, VolumeRenderingExtension, ImageAcquisitionActionExtension, MedicalImageViewerActionExtension, BasicMeshExtension, BasicTopologyExtension, MeshProcessingExtension, MeshProjectionExtension, and camitk::HotPlugActionExtension.
Referenced by camitk::Action::getExtensionName().
Here is the caller graph for this function:
|
pure virtual |
this method should just call registerNewAction(MyAction) for any MyAction class you need to register by this extension
Implemented in ITKFiltersExtension, ITKSegmentationExtension, MMLActionExtension, PMLActionExtension, ApplicationEditActionExtension, ApplicationFileActionExtension, ApplicationHelpActionExtension, ArbitrarySliceExtension, ElastixRegistrationExtension, ImageLutExtension, ResampleExtension, MultiPickingExtension, PixelColorChangerExtension, ReconstructionExtension, ReorientImageExtension, ShowIn3DExtension, VolumeRenderingExtension, ImageAcquisitionActionExtension, MedicalImageViewerActionExtension, BasicMeshExtension, BasicTopologyExtension, MeshProcessingExtension, MeshProjectionExtension, and camitk::HotPlugActionExtension.
Referenced by camitk::ExtensionManager::loadExtension().
Here is the caller graph for this function:| void camitk::ActionExtension::initResources | ( | ) |
Load, for the selected langage (asked to the Application), the associated .qm file.
References CAMITK_INFO, getLocation(), and camitk::Application::getSelectedLanguage().
Referenced by camitk::ExtensionManager::loadExtension().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
register an action instance
References actions.
Referenced by camitk::CppHotPlugActionExtension::initActions().
Here is the caller graph for this function:| void camitk::ActionExtension::setLocation | ( | const QString | loc | ) |
set the file path (once loaded as a dynamic library)
Referenced by camitk::HotPlugActionExtension::HotPlugActionExtension(), and camitk::ExtensionManager::loadExtension().
Here is the caller graph for this function:
|
protected |
the list of actions
Referenced by getActions(), camitk::CppHotPlugActionExtension::initActions(), registerAction(), and ~ActionExtension().