arthropod_describer.tools package
Subpackages
Submodules
arthropod_describer.tools.brush module
- class Tool_Brush(state: State)[source]
Bases:
Tool
- property active: bool
- property cursor_image: QImage
- get_command(lab_img: LabelImg) Optional[CommandEntry] [source]
- get_label_changes(lab_img: LabelImg) List[LabelChange] [source]
- left_press(painter: QPainter, pos: QPoint, ctx: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- left_release(painter: QPainter, pos: QPoint, ctx: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- mouse_move(painter: QPainter, new_pos: QPoint, old_pos: QPoint, ctx: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- mouse_wheel(delta: int, painter: QPainter, pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- paint_on(canvas: QPaintDevice, rr, cc, pen: QPen, brush: QBrush, clip_mask: Optional[QRegion])[source]
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- property tool_name: str
- property viz_active: bool
arthropod_describer.tools.bucket module
- class Tool_Bucket(state: State)[source]
Bases:
Tool
- property active: bool
- property cursor_image: CursorShape'>]]
- left_release(painter: QPainter, pos: QPoint, ctx: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- property tool_name: str
arthropod_describer.tools.contour_features module
arthropod_describer.tools.knife module
- class Tool_Knife(state: State)[source]
Bases:
Tool
- property active: bool
- left_press(painter: QPainter, pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- left_release(painter: QPainter, pos: QPoint, ctx: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- mouse_move(painter: QPainter, new_pos: QPoint, old_pos: QPoint, ctx: EditContext) List[LabelChange] [source]
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- property tool_name: str
- property viz_active: bool
- draw_line(pos1: QPoint, pos2: QPoint, ctx: EditContext)[source]
arthropod_describer.tools.polygon module
- class Tool_Polygon(state: State, parent: Optional[QObject] = None)[source]
Bases:
Tool
- property active: bool
- left_press(painter: QPainter, pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- mouse_double_click(painter: QPainter, pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- mouse_move(painter: QPainter, new_pos: QPoint, old_pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- right_release(painter: QPainter, pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- property tool_name: str
- property viz_active: bool
- property viz_commands: List[Callable[[QPainter], None]]
arthropod_describer.tools.ruler module
- class Tool_Ruler(state: State)[source]
Bases:
Tool
- property active: bool
- right_press(painter: QPainter, pos: QPoint, context: EditContext) Tuple[Optional[CommandEntry], QRect] [source]
- staticMetaObject = <PySide2.QtCore.QMetaObject object>
- property tool_name: str
- property value_storage: Optional[Any]
- property viz_active: bool
- property viz_commands: List[Callable[[QPainter], None]]