Coverage for openhcs/constants/streaming.py: 0.0%
12 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-04 02:09 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-04 02:09 +0000
1"""
2Enums for streaming backends and visualizers.
4This module provides type-safe enums for data types and shape types
5used in streaming backends and visualizers.
6"""
8from enum import Enum
11class StreamingDataType(Enum):
12 """Types of data that can be streamed to viewers."""
13 IMAGE = 'image'
14 SHAPES = 'shapes' # For Napari
15 ROIS = 'rois' # For Fiji
18class NapariShapeType(Enum):
19 """Napari shape types for ROI visualization."""
20 POLYGON = 'polygon'
21 ELLIPSE = 'ellipse'
22 POINT = 'point'
23 LINE = 'line'
24 PATH = 'path'
25 RECTANGLE = 'rectangle'