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

Public Member Functions

def __init__ (self, parent=None)
 
def fillSecondsMenu (self, seconds)
 
def mouseWheelMove (self, e)
 
def setSourceName (self, name)
 
def setPlaneName (self, plane)
 
def setSliceWidth (self, width)
 
def setLineWidth (self, width)
 
def setSecondary (self, name, isVisible)
 
def setImageStackMax (self, maxval)
 
def setPlaneBoxVisible (self, vis)
 
def setImageStackPosition (self, val)
 
def getImageStackPosition (self)
 
def getImageStackMax (self)
 
def setLeftSideVisible (self, isVisible)
 
def isLeftSideVisible (self)
 

Public Attributes

 secondsSelected
 
 secondsMenu
 

Detailed Description

UI class derived from the generated form, it defines callbacks for UI operations and connects appropriate sockets.
This class implements UI behaviour only and is meant to be used with Base2DWidget in a subtype which inherits both.
The methods setSourceName() and setPlaneName() must be overriddent.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  parent = None 
)

Member Function Documentation

◆ fillSecondsMenu()

def fillSecondsMenu (   self,
  seconds 
)
Fill the selection menu with the list of named secondary objects `seconds.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getImageStackMax()

def getImageStackMax (   self)
Get the maximum stack index.
Here is the caller graph for this function:

◆ getImageStackPosition()

def getImageStackPosition (   self)
Get the index in the image stack of the source object.
Here is the caller graph for this function:

◆ isLeftSideVisible()

def isLeftSideVisible (   self)

◆ mouseWheelMove()

def mouseWheelMove (   self,
  e 
)
Move through the image stack when the mouse wheel moves with the cursor over the 2D drawing widget.
Here is the call graph for this function:

◆ setImageStackMax()

def setImageStackMax (   self,
  maxval 
)
Set the maximum stack index to `maxval' and update the UI, passing a value of 0 hides the image slider UI.
Here is the caller graph for this function:

◆ setImageStackPosition()

def setImageStackPosition (   self,
  val 
)
Set the position index within the image stack of the source object to `val', callable by clients or through
the UI but must be called in the main thread.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLeftSideVisible()

def setLeftSideVisible (   self,
  isVisible 
)

◆ setLineWidth()

def setLineWidth (   self,
  width 
)
Set the width of drawn lines representing sliced geometry, callable by clients or through the UI.
Here is the call graph for this function:

◆ setPlaneBoxVisible()

def setPlaneBoxVisible (   self,
  vis 
)
Set the visibility of the plane indicator UI.
Here is the caller graph for this function:

◆ setPlaneName()

def setPlaneName (   self,
  plane 
)
Called when the view plane's name has been set to `plane', in which case the view should be moved. This can
be called by clients of this object or through user action by changing the index of self.planeBox.

◆ setSecondary()

def setSecondary (   self,
  name,
  isVisible 
)
Set the visibility of the secondary object named by `name' to `isVisible'. This can be called by clients of the
object or through user action by changing the selections in self.secondsMenu.
Here is the caller graph for this function:

◆ setSliceWidth()

def setSliceWidth (   self,
  width 
)
Set the width of slices viewed at oblique angles, callable by clients or through the UI.

◆ setSourceName()

def setSourceName (   self,
  name 
)
Called when the source object's name has been set to `name', in which case the source data should be changed.
This can be called by clients of this object or through user action by changing the index of self.sourceBox.

Member Data Documentation

◆ secondsMenu

secondsMenu

◆ secondsSelected

secondsSelected

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