An ActionExtension that can be created on the fly from a camitk extension file. More...
#include <HotPlugActionExtension.h>
Inheritance diagram for camitk::HotPlugActionExtension:
Collaboration diagram for camitk::HotPlugActionExtension:Public Member Functions | |
| virtual int | declaredActionCount () const |
| virtual QString | getDescription () const override |
| returns the action extension small description (to be overriden in your ActionExtension) | |
| virtual QString | getName () const override |
| returns the action extension name (to be overriden in your ActionExtension) | |
| virtual QString | getProgrammingLanguage () const =0 |
| get the programming language of this extension (either C++ or Python) | |
| virtual void | init () override |
| This calls initActions, but ignores the return value. | |
| virtual bool | initActions (int progressMinimum=0, int progressMaximum=100)=0 |
| instantiate all the actions (might generate some warnings) | |
| bool | isSuccessfullyLoaded () |
| ~HotPlugActionExtension () override | |
| destructor | |
Public Member Functions inherited from camitk::ActionExtension | |
| const ActionList & | getActions () |
| get the list of actions registered y this extension | |
| 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 | |
| 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 | |
Static Public Member Functions | |
| static HotPlugActionExtension * | newHotPlugActionExtension (const QString &camitkFilePath, bool forceVerifyOrRebuild) |
Protected Member Functions | |
| HotPlugActionExtension (const QString &camitkFilePath) | |
| constructor | |
Protected Member Functions inherited from camitk::ActionExtension | |
| ActionExtension () | |
| constructor | |
| void | registerAction (Action *) |
| register an action instance | |
Protected Attributes | |
| QString | description |
| description in few word/sentences | |
| QString | name |
| short name of the extension (as it will displayed in the Dev Studio menu for instance) | |
| bool | successfullyLoaded |
| true if the extension as well ass all the actions libraries were loaded successfully | |
Protected Attributes inherited from camitk::ActionExtension | |
| ActionList | actions |
| the list of actions | |
An ActionExtension that can be created on the fly from a camitk extension file.
Note: the location of the extension is the path to the camitk extension file. Use getLocation() to get the file path of the CamiTK extension file that generated this extension.
|
protected |
constructor
References description, CamiTKExtensionModel::getModel(), VariantDataModel::getValue(), name, camitk::ActionExtension::setLocation(), successfullyLoaded, and TransformEngine::transformToString().
Here is the call graph for this function:
|
override |
destructor
|
virtual |
References camitk::ActionExtension::getLocation(), CamiTKExtensionModel::getModel(), and VariantDataModel::size().
Referenced by camitk::HotPlugExtensionManager::load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
returns the action extension small description (to be overriden in your ActionExtension)
Implements camitk::ActionExtension.
References description.
|
overridevirtual |
returns the action extension name (to be overriden in your ActionExtension)
Implements camitk::ActionExtension.
References name.
|
pure virtual |
get the programming language of this extension (either C++ or Python)
Implemented in camitk::CppHotPlugActionExtension.
|
overridevirtual |
This calls initActions, but ignores the return value.
Should never be called directly.
Implements camitk::ActionExtension.
References initActions().
Referenced by camitk::CppHotPlugActionExtension::initActions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
instantiate all the actions (might generate some warnings)
| progressMinimum | is the current initial progress value |
| progressMaximum | is the maximum progress bar value to use when all actions are initialized |
Implemented in camitk::CppHotPlugActionExtension.
Referenced by init(), and camitk::HotPlugExtensionManager::load().
Here is the caller graph for this function:| bool camitk::HotPlugActionExtension::isSuccessfullyLoaded | ( | ) |
References successfullyLoaded.
|
static |
References CAMITK_WARNING_ALT, CamiTKExtensionModel::getModel(), VariantDataModel::isValid(), CamiTKExtensionModel::load(), and VariantDataModel::toString().
Referenced by camitk::HotPlugExtensionManager::load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
description in few word/sentences
Referenced by getDescription(), and HotPlugActionExtension().
|
protected |
short name of the extension (as it will displayed in the Dev Studio menu for instance)
Referenced by getName(), HotPlugActionExtension(), and camitk::CppHotPlugActionExtension::initActions().
|
protected |
true if the extension as well ass all the actions libraries were loaded successfully
Referenced by HotPlugActionExtension(), camitk::CppHotPlugActionExtension::initActions(), and isSuccessfullyLoaded().