Trait libreda_db::layout::traits::RegionSearch
source · [−]pub trait RegionSearch: LayoutBase {
fn each_shape_in_region_per_layer(
&self,
cell: &Self::CellId,
layer_id: &Self::LayerId,
search_region: &Rect<Self::Coord>
) -> Box<dyn Iterator<Item = Self::ShapeId>>;
fn each_cell_instance_in_region(
&self,
cell: &Self::CellId,
search_region: &Rect<Self::Coord>
) -> Box<dyn Iterator<Item = Self::CellInstId>>;
fn each_shape_in_region(
&self,
cell: &Self::CellId,
layer_id: &Self::LayerId,
search_region: &Rect<Self::Coord>
) -> Box<dyn Iterator<Item = Self::ShapeId>> { ... }
}Expand description
Access shapes and instances in a layout based on their locations.
Required Methods
Iterate over the IDs of all shapes (on a specific layer) whose bounding-box overlaps with the search_region.
fn each_cell_instance_in_region(
&self,
cell: &Self::CellId,
search_region: &Rect<Self::Coord>
) -> Box<dyn Iterator<Item = Self::CellInstId>>
fn each_cell_instance_in_region(
&self,
cell: &Self::CellId,
search_region: &Rect<Self::Coord>
) -> Box<dyn Iterator<Item = Self::CellInstId>>
Iterate over the IDs of all instances within the cell whose bounding-box overlaps with the search_region.