Struct map_editor::model::Model [−][src]
pub struct Model { pub map: RawMap, showing_pts: Option<OriginalRoad>, pub world: World<ID>, include_bldgs: bool, intersection_geom: bool, }
Fields
map: RawMap
showing_pts: Option<OriginalRoad>
world: World<ID>
include_bldgs: bool
intersection_geom: bool
Implementations
impl Model
[src]
impl Model
[src]impl Model
[src]
impl Model
[src]pub fn export_to_osm(&mut self)
[src]
pub fn set_boundary(
&mut self,
ctx: &EventCtx<'_>,
top_left: Pt2D,
bottom_right: Pt2D
)
[src]
&mut self,
ctx: &EventCtx<'_>,
top_left: Pt2D,
bottom_right: Pt2D
)
fn compute_bounds(&self) -> Bounds
[src]
impl Model
[src]
impl Model
[src]fn intersection_added(&mut self, ctx: &EventCtx<'_>, id: NodeID)
[src]
pub fn create_i(&mut self, ctx: &EventCtx<'_>, point: Pt2D)
[src]
pub fn move_i(&mut self, ctx: &EventCtx<'_>, id: NodeID, point: Pt2D)
[src]
pub fn delete_i(&mut self, id: NodeID)
[src]
pub fn toggle_i(&mut self, ctx: &EventCtx<'_>, id: NodeID)
[src]
pub fn show_intersection_geometry(&mut self, ctx: &EventCtx<'_>, show: bool)
[src]
impl Model
[src]
impl Model
[src]pub fn road_added(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad)
[src]
pub fn road_deleted(&mut self, id: OriginalRoad)
[src]
pub fn create_r(&mut self, ctx: &EventCtx<'_>, i1: NodeID, i2: NodeID)
[src]
pub fn delete_r(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad)
[src]
fn road_object(&self, id: OriginalRoad) -> Object<ID>
[src]
pub fn show_r_points(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad)
[src]
pub fn stop_showing_pts(&mut self, id: OriginalRoad)
[src]
pub fn move_r_pt(
&mut self,
ctx: &EventCtx<'_>,
id: OriginalRoad,
idx: usize,
point: Pt2D
)
[src]
&mut self,
ctx: &EventCtx<'_>,
id: OriginalRoad,
idx: usize,
point: Pt2D
)
pub fn delete_r_pt(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad, idx: usize)
[src]
pub fn insert_r_pt(
&mut self,
ctx: &EventCtx<'_>,
id: OriginalRoad,
pt: Pt2D
) -> Option<ID>
[src]
&mut self,
ctx: &EventCtx<'_>,
id: OriginalRoad,
pt: Pt2D
) -> Option<ID>
pub fn clear_r_pts(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad)
[src]
pub fn merge_r(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad)
[src]
pub fn toggle_junction(&mut self, ctx: &EventCtx<'_>, id: OriginalRoad)
[src]
impl Model
[src]
impl Model
[src]Auto Trait Implementations
impl !RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,