![]() |
Computer Assited Medical Intervention Tool Kit
|
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... | |
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... | |
virtual | ~ActionExtension () |
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... | |
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:
For an example of an extension registering 3 new actions
|
inlineprotected |
constructor
|
virtual |
destructor
References actions.
const camitk::ActionList & camitk::ActionExtension::getActions | ( | ) |
get the list of actions registered y this extension
References actions.
Referenced by camitk::Core::getConfig(), camitk::Application::registerAllActions(), and camitk::ExtensionManager::unloadActionExtension().
|
pure virtual |
returns the action extension small description (to be overriden in your ActionExtension)
Implemented in BasicTopologyExtension, ApplicationActionExtension, BasicMeshExtension, MMLActionExtension, ReconstructionExtension, MeshProcessingExtension, MultiPickingExtension, ImageLutExtension, VolumeRenderingExtension, ArbitrarySliceExtension, ITKFiltersExtension, ITKSegmentationExtension, and ShowIn3DExtension.
Referenced by camitk::Core::getConfig().
|
pure virtual |
returns the action extension name (to be overriden in your ActionExtension)
Implemented in BasicTopologyExtension, ApplicationActionExtension, BasicMeshExtension, MMLActionExtension, ReconstructionExtension, MeshProcessingExtension, ImageLutExtension, MultiPickingExtension, VolumeRenderingExtension, ArbitrarySliceExtension, ITKFiltersExtension, ITKSegmentationExtension, and ShowIn3DExtension.
Referenced by camitk::Core::getConfig(), and camitk::Action::getExtensionName().
|
pure virtual |
this method should just call registerNewAction(MyAction) for any MyAction class you need to register by this extension
Implemented in MultiPickingExtension, BasicTopologyExtension, ITKFiltersExtension, ApplicationActionExtension, ArbitrarySliceExtension, ITKSegmentationExtension, ShowIn3DExtension, VolumeRenderingExtension, BasicMeshExtension, MMLActionExtension, ReconstructionExtension, MeshProcessingExtension, and ImageLutExtension.
Referenced by camitk::ExtensionManager::loadActionExtension().
|
protected |
register an action instance
References actions.
|
protected |
the list of actions
Referenced by getActions(), registerAction(), and ~ActionExtension().