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

Public Member Functions

def __init__ (self, layout, showBox=False, grouplabel='Landmark Points')
 
def addPoint (self, name, text, col)
 
def setPointsVisible (self, isVisible)
 
def setPointsVisible3D (self, isVisible)
 
def setPointMargin (self, margin)
 
def updateView (self)
 
def getPoint (self, name)
 
def setPoint (self, name, pt)
 

Public Attributes

 pointMap
 
 ptBox
 
 gridLayout
 

Detailed Description

Mixin for adding the functionality to choose a fixed number of named points on an image within a 2D window. Mix this
with a type implementing _repaintDelay(), getWorldPosition(), and addHandle() as expected in BaseCamera2DWidget.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  layout,
  showBox = False,
  grouplabel = 'Landmark Points' 
)
Initialize the mixin with `layout' being the layout object the UI for the points is added to with addWidget().
The `showBox' boolean indicates whether the box containing the UI is initially visible or not. The UI box will
have title `grouplabel'.

Member Function Documentation

◆ addPoint()

def addPoint (   self,
  name,
  text,
  col 
)
Add a positionable point called `name' with description `text' and color `col'. This will produce a quadruple
(handle,label,button,edit) containing the PointHandle2D, QLable, QPushButton, and QLineEdit used to represent
this point, storing it in self.pointMap keyed to name as well as returning it.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPoint()

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

◆ setPoint()

def setPoint (   self,
  name,
  pt 
)

◆ setPointMargin()

def setPointMargin (   self,
  margin 
)
Here is the caller graph for this function:

◆ setPointsVisible()

def setPointsVisible (   self,
  isVisible 
)

◆ setPointsVisible3D()

def setPointsVisible3D (   self,
  isVisible 
)
Here is the caller graph for this function:

◆ updateView()

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

Member Data Documentation

◆ gridLayout

gridLayout

◆ pointMap

pointMap

◆ ptBox

ptBox

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