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

Public Member Functions

def __init__ (self, mgr, camera, parent=None)
 
def setSceneObject (self, sceneobj)
 
def updateSceneObject (self)
 
def save (self)
 
def setNumNodes (self, n)
 
def addMeasurement (self, mobj)
 
def createMeasurement (self, mtype, col, values, name=None, timesteps=None)
 
def getMeasurement (self, i)
 
def addPoint (self, point, col=None, name=None, timestep=None)
 
def addLine (self, start, end, col=None, name=None, timestep=None)
 
def addContour (self, nodes, col=None, name=None, timestep=None)
 
def setActiveObject (self, name)
 
def handleSelected (self, handle)
 
def getActiveIndex (self)
 
def removeHandle (self, index)
 
def removeHandles (self)
 
def updateView (self)
 
def mousePress (self, e)
 
def mouseRelease (self, e)
 
def mouseDrag (self, e, dx, dy)
 
def isVisible3D (self)
 
def setVisible3D (self, isVisible)
 
- Public Member Functions inherited from DrawLineMixin
def __init__ (self, matname='newLine', drawcolor=color(1, 0, 0))
 
def startLineDraw (self)
 
def fillLineFig (self)
 
def drawMousePress (self, e)
 
def drawMouseDrag (self, e, dx, dy)
 
def drawMouseRelease (self, e)
 
- Public Member Functions inherited from DrawContourMixin
def __init__ (self, numNodes, matname='newContour', drawcolor=color(1, 0, 0))
 
def startContourDraw (self)
 
def fillContourFig (self)
 
def drawMousePress (self, e)
 
def drawMouseDrag (self, e, dx, dy)
 
def drawMouseRelease (self, e)
 
- Public Member Functions inherited from Camera2DView
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

 plugin
 
 handlecol
 
 handleradius
 
 planeMargin
 
 lastUpdateTime
 
 sceneobj
 
 handleNames
 
 uiobj
 
 numNodes
 
- Public Attributes inherited from DrawLineMixin
 drawingLine
 
 lineStart
 
 lineEnd
 
 drawcolor
 
 lineMat
 
 lineFig
 
- Public Attributes inherited from DrawContourMixin
 numNodes
 
 drawingContour
 
 contour
 
 drawcolor
 
 contourMat
 
 contourFig
 
- Public Attributes inherited from Camera2DView
 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
 

Static Public Attributes

 measurementChanged = QtCore.pyqtSignal(int)
 
- Static Public Attributes inherited from BaseCamera2DWidget
tuple defaultQuad
 
tuple standardPlanes = ('XY','XZ','YZ')
 

Private Member Functions

def _selectObject (self)
 
def _addPointButton (self)
 
def _addLineButton (self)
 
def _addContourButton (self)
 
def _deleteObject (self)
 
def _setObjectPlane (self)
 
def _setStartTime (self)
 
def _cloneObject (self)
 
def _copySteps (self)
 
def _motionTrack (self)
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  mgr,
  camera,
  parent = None 
)

Member Function Documentation

◆ _addContourButton()

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

◆ _addLineButton()

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

◆ _addPointButton()

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

◆ _cloneObject()

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

◆ _copySteps()

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

◆ _deleteObject()

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

◆ _motionTrack()

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

◆ _selectObject()

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

◆ _setObjectPlane()

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

◆ _setStartTime()

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

◆ addContour()

def addContour (   self,
  nodes,
  col = None,
  name = None,
  timestep = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addLine()

def addLine (   self,
  start,
  end,
  col = None,
  name = None,
  timestep = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addMeasurement()

def addMeasurement (   self,
  mobj 
)
Add the Measurement object `mobj' to the list of measurements and create an appropriate handle.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addPoint()

def addPoint (   self,
  point,
  col = None,
  name = None,
  timestep = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createMeasurement()

def createMeasurement (   self,
  mtype,
  col,
  values,
  name = None,
  timesteps = None 
)
Create and add a new Measurement object of type `mtype', color `col', with points `values'.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getActiveIndex()

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

◆ getMeasurement()

def getMeasurement (   self,
  i 
)

◆ handleSelected()

def handleSelected (   self,
  handle 
)
Here is the call graph for this function:

◆ isVisible3D()

def isVisible3D (   self)
Here is the caller graph for this function:

◆ mouseDrag()

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

◆ mousePress()

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

◆ mouseRelease()

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

◆ removeHandle()

def removeHandle (   self,
  index 
)
Here is the caller graph for this function:

◆ removeHandles()

def removeHandles (   self)

◆ save()

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

◆ setActiveObject()

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

◆ setNumNodes()

def setNumNodes (   self,
  n 
)
Here is the caller graph for this function:

◆ setSceneObject()

def setSceneObject (   self,
  sceneobj 
)
Here is the call graph for this function:

◆ setVisible3D()

def setVisible3D (   self,
  isVisible 
)

◆ updateSceneObject()

def updateSceneObject (   self)
Here is the caller graph for this function:

◆ updateView()

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

Member Data Documentation

◆ handlecol

handlecol

◆ handleNames

handleNames

◆ handleradius

handleradius

◆ lastUpdateTime

lastUpdateTime

◆ measurementChanged

measurementChanged = QtCore.pyqtSignal(int)
static

◆ numNodes

numNodes

◆ planeMargin

planeMargin

◆ plugin

plugin

◆ sceneobj

sceneobj

◆ uiobj

uiobj

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