Eidolon
Public Member Functions | Public Attributes | Private Member Functions | List of all members
SegmentPlugin Class Reference
Inheritance diagram for SegmentPlugin:
Inheritance graph
Collaboration diagram for SegmentPlugin:
Collaboration graph

Public Member Functions

def __init__ (self)
 
def init (self, plugid, win, mgr)
 
def getIcon (self, obj)
 
def getMenu (self, obj)
 
def getSegFilename (self, isOpen=True)
 
def getSegObjectWidget (self, obj)
 
def objectMenuItem (self, obj, item)
 
def createObjPropBox (self, obj)
 
def updateObjPropBox (self, obj, prop)
 
def acceptFile (self, filename)
 
def checkFileOverwrite (self, obj, dirpath, name=None)
 
def renameObjFiles (self, obj, oldname, overwrite=False)
 
def getObjFiles (self, obj)
 
def copyObjFiles (self, obj, sdir, overwrite=False)
 
def getScriptCode (self, obj, kwargs)
 
def createSegmentObject (self, filename, name, stype)
 
def createRepr (self, obj, reprtype, refine=0, kwargs)
 
def getSegObjectDock (self, obj, w=400, h=400)
 
def loadSegObject (self, filename, name=None)
 
def loadObject (self, filename, name=None, kwargs)
 
def saveObject (self, obj, path, overwrite=False, setFilenames=False, kwargs)
 
def createHemisphereMesh (self, segobj, name, refine, reinterpolateVal=20, calcAHA=False, isVolume=False, inner=True, plugin=None)
 
def createImageMask (self, segobj, name, template, labelfunc='1', refine=1, elemtype=None, task=None)
 
def cropImageBySegment (self, obj, segobj, margin, task=None)
 
def createSegObjectFromMask (self, name, stype, mask, numctrls, innerseg, minSegSize=100, maskindex=0, task=None)
 
- Public Member Functions inherited from ScenePlugin
def __init__ (self, name)
 
def init (self, plugid, win, mgr)
 
def cleanup (self)
 
def findObject (self, name, assertFound=True)
 
def removeFilesTask (self, fileglob)
 
def getScriptCode (self, obj, kwargs)
 
def getIcon (self, obj)
 
def getMenu (self, obj)
 
def getHelp (self)
 
def acceptFile (self, filename)
 
def loadObject (self, filename, name=None, kwargs)
 
def saveObject (self, obj, path, overwrite=False, setFilenames=False, kwargs)
 
def checkFileOverwrite (self, obj, dirpath, name=None)
 
def getObjFiles (self, obj)
 
def renameObjFiles (self, obj, oldname, overwrite=False)
 
def copyObjFiles (self, obj, sdir, overwrite=False)
 
def removeObject (self, obj)
 
def createRepr (self, obj, reprtype, kwargs)
 
def getReprParams (self, obj, reprtype)
 
def getReprParamHelp (self, obj, reprtype)
 
def getReprTypes (self, obj)
 
def createHandles (self, rep, kwargs)
 
def updateObjPropBox (self, obj, prop)
 
def updateReprPropBox (self, rep, prop)
 
def createObjPropBox (self, obj)
 
def createReprPropBox (self, rep)
 
def addSceneObject (self, obj)
 
def addSceneObjectRepr (self, rep)
 
def applyMaterial (self, rep, mat, kwargs)
 
def objectMenuItem (self, obj, item)
 

Public Attributes

 objcount
 
 SegmentTypes
 
 dockmap
 
- Public Attributes inherited from ScenePlugin
 plugid
 
 win
 
 mgr
 
 name
 

Private Member Functions

def _importSeg (self)
 
def _createSeg (self)
 
def _createContoursButton (self, prop, obj)
 
def _generateMeshButton (self, prop, obj)
 
def _generateMaskButton (self, prop, obj)
 
def _cropImageButton (self, prop, obj)
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ _createContoursButton()

