Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Member Functions | Public Attributes
Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin Class Reference

Public Member Functions

def __init__ (self, scriptedPlugin)
 
def register (self)
 

Public Attributes

 scriptedPlugin
 

Detailed Description

Abstract scripted subject hierarchy plugin for python scripted plugins

    USAGE: Instantiate scripted subject hierarchy plugin adaptor class from
      module (e.g. from setup function), and set python source:

    from SubjectHierarchyPlugins import *
    ...
    class [Module]Widget(ScriptedLoadableModuleWidget):
      ...
      def setup(self):
        ...
        scriptedPlugin = slicer.qSlicerSubjectHierarchyScriptedPlugin(None)
        scriptedPlugin.setPythonSource(VolumeClipSubjectHierarchyPlugin.filePath)
        ...

    Example can be found here: https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#subject-hierarchy-plugin-offering-view-context-menu-action

Definition at line 10 of file AbstractScriptedSubjectHierarchyPlugin.py.

Constructor & Destructor Documentation

◆ __init__()

def Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin.__init__ (   self,
  scriptedPlugin 
)

Definition at line 29 of file AbstractScriptedSubjectHierarchyPlugin.py.

Member Function Documentation

◆ register()

def Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin.register (   self)

Definition at line 35 of file AbstractScriptedSubjectHierarchyPlugin.py.

Member Data Documentation

◆ scriptedPlugin

Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin.scriptedPlugin

Definition at line 30 of file AbstractScriptedSubjectHierarchyPlugin.py.


The documentation for this class was generated from the following file: