#include <Modules/Loadable/Segmentations/SubjectHierarchyPlugins/qSlicerSubjectHierarchySegmentsPlugin.h>
|
QScopedPointer< qSlicerSubjectHierarchySegmentsPluginPrivate > | d_ptr |
|
QString | m_Name |
| Name of the plugin. More...
|
|
◆ Superclass
◆ qSlicerSubjectHierarchySegmentsPlugin()
qSlicerSubjectHierarchySegmentsPlugin::qSlicerSubjectHierarchySegmentsPlugin |
( |
QObject * |
parent = NULL | ) |
|
◆ ~qSlicerSubjectHierarchySegmentsPlugin()
virtual qSlicerSubjectHierarchySegmentsPlugin::~qSlicerSubjectHierarchySegmentsPlugin |
( |
| ) |
|
|
virtual |
◆ canOwnSubjectHierarchyItem()
virtual double qSlicerSubjectHierarchySegmentsPlugin::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.
◆ canReparentItemInsideSubjectHierarchy()
virtual double qSlicerSubjectHierarchySegmentsPlugin::canReparentItemInsideSubjectHierarchy |
( |
vtkIdType |
itemID, |
|
|
vtkIdType |
parentItemID |
|
) |
| const |
|
virtual |
Determines if a subject hierarchy item can be reparented in the hierarchy using the current plugin, and gets a confidence value for the reparented item. Most plugins do not perform steps additional to the default, so the default implementation returns a 0 confidence value, which can be overridden in plugins that do handle special cases.
- Parameters
-
itemID | Item to be reparented in the hierarchy |
parentItemID | Prospective parent of the item to reparent. |
- 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
Reimplemented from qSlicerSubjectHierarchyAbstractPlugin.
◆ editProperties()
virtual void qSlicerSubjectHierarchySegmentsPlugin::editProperties |
( |
vtkIdType |
itemID | ) |
|
|
virtual |
◆ getDisplayVisibility()
virtual int qSlicerSubjectHierarchySegmentsPlugin::getDisplayVisibility |
( |
vtkIdType |
itemID | ) |
const |
|
virtual |
◆ helpText()
virtual const QString qSlicerSubjectHierarchySegmentsPlugin::helpText |
( |
| ) |
const |
|
virtual |
◆ icon()
virtual QIcon qSlicerSubjectHierarchySegmentsPlugin::icon |
( |
vtkIdType |
itemID | ) |
|
|
virtual |
◆ reparentItemInsideSubjectHierarchy()
virtual bool qSlicerSubjectHierarchySegmentsPlugin::reparentItemInsideSubjectHierarchy |
( |
vtkIdType |
itemID, |
|
|
vtkIdType |
parentItemID |
|
) |
| |
|
virtual |
Reparent an item that was already in the subject hierarchy under a new parent.
- Returns
- True if reparented successfully, false otherwise
Reimplemented from qSlicerSubjectHierarchyAbstractPlugin.
◆ roleForPlugin()
virtual Q_INVOKABLE const QString qSlicerSubjectHierarchySegmentsPlugin::roleForPlugin |
( |
| ) |
const |
|
virtual |
◆ setDisplayVisibility()
virtual void qSlicerSubjectHierarchySegmentsPlugin::setDisplayVisibility |
( |
vtkIdType |
itemID, |
|
|
int |
visible |
|
) |
| |
|
virtual |
◆ showAllSegments
void qSlicerSubjectHierarchySegmentsPlugin::showAllSegments |
( |
| ) |
|
|
protectedslot |
Show all segments in segmentation.
◆ showOnlyCurrentSegment
void qSlicerSubjectHierarchySegmentsPlugin::showOnlyCurrentSegment |
( |
| ) |
|
|
protectedslot |
Show only selected segment, hide all others in segmentation.
◆ showVisibilityContextMenuActionsForItem()
virtual void qSlicerSubjectHierarchySegmentsPlugin::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.
◆ tooltip()
virtual QString qSlicerSubjectHierarchySegmentsPlugin::tooltip |
( |
vtkIdType |
itemID | ) |
const |
|
virtual |
◆ visibilityContextMenuActions()
virtual QList<QAction*> qSlicerSubjectHierarchySegmentsPlugin::visibilityContextMenuActions |
( |
| ) |
const |
|
virtual |
◆ visibilityIcon()
virtual QIcon qSlicerSubjectHierarchySegmentsPlugin::visibilityIcon |
( |
int |
visible | ) |
|
|
virtual |
◆ d_ptr
QScopedPointer<qSlicerSubjectHierarchySegmentsPluginPrivate> qSlicerSubjectHierarchySegmentsPlugin::d_ptr |
|
protected |
The documentation for this class was generated from the following file: