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

Public Member Functions

def __init__ (self, mgr, camera, parent=None)
 
def parentClosed (self, e)
 
def getSecondaryNames (self)
 
def setSourceName (self, name)
 
def setPlaneName (self, plane)
 
def setSliceWidth (self, width)
 
def setLineWidth (self, width)
 
def setImageStackPosition (self, val)
 
def setSecondary (self, name, isVisible)
 
def updateUI (self, _=None)
 
def mouseDoubleClick (self, e)
 
def mouseWheelMove (self, e)
 
def keyPress (self, e)
 
- Public Member Functions inherited from Draw2DView
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 Member Functions inherited from BaseCamera2DWidget
def __init__ (self, mgr, camera, indicatorCol=color(1, 1, 1, 0.25), parent=None)
 
def getImageStackPosition (self)
 
def getImageStackMax (self)
 
def getSecondaryNames (self)
 
def getObjectNames (self)
 
def getImageXiPosition (self)
 
def mousePress (self, e)
 
def mouseDrag (self, e, dx, dy)
 
def mouseRelease (self, e)
 
def parentClosed (self, e)
 
def fillImage (self, img)
 
def isStdPlaneName (self, name)
 
def calculateViewPlane (self, reptrans, planename=None, imgxi=0)
 
def createFigure (self, name, ftype=FT_TRILIST, is2DOnly=True)
 
def createMaterial (self, name, useLighting=False, useVertexColor=True)
 
def createTexture (self, name, width, height, format)
 
def addHandle (self, handle)
 
def removeHandle (self, index)
 
def removeHandles (self)
 
def getHandle (self, index)
 
def getSelectedHandle (self)
 
def selectHandleScreenCoord (self, x, y)
 
def deselectHandles (self)
 
def handleSelected (self, handle)
 
def getObjFigures (self, name, numfigs=1, ftype=FT_TRILIST)
 
def retainObjFigures (self, names)
 
def setObjPlane (self, name, planetrans)
 
def setFigsVisible (self, name, vis)
 
def setPlaneIndicator (self, obj, planetrans)
 
def setIndicatorVisible (self, visible)
 
def getBBTransform (self)
 
def getWorldPosition (self, x, y, isAbsolute=True)
 
def getScreenPosition (self, pos)
 
def getOrthoPosition (self, pos)
 
def getScreenOrthoPosition (self, x, y, isAbsolute=True)
 
def getImagePosition (self, x, y)
 
def setFigTransforms (self)
 
def updateView (self)
 
- Public Member Functions inherited from Base2DWidget
def __init__ (self, parent=None)
 
def modifyDrawWidget (self, drawWidget)
 
def updateView (self)
 
def fillImage (self, img)
 
def mousePress (self, e)
 
def mouseRelease (self, e)
 
def mouseDrag (self, e, dx, dy)
 
def mouseWheelMove (self, e)
 
def mouseDoubleClick (self, e)
 
def keyPress (self, e)
 
def keyRelease (self, e)
 
def parentClosed (self, e)
 
def getDrawDims (self)
 
def getBoxFitScale (self, w, h)
 

Public Attributes

 numVolSteps
 
 sourceName
 
 planeName
 
 slicewidth
 
 linewidth
 
- Public Attributes inherited from Draw2DView
 secondsSelected
 
 secondsMenu
 
- Public Attributes inherited from BaseCamera2DWidget
 mgr
 
 camera
 
 sourceName
 
 planeName
 
 scroll
 
 zoom
 
 viewplane
 
 objFigMap
 
 handles
 
 slicewidth
 
 linewidth
 
 planeShift
 
 sceneBB
 
 indicatorCol
 
 indicatorMaterial
 
 indicatorTrans
 
 indicatorPlane
 
 indicatorVisible
 
- Public Attributes inherited from Base2DWidget
 imgFormat
 
 img
 
 prevX
 
 prevY
 

Private Member Functions

def _updateUIDelay (self)
 

Additional Inherited Members

- Static Public Attributes inherited from BaseCamera2DWidget
tuple defaultQuad
 
tuple standardPlanes = ('XY','XZ','YZ')
 

Detailed Description

The default 2D view widget. It primarily provides the code for linking the UI in Draw2DView to the actual rendering
code in BaseCamera2DWidget. It calls modifyDrawWidget() to associate the drawing logic with the UI logic. This widget
should be the base for any other 2D drawing widgets using or extending the base UI element, otherwise inherit from
BaseCamera2DWidget and define a different UI which has a widget modifyDrawWidget() can be called with.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  mgr,
  camera,
  parent = None 
)
Here is the call graph for this function:

Member Function Documentation

◆ _updateUIDelay()

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

◆ getSecondaryNames()

def getSecondaryNames (   self)

◆ keyPress()

def keyPress (   self,
  e 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseDoubleClick()

def mouseDoubleClick (   self,
  e 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseWheelMove()

def mouseWheelMove (   self,
  e 
)
Need to override mouseWheelMove() since it's inherited twice and the one from Draw2DView is what should be called.
Here is the caller graph for this function:

◆ parentClosed()

def parentClosed (   self,
  e 
)
Here is the call graph for this function:

◆ setImageStackPosition()

def setImageStackPosition (   self,
  val 
)
Here is the caller graph for this function:

◆ setLineWidth()

def setLineWidth (   self,
  width 
)

◆ setPlaneName()

def setPlaneName (   self,
  plane 
)

◆ setSecondary()

def setSecondary (   self,
  name,
  isVisible 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSliceWidth()

def setSliceWidth (   self,
  width 
)

◆ setSourceName()

def setSourceName (   self,
  name 
)
Here is the call graph for this function:

◆ updateUI()

def updateUI (   self,
  _ = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ linewidth

linewidth

◆ numVolSteps

numVolSteps

◆ planeName

planeName

◆ slicewidth

slicewidth

◆ sourceName

sourceName

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