Default Subject Hierarchy plugin to exercise features of the abstract plugin. This plugin must not be registered as this is the fall back plugin called when there is none found.
More...
#include <Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyDefaultPlugin.h>
|
QScopedPointer< qSlicerSubjectHierarchyDefaultPluginPrivate > | d_ptr |
|
QString | m_Name |
| Name of the plugin. More...
|
|
Default Subject Hierarchy plugin to exercise features of the abstract plugin. This plugin must not be registered as this is the fall back plugin called when there is none found.
Definition at line 40 of file qSlicerSubjectHierarchyDefaultPlugin.h.
◆ Superclass
◆ qSlicerSubjectHierarchyDefaultPlugin()
qSlicerSubjectHierarchyDefaultPlugin::qSlicerSubjectHierarchyDefaultPlugin |
( |
QObject * |
parent = NULL | ) |
|
◆ ~qSlicerSubjectHierarchyDefaultPlugin()
virtual qSlicerSubjectHierarchyDefaultPlugin::~qSlicerSubjectHierarchyDefaultPlugin |
( |
| ) |
|
|
virtual |
◆ canOwnSubjectHierarchyItem()
virtual double qSlicerSubjectHierarchyDefaultPlugin::canOwnSubjectHierarchyItem |
( |
vtkIdType |
itemID | ) |
const |
|
virtual |
Determines if the actual plugin can handle a subject hierarchy item. The plugin with the highest confidence number will "own" the item in the subject hierarchy (set icon, tooltip, set context menu etc.)
- Parameters
-
item | Item to handle in the subject hierarchy tree |
- Returns
- Floating point confidence number between 0 and 1, where 0 means that the plugin cannot handle the item, and 1 means that the plugin is the only one that can handle the item (by node type or identifier attribute)
Reimplemented from qSlicerSubjectHierarchyAbstractPlugin.
◆ helpText()
virtual const QString qSlicerSubjectHierarchyDefaultPlugin::helpText |
( |
| ) |
const |
|
virtual |
◆ hideAllChildren
void qSlicerSubjectHierarchyDefaultPlugin::hideAllChildren |
( |
| ) |
|
|
slot |
Hide all direct children of current item.
◆ icon()
virtual QIcon qSlicerSubjectHierarchyDefaultPlugin::icon |
( |
vtkIdType |
itemID | ) |
|
|
virtual |
◆ roleForPlugin()
virtual Q_INVOKABLE const QString qSlicerSubjectHierarchyDefaultPlugin::roleForPlugin |
( |
| ) |
const |
|
virtual |
◆ setDefaultVisibilityIcons()
void qSlicerSubjectHierarchyDefaultPlugin::setDefaultVisibilityIcons |
( |
QIcon |
visibleIcon, |
|
|
QIcon |
hiddenIcon, |
|
|
QIcon |
partiallyVisibleIcon |
|
) |
| |
Set default visibility icons owned by the scene model so that the default plugin can set them.
◆ showAllChildren
void qSlicerSubjectHierarchyDefaultPlugin::showAllChildren |
( |
| ) |
|
|
slot |
Show all direct children of current item.
◆ showVisibilityContextMenuActionsForItem()
virtual void qSlicerSubjectHierarchyDefaultPlugin::showVisibilityContextMenuActionsForItem |
( |
vtkIdType |
itemID | ) |
|
|
virtual |
Show visibility context menu actions valid for a given subject hierarchy item.
- Parameters
-
itemID | Subject Hierarchy item to show the visibility context menu items for |
Reimplemented from qSlicerSubjectHierarchyAbstractPlugin.
◆ toggleVisibility
void qSlicerSubjectHierarchyDefaultPlugin::toggleVisibility |
( |
| ) |
|
|
slot |
Toggle visibility for current item.
◆ visibilityContextMenuActions()
virtual QList<QAction*> qSlicerSubjectHierarchyDefaultPlugin::visibilityContextMenuActions |
( |
| ) |
const |
|
virtual |
◆ visibilityIcon()
virtual QIcon qSlicerSubjectHierarchyDefaultPlugin::visibilityIcon |
( |
int |
visible | ) |
|
|
virtual |
◆ d_ptr
QScopedPointer<qSlicerSubjectHierarchyDefaultPluginPrivate> qSlicerSubjectHierarchyDefaultPlugin::d_ptr |
|
protected |
The documentation for this class was generated from the following file: