![]() |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
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. More...
#include <ActionExtension.h>
Inherits QObject.
Inherited by ApplicationActionExtension, ArbitrarySliceExtension, BasicMeshExtension, BasicTopologyExtension, BoxVOIExtension, FrameEditionExtension, ImageAcquisitionActionExtension, ImageLutExtension, ITKFiltersExtension, ITKSegmentationExtension, MeshProcessingExtension, MMLActionExtension, MultiPickingExtension, PixelColorChangerExtension, PMLActionExtension, ReconstructionExtension, ReorientImageExtension, ResampleExtension, ShowIn3DExtension, and VolumeRenderingExtension.
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 {nullptr} |
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:
|
inlineprotected |
constructor
|
override |
destructor
References actions.
const camitk::ActionList & camitk::ActionExtension::getActions | ( | ) |
get the list of actions registered y this extension
Referenced by camitk::Application::registerAllActions(), and camitk::Application::unregisterAllActions().
|
pure virtual |
returns the action extension small description (to be overriden in your ActionExtension)
Implemented in ApplicationActionExtension, MMLActionExtension, BasicTopologyExtension, ReconstructionExtension, MeshProcessingExtension, BasicMeshExtension, ImageLutExtension, ImageAcquisitionActionExtension, BoxVOIExtension, MultiPickingExtension, VolumeRenderingExtension, ITKFiltersExtension, ITKSegmentationExtension, ShowIn3DExtension, PixelColorChangerExtension, ArbitrarySliceExtension, PMLActionExtension, FrameEditionExtension, ResampleExtension, and ReorientImageExtension.
|
inline |
get the file path (location of the .dll/.so/.dylib) of this plugin
|
pure virtual |
returns the action extension name (to be overriden in your ActionExtension)
Implemented in ApplicationActionExtension, MMLActionExtension, BasicTopologyExtension, ReconstructionExtension, MeshProcessingExtension, BasicMeshExtension, ImageLutExtension, ImageAcquisitionActionExtension, BoxVOIExtension, MultiPickingExtension, VolumeRenderingExtension, ITKFiltersExtension, ITKSegmentationExtension, ShowIn3DExtension, PixelColorChangerExtension, ArbitrarySliceExtension, PMLActionExtension, FrameEditionExtension, ResampleExtension, and ReorientImageExtension.
Referenced by ImpMainWindow::initActions().
|
pure virtual |
this method should just call registerNewAction(MyAction) for any MyAction class you need to register by this extension
Implemented in ImageAcquisitionActionExtension, ITKFiltersExtension, BoxVOIExtension, MultiPickingExtension, ITKSegmentationExtension, ShowIn3DExtension, VolumeRenderingExtension, ArbitrarySliceExtension, ApplicationActionExtension, MMLActionExtension, BasicTopologyExtension, PMLActionExtension, FrameEditionExtension, ResampleExtension, ReconstructionExtension, ReorientImageExtension, MeshProcessingExtension, BasicMeshExtension, ImageLutExtension, and PixelColorChangerExtension.
void camitk::ActionExtension::initResources | ( | ) |
Load, for the selected langage (asked to the Application), the associated .qm file.
References actions, camitk::Action::getName(), and translator.
|
protected |
register an action instance
|
inline |
set the file path (once loaded as a dynamic library)
|
protected |
the list of actions
Referenced by initResources(), and ~ActionExtension().
|
private |
the shared lib (.so, .dll or .dylib) used to instantiate the ComponentExtension subclass instance
|
private |
Provide internationalization support for text output.
Referenced by initResources().