Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryContributorFactory.h>
Static Public Member Functions | |
static SmartPointer< IContributor > | CreateContributor (const QSharedPointer< ctkPlugin > &contributor) |
static QSharedPointer< ctkPlugin > | Resolve (const SmartPointer< IContributor > &contributor) |
The contributor factory creates new registry contributors for use in the registry.
This class can not be extended or instantiated by clients.
This class is not intended to be instantiated by clients. This class is not intended to be subclassed by clients.
Definition at line 40 of file berryContributorFactory.h.
|
static |
Creates registry contributor object based on a Plugin. The plugin must not be null
.
contributor | plugin associated with the contribution |
Definition at line 26 of file berryContributorFactory.cpp.
|
static |
Returns the CTK plugin used to define this contributor.
The method may return null if the contributor is not based on a plugin, if the plugin can't be found, or if the plugin is presently unresolved or uninstalled.
contributor | plugin-based registry contributor |
Definition at line 47 of file berryContributorFactory.cpp.
References berry::SmartPointer< TObjectType >::Cast(), and berry::SmartPointer< TObjectType >::IsNull().