radar.utils.plotter.geometry

Module Contents

Classes

GeometryInterface

Abstract base class defining the interface for geometry-related operations.

Geometry

A utility class for handling and visualizing spatial geometry data.

API

class radar.utils.plotter.geometry.GeometryInterface[source]

Bases: abc.ABC

Abstract base class defining the interface for geometry-related operations.

abstractmethod geometry() None[source]

Process or retrieve geometry data.

This method must be implemented by subclasses to define specific geometry behaviors.

__slots__ = ()
class radar.utils.plotter.geometry.Geometry[source]

A utility class for handling and visualizing spatial geometry data.

Attributes:

FIGURE_WIDTH (int): Default width of the generated Plotly figure in pixels. FIGURE_HEIGHT (int): Default height of the generated Plotly figure in pixels. DISPLAY_GRID_PIXELS (int): Pixel spacing configuration for the grid layout.

FIGURE_WIDTH = 800
FIGURE_HEIGHT = 800
DISPLAY_GRID_PIXELS = 100
classmethod _image(df: polars.DataFrame) None[source]

Generates and displays a symmetric square scatter plot of X and Y positions.

This method plots positional data from a Polars DataFrame, determines a symmetric bounding box based on the maximum data extent, and locks the aspect ratio to ensure accurate geometric scaling.

Args:
df (pl.DataFrame): The input DataFrame containing spatial coordinates.

Must contain columns defined by DataHeader.X_POS_M and DataHeader.Y_POS_M.

Raises:
ValueError: If the DataFrame is empty or if the min/max values for

the position coordinates cannot be calculated.