This class describes what is a generic Action extension. More...
#include <ActionExtension.h>
Public Member Functions | |
const ActionList & | getActions () |
get the list of actions registered y this extension More... | |
virtual QString | getDescription ()=0 |
returns the action extension small description (to be overriden in your ActionExtension) More... | |
QString | getLocation () const |
get the file path (location of the .dll/.so/.dylib) of this plugin More... | |
virtual QString | getName ()=0 |
returns the action extension name (to be overriden in your ActionExtension) More... | |
virtual void | init ()=0 |
this method should just call registerNewAction(MyAction) for any MyAction class you need to register by this extension More... | |
void | initResources () |
Load, for the selected langage (asked to the Application), the associated .qm file. More... | |
void | setLocation (const QString loc) |
set the file path (once loaded as a dynamic library) More... | |
~ActionExtension () override | |
destructor More... | |
Protected Member Functions | |
ActionExtension () | |
constructor More... | |
void | registerAction (Action *) |
register an action instance More... | |
Protected Attributes | |
ActionList | actions |
the list of actions More... | |
Private Attributes | |
QString | dynamicLibraryFileName |
the shared lib (.so, .dll or .dylib) used to instantiate the ComponentExtension subclass instance More... | |
QTranslator * | translator |
Provide internationalization support for text output. More... | |
This class describes what is a generic Action extension.
To add a 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
References translator.
|
override |
destructor
References actions, camitk::Action::getName(), and translator.
const camitk::ActionList & camitk::ActionExtension::getActions | ( | ) |
get the list of actions registered y this extension
References actions.
Referenced by camitk::Core::getConfig(), camitk::SettingsDialog::on_removeActionExtensionButton_released(), camitk::Application::registerAllActions(), camitk::Application::unregisterAllActions(), and camitk::SettingsDialog::updateActionExtensionList().
|
pure virtual |
returns the action extension small description (to be overriden in your ActionExtension)
Implemented in MeshProcessingExtension, BasicTopologyExtension, BasicMeshExtension, MedicalImageViewerActionExtension, ImageAcquisitionActionExtension, VolumeRenderingExtension, ShowIn3DExtension, ReorientImageExtension, ReconstructionExtension, PixelColorChangerExtension, MultiPickingExtension, ResampleExtension, ImageLutExtension, BoxVOIExtension, ArbitrarySliceExtension, FrameExtension, ApplicationHelpActionExtension, ApplicationFileActionExtension, ApplicationEditActionExtension, PMLActionExtension, MMLActionExtension, ITKSegmentationExtension, ITKFiltersExtension, and MeshProjectionExtension.
QString camitk::ActionExtension::getLocation | ( | ) | const |
get the file path (location of the .dll/.so/.dylib) of this plugin
References dynamicLibraryFileName.
Referenced by camitk::Core::getConfig(), initResources(), and camitk::SettingsDialog::updateActionExtensionList().
|
pure virtual |
returns the action extension name (to be overriden in your ActionExtension)
Implemented in MeshProcessingExtension, BasicTopologyExtension, BasicMeshExtension, MedicalImageViewerActionExtension, ImageAcquisitionActionExtension, VolumeRenderingExtension, ShowIn3DExtension, ReorientImageExtension, ReconstructionExtension, PixelColorChangerExtension, MultiPickingExtension, ResampleExtension, ImageLutExtension, BoxVOIExtension, ArbitrarySliceExtension, FrameExtension, ApplicationHelpActionExtension, ApplicationFileActionExtension, ApplicationEditActionExtension, PMLActionExtension, MMLActionExtension, ITKSegmentationExtension, ITKFiltersExtension, and MeshProjectionExtension.
Referenced by camitk::ExtensionManager::actionExtensionLessThan(), camitk::CamiTKLogger::getCamiTKAPIInformation(), camitk::Core::getConfig(), camitk::Action::getExtensionName(), and ImpMainWindow::initActions().
|
pure virtual |
this method should just call registerNewAction(MyAction) for any MyAction class you need to register by this extension
Implemented in MeshProcessingExtension, BasicTopologyExtension, BasicMeshExtension, MedicalImageViewerActionExtension, ImageAcquisitionActionExtension, VolumeRenderingExtension, ShowIn3DExtension, ReorientImageExtension, ReconstructionExtension, PixelColorChangerExtension, MultiPickingExtension, ResampleExtension, ImageLutExtension, BoxVOIExtension, ArbitrarySliceExtension, FrameExtension, ApplicationHelpActionExtension, ApplicationFileActionExtension, ApplicationEditActionExtension, PMLActionExtension, MMLActionExtension, MeshProjectionExtension, ITKSegmentationExtension, and ITKFiltersExtension.
Referenced by camitk::ExtensionManager::loadExtension().
void camitk::ActionExtension::initResources | ( | ) |
Load, for the selected langage (asked to the Application), the associated .qm file.
References CAMITK_INFO, getLocation(), camitk::Application::getSelectedLanguage(), and translator.
Referenced by camitk::ExtensionManager::loadExtension().
|
protected |
register an action instance
References actions.
void camitk::ActionExtension::setLocation | ( | const QString | loc | ) |
set the file path (once loaded as a dynamic library)
References dynamicLibraryFileName.
Referenced by camitk::ExtensionManager::loadExtension().
|
protected |
the list of actions
Referenced by getActions(), registerAction(), and ~ActionExtension().
|
private |
the shared lib (.so, .dll or .dylib) used to instantiate the ComponentExtension subclass instance
Referenced by getLocation(), and setLocation().
|
private |
Provide internationalization support for text output.
Referenced by ActionExtension(), initResources(), and ~ActionExtension().