hscmap.regions module¶
- class hscmap.regions.RegionManager(_w: hscmap.window.Window)[source]¶
Bases:
object
- Parameters:
_w (Window) –
- property members: List[RegionBase]¶
- new_text(*, position, text, color=None)[source]¶
- Parameters:
position (Tuple[float, float]) –
text (str) –
color (List[float] | None) –
- new_circle(*, center, radius, name='', color=None)[source]¶
- Parameters:
center (Tuple[float, float]) –
radius (float) –
color (List[float] | None) –
- new_line(*, start, end, name='', color=None)[source]¶
- Parameters:
start (Tuple[float, float]) –
end (Tuple[float, float]) –
color (List[float] | None) –
- class hscmap.regions.RegionBase(id: str, _w: hscmap.window.Window)[source]¶
Bases:
object
- Parameters:
id (str) –
_w (Window) –
- id: str¶
- property visible: bool¶
- property show_label: bool¶
- property name: str¶
- property color: List[float]¶
- class hscmap.regions.TextRegion(id, _w)[source]¶
Bases:
RegionBase
- Parameters:
id (str) –
_w (Window) –
- property text: str¶
- property position: Tuple[float, float]¶
- class hscmap.regions.CircleRegion(id, _w)[source]¶
Bases:
RegionBase
- Parameters:
id (str) –
_w (Window) –
- property center: Tuple[float, float]¶
- property radius: float¶
- class hscmap.regions.LinearRegion(id, _w)[source]¶
Bases:
RegionBase
- Parameters:
id (str) –
_w (Window) –
- property start: Tuple[float, float]¶
- property end: Tuple[float, float]¶
- class hscmap.regions.RectangularRegion(id, _w)[source]¶
Bases:
RegionBase
- Parameters:
id (str) –
_w (Window) –
- property min_ra: float¶
- property max_ra: float¶
- property min_dec: float¶
- property max_dec: float¶
- class hscmap.regions.ShapeRegion(id, _w)[source]¶
Bases:
RegionBase
- Parameters:
id (str) –
_w (Window) –
- property paths: List[Path]¶