|
Eidolon
|


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 | |
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.
| 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'.
| 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.


| def getPoint | ( | self, | |
| name | |||
| ) |

| def setPoint | ( | self, | |
| name, | |||
| pt | |||
| ) |
| def setPointMargin | ( | self, | |
| margin | |||
| ) |

| def setPointsVisible | ( | self, | |
| isVisible | |||
| ) |
| def setPointsVisible3D | ( | self, | |
| isVisible | |||
| ) |

| def updateView | ( | self | ) |

| gridLayout |
| pointMap |
| ptBox |
1.8.13