# DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/python/mod.rs
# Based on "crates/store/re_sdk_types/definitions/rerun/components/cell_size.fbs".

# You can extend this class by creating a "CellSizeExt" class in "cell_size_ext.py".

from __future__ import annotations

from .. import datatypes
from .._baseclasses import (
    ComponentBatchMixin,
    ComponentMixin,
)

__all__ = ["CellSize", "CellSizeBatch"]


class CellSize(datatypes.Float32, ComponentMixin):
    """
    **Component**: The metric size of one grid cell in local scene units.

    E.g. for 2D grid maps, this is the physical size represented by a single pixel or cell.
    """

    _BATCH_TYPE = None
    # You can define your own __init__ function as a member of CellSizeExt in cell_size_ext.py

    # Note: there are no fields here because CellSize delegates to datatypes.Float32


class CellSizeBatch(datatypes.Float32Batch, ComponentBatchMixin):
    _COMPONENT_TYPE: str = "rerun.components.CellSize"


# This is patched in late to avoid circular dependencies.
CellSize._BATCH_TYPE = CellSizeBatch  # type: ignore[assignment]