def _createContoursButton (   self,
  prop,
  obj 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _createSeg()

def _createSeg (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _cropImageButton()

def _cropImageButton (   self,
  prop,
  obj 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _generateMaskButton()

def _generateMaskButton (   self,
  prop,
  obj 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _generateMeshButton()

def _generateMeshButton (   self,
  prop,
  obj 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _importSeg()

def _importSeg (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ acceptFile()

def acceptFile (   self,
  filename 
)

◆ checkFileOverwrite()

def checkFileOverwrite (   self,
  obj,
  dirpath,
  name = None 
)
Here is the caller graph for this function:

◆ copyObjFiles()

def copyObjFiles (   self,
  obj,
  sdir,
  overwrite = False 
)

◆ createHemisphereMesh()

def createHemisphereMesh (   self,
  segobj,
  name,
  refine,
  reinterpolateVal = 20,
  calcAHA = False,
  isVolume = False,
  inner = True,
  plugin = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createImageMask()

def createImageMask (   self,
  segobj,
  name,
  template,
  labelfunc = '1',
  refine = 1,
  elemtype = None,
  task = None 
)
Create a mask image object from `segobj'. See generateImageMask() for description.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createObjPropBox()

def createObjPropBox (   self,
  obj 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRepr()

def createRepr (   self,
  obj,
  reprtype,
  refine = 0,
  kwargs 
)
Here is the call graph for this function:

◆ createSegmentObject()

def createSegmentObject (   self,
  filename,
  name,
  stype 
)
Here is the caller graph for this function:

◆ createSegObjectFromMask()

def createSegObjectFromMask (   self,
  name,
  stype,
  mask,
  numctrls,
  innerseg,
  minSegSize = 100,
  maskindex = 0,
  task = None 
)
Given a mask image `mask', calculate a segmentation with each contour having `numctrls' control points. The
name of the resulting object will be `name' or a modified form thereof acceptable as a filename. The `stype'
parameter is a member of SegmentTypes and specifies what type of segmentation this should be, if it equals LV
then each plane should have 2 contours for an inner and outer surface, otherwise one for the inner surface.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cropImageBySegment()

def cropImageBySegment (   self,
  obj,
  segobj,
  margin,
  task = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIcon()

def getIcon (   self,
  obj 
)

◆ getMenu()

def getMenu (   self,
  obj 
)
Here is the call graph for this function:

◆ getObjFiles()

def getObjFiles (   self,
  obj 
)
Here is the caller graph for this function:

◆ getScriptCode()

def getScriptCode (   self,
  obj,
  kwargs 
)

◆ getSegFilename()

def getSegFilename (   self,
  isOpen = True 
)
Here is the caller graph for this function:

◆ getSegObjectDock()

def getSegObjectDock (   self,
  obj,
  w = 400,
  h = 400 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSegObjectWidget()

def getSegObjectWidget (   self,
  obj 
)
Here is the call graph for this function:

◆ init()

def init (   self,
  plugid,
  win,
  mgr 
)
Here is the call graph for this function:

◆ loadObject()

def loadObject (   self,
  filename,
  name = None,
  kwargs 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadSegObject()

def loadSegObject (   self,
  filename,
  name = None 
)
Deprecated, for compatibility only.
Here is the call graph for this function:

◆ objectMenuItem()

def objectMenuItem (   self,
  obj,
  item 
)
Here is the caller graph for this function:

◆ renameObjFiles()

def renameObjFiles (   self,
  obj,
  oldname,
  overwrite = False 
)

◆ saveObject()

def saveObject (   self,
  obj,
  path,
  overwrite = False,
  setFilenames = False,
  kwargs 
)
Here is the caller graph for this function:

◆ updateObjPropBox()

def updateObjPropBox (   self,
  obj,
  prop 
)
Here is the caller graph for this function:

Member Data Documentation

◆ dockmap

dockmap

◆ objcount

objcount

◆ SegmentTypes

SegmentTypes

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