MCPcopy Create free account

hub / github.com/dfyz/osm-renderer / functions

Functions284 in github.com/dfyz/osm-renderer

↓ 64 callersMethoditer
(&'a self)
src/geodata/reader.rs:375
↓ 18 callersMethodinsert
(&mut self, entity: &E, zoom: u8, styles: Vec<Arc<Style>>)
src/mapcss/style_cache.rs:61
↓ 18 callersFunctionmeasure
(name: impl Into<String>)
src/perf_stats/real_impl.rs:205
↓ 17 callersMethodread_mandatory_token
(&mut self)
src/mapcss/parser.rs:617
↓ 15 callersFunctionget_test_path
(relative_path: &[&str])
tests/common/mod.rs:3
↓ 13 callersMethodget
(&self, x: usize, y: usize)
src/draw/icon.rs:60
↓ 12 callersMethodadvance
(&mut self)
src/mapcss/token.rs:403
↓ 12 callersMethodlexer_error
(&self, message: Msg)
src/mapcss/token.rs:453
↓ 12 callersMethodnext
(&mut self)
src/mapcss/token.rs:464
↓ 12 callersMethodunexpected_token
(&self, token: &TokenWithPosition<'a>)
src/mapcss/parser.rs:643
↓ 11 callersMethodget
(&self, entity: &E, zoom: u8)
src/mapcss/style_cache.rs:54
↓ 10 callersMethodparse
(&mut self)
src/mapcss/parser.rs:244
↓ 9 callersFunctioncompare_with_josm_style
(our_style: &Style, way_is_closed: bool, josm_style_str: &str)
tests/test_mapcss_styler.rs:99
↓ 9 callersMethodexpect_simple_token
(&mut self, expected: &Token<'static>)
src/mapcss/parser.rs:631
↓ 9 callersMethodpeek_char
(&mut self)
src/mapcss/token.rs:407
↓ 9 callersMethodstorages
(&self)
src/geodata/reader.rs:249
↓ 9 callersMethodtags
(&self, ref_bytes: &'a [u8])
src/geodata/reader.rs:235
↓ 9 callersFunctionto_u32_safe
(num: usize)
src/geodata/saver.rs:228
↓ 7 callersMethodget_by_key
(&self, key: &str)
src/geodata/reader.rs:351
↓ 7 callersFunctionsave_refs
(writer: &mut dyn Write, refs: I, data: &mut BufferedData)
src/geodata/saver.rs:111
↓ 6 callersMethodadd
(&mut self, global_id: u64, entity: E)
src/geodata/importer.rs:58
↓ 6 callersMethoddist
(&self, other: &Point)
src/draw/point.rs:21
↓ 6 callersFunctionfail
()
src/bin/renderer.rs:6
↓ 6 callersMethodget_entities
(&self)
src/geodata/importer.rs:68
↓ 6 callersMethodget_node
(&'a self, idx: usize)
src/geodata/reader.rs:182
↓ 6 callersMethodget_object
(&self, idx: usize)
src/geodata/reader.rs:284
↓ 6 callersMethodparse_error
(&self, message: Msg, position: InputPosition)
src/mapcss/parser.rs:647
↓ 6 callersFunctiontest_rendering_zoom
(zoom: u8, min_x: u32, max_x: u32, min_y: u32, max_y: u32, scale: usize)
tests/test_rendering.rs:69
↓ 5 callersMethodcmp
(&self, other: &Self)
src/draw/labelable.rs:108
↓ 5 callersFunctionget_id
(parser: &mut Reader<R>, elem_name: &[u8], attrs: &mut Attributes)
src/geodata/importer.rs:472
↓ 5 callersMethodget_ints_by_ref
(&self, ref_bytes: &'a [u8])
src/geodata/reader.rs:242
↓ 5 callersFunctionget_required_attr
( parser: &mut Reader<R>, elem_name: &[u8], attrs: &mut Attributes<'a>, attr_name: &[u8], )
src/geodata/importer.rs:406
↓ 5 callersMethodnext_char
(&mut self)
src/mapcss/token.rs:399
↓ 5 callersMethodnext_char_with_pos
(&mut self)
src/mapcss/token.rs:384
↓ 5 callersMethodnode_count
(&self)
src/geodata/reader.rs:464
↓ 5 callersFunctionparse_file
(base_path: &Path, file_name: &str)
src/mapcss/parser.rs:223
↓ 5 callersMethodread_identifier
(&mut self)
src/mapcss/parser.rs:609
↓ 5 callersFunctionswap_x_y_if_needed
(a: T, b: T, should_swap: bool)
src/draw/line.rs:160
↓ 4 callersMethodbb
(&self)
src/draw/tile_pixels.rs:187
↓ 4 callersFunctionget_value_from_config
(config: &Ini, section: &str, name: &str)
src/bin/renderer.rs:10
↓ 4 callersFunctionparse_required_attr
( parser: &mut Reader<R>, elem_name: &[u8], attrs: &mut Attributes, attr_name: &[u8], )
src/geodata/importer.rs:425
↓ 4 callersFunctionprint_storage_stats
(entity_storages: &EntityStorages)
src/geodata/importer.rs:80
↓ 4 callersMethodstyle_entities
(&self, areas: I, zoom: u8, for_labels: bool)
src/mapcss/styler.rs:115
↓ 4 callersMethodtile_xy
(&self, idx: usize)
src/geodata/reader.rs:217
↓ 3 callersFunctioncoords_to_max_zoom_tile
# Examples ``` use renderer::tile::{coords_to_max_zoom_tile,Tile}; assert_eq!(coords_to_max_zoom_tile(&(55.747764f64, 37.437745f64)), Tile { zoom: 18,
src/tile.rs:30
↓ 3 callersFunctiondraw_line
Full-blown Bresenham with anti-aliasing and thick line support. Mostly inspired by http://kt8216.unixcab.org/murphy/index.html
src/draw/line.rs:65
↓ 3 callersFunctionfilter_entities_by_ids
(entities: impl Iterator<Item = E>, osm_ids: &Option<HashSet<u64>>)
src/geodata/reader.rs:254
↓ 3 callersMethodget_entities_in_tile_with_neighbors
(&self, t: &tile::Tile, osm_ids: &Option<HashSet<u64>>)
src/geodata/reader.rs:60
↓ 3 callersMethodget_kv
(&self, idx: usize)
src/geodata/reader.rs:379
↓ 3 callersMethodis_closed
(&self)
src/geodata/reader.rs:475
↓ 3 callersFunctioniterate_polygon
(poly: &[PointF])
src/draw/labelable.rs:332
↓ 3 callersMethodlabel_entity
( &self, entity: &E, style: &Style, tile: &Tile, scale: f64, i
src/draw/labeler.rs:16
↓ 3 callersMethodpolygon_count
(&self)
src/geodata/reader.rs:509
↓ 3 callersFunctionprocess_subelements
( entity_name: &[u8], entity: &mut E, entity_storages: &EntityStorages, subelement_processor:
src/geodata/importer.rs:301
↓ 3 callersMethodread_digit
(&mut self, radix: u32)
src/mapcss/token.rs:350
↓ 3 callersFunctionrgb_triples_to_png
(triples: &[(u8, u8, u8)], width: usize, height: usize)
src/draw/png_writer.rs:4
↓ 3 callersFunctionsave_tags
(writer: &mut dyn Write, tags: &BTreeMap<String, String>, data: &mut BufferedData)
src/geodata/saver.rs:124
↓ 3 callersMethodtile_local_ids
(&self, idx: usize, local_ids_idx: usize)
src/geodata/reader.rs:225
↓ 3 callersFunctiontok
(s: &str, expected: Vec<(Token<'_>, usize, usize)>)
src/mapcss/token.rs:525
↓ 3 callersMethodtranslate_id
(&self, global_id: u64)
src/geodata/importer.rs:64
↓ 3 callersFunctiontry_add_tag
( parser: &mut Reader<R>, elem_name: &[u8], attrs: &mut Attributes, tags: &mut RawTags, )
src/geodata/importer.rs:457
↓ 2 callersMethodadd_string
(&mut self, s: &str)
src/geodata/saver.rs:146
↓ 2 callersFunctionadd_to_connections
( connections: &mut SegmentConnections, pos1: NodePos, pos2: NodePos, segment_index: usize,
src/geodata/find_polygons.rs:84
↓ 2 callersMethodblend_pixel
(&mut self, idx: usize, for_labels: bool)
src/draw/tile_pixels.rs:205
↓ 2 callersMethodblend_unfinished_pixels
(&mut self, for_labels: bool)
src/draw/tile_pixels.rs:154
↓ 2 callersFunctioncan_be_in_at_directive
(ch: char)
src/mapcss/token.rs:489
↓ 2 callersFunctioncan_continue_identifier
(ch: char)
src/mapcss/token.rs:497
↓ 2 callersFunctioncan_start_identifier
(ch: char)
src/mapcss/token.rs:493
↓ 2 callersFunctioncompare_styled_entities
( (a, a_style): &(&E1, Arc<Style>), (b, b_style): &(&E2, Arc<Style>), for_labels: bool, )
src/mapcss/styler.rs:246
↓ 2 callersFunctioncomponent_to_opacity
(comp: u8)
src/draw/tile_pixels.rs:226
↓ 2 callersFunctioncoords_to_xy
Projects a given geopoint to Web Mercator coordinates for a given zoom level. # Examples ``` use renderer::tile::coords_to_xy; fn assert_floor_eq((x_a
src/tile.rs:88
↓ 2 callersFunctioncoords_to_xy_tile_relative
(coords: &C, tile: &Tile)
src/tile.rs:103
↓ 2 callersFunctioncross_product
(a: &PointF, b: &PointF)
src/draw/labelable.rs:340
↓ 2 callersMethoddraw_line
(&mut self, x0: f64, y0: f64, x1: f64, y1: f64)
src/draw/font/rasterizer.rs:27
↓ 2 callersFunctiondraw_lines
( points: PointPairIter<'_>, width: f64, color: &Color, opacity: f64, dashes: &Option<Vec<
src/draw/line.rs:9
↓ 2 callersMethoddraw_one_area
( &self, pixels: &mut TilePixels, tile: &'e Tile, scale: f64, area: &'
src/draw/drawer.rs:156
↓ 2 callersMethoddraw_to_pixels
( &self, entities: &OsmEntities<'_>, tile: &Tile, pixels: &mut TilePixels,
src/draw/drawer.rs:60
↓ 2 callersFunctionfill_contour
(points: PointPairIter<'_>, filler: &Filler<'_>, opacity: f64, pixels: &mut TilePixels)
src/draw/fill.rs:16
↓ 2 callersFunctionfind_polygons_in_multipolygon
( relation_id: u64, relation_segments: &[NodeDescPair], )
src/geodata/find_polygons.rs:32
↓ 2 callersFunctionfinish_tile
(total_stats: &mut PerfStats)
src/perf_stats/real_impl.rs:197
↓ 2 callersFunctionfrom_color_name
(name: &str)
src/mapcss/color.rs:8
↓ 2 callersFunctionget_angle
(points: &[Point], start_idx: usize)
src/draw/font/text_placer.rs:256
↓ 2 callersMethodget_entities_in_tile
(&'a self, t: &tile::Tile, entity_ids: &mut OsmEntityIds)
src/geodata/reader.rs:102
↓ 2 callersMethodget_kv_count
(&self)
src/geodata/reader.rs:396
↓ 2 callersFunctionget_label_position
(mut polygons: Polygons, scale: f64)
src/draw/labelable.rs:191
↓ 2 callersMethodget_label_position
(&self, tile: &Tile, scale: f64)
src/draw/labelable.rs:16
↓ 2 callersMethodget_polygon
(&'a self, idx: usize)
src/geodata/reader.rs:201
↓ 2 callersFunctionget_polygon_area
(polygon: &[PointF])
src/draw/labelable.rs:344
↓ 2 callersFunctionget_ref
( parser: &mut Reader<R>, elem_name: &[u8], attrs: &mut Attributes, storage: &OsmEntityStorage
src/geodata/importer.rs:447
↓ 2 callersMethodglobal_coords_to_idx
(&self, x: i32, y: i32, for_labels: bool)
src/draw/tile_pixels.rs:191
↓ 2 callersMethodheight
(&self)
src/draw/labelable.rs:246
↓ 2 callersFunctionimport
(input: P, output: P)
src/geodata/importer.rs:19
↓ 2 callersFunctioninsert_entity_id_to_tiles
( result: &mut TileIdToReferences, mut nodes: I, get_refs: impl Fn(&mut TileReferences) -> &mut BT
src/geodata/saver.rs:194
↓ 2 callersFunctionis_non_trivial_cap
(line_cap: &Option<LineCap>)
src/mapcss/styler.rs:24
↓ 2 callersMethodlat
(&self)
src/geodata/reader.rs:445
↓ 2 callersMethodlocal_coords_to_idx
(&self, x: usize, y: usize)
src/draw/tile_pixels.rs:201
↓ 2 callersMethodlon
(&self)
src/geodata/reader.rs:450
↓ 2 callersFunctionnodes_to_points
(nodes: impl Iterator<Item = Node<'n>>, tile: &Tile, scale: f64)
src/draw/labelable.rs:61
↓ 2 callersMethodopen_read_session
(&self, icon_name: &str)
src/draw/icon_cache.rs:21
↓ 2 callersMethodpartial_cmp
(&self, other: &Self)
src/draw/labelable.rs:116
next →1–100 of 284, ranked by callers