[−][src]Struct map_editor::model::Model
Fields
map: RawMap
showing_pts: Option<OriginalRoad>
world: World<ID>
include_bldgs: bool
intersection_geom: bool
Implementations
impl Model
[src]
pub fn blank() -> Model
[src]
pub fn import(
path: String,
include_bldgs: bool,
intersection_geom: bool,
ctx: &EventCtx<'_>
) -> Model
[src]
path: String,
include_bldgs: bool,
intersection_geom: bool,
ctx: &EventCtx<'_>
) -> Model
impl Model
[src]
pub fn export_to_osm(&mut self)
[src]
fn compute_bounds(&self) -> Bounds
[src]
pub fn describe_obj(&self, id: ID) -> Text
[src]
impl Model
[src]
fn intersection_added(&mut self, id: NodeID, ctx: &EventCtx<'_>)
[src]
pub fn create_i(&mut self, point: Pt2D, ctx: &EventCtx<'_>)
[src]
pub fn move_i(&mut self, id: NodeID, point: Pt2D, ctx: &EventCtx<'_>)
[src]
pub fn delete_i(&mut self, id: NodeID)
[src]
impl Model
[src]
fn road_added(&mut self, id: OriginalRoad, ctx: &EventCtx<'_>)
[src]
fn road_deleted(&mut self, id: OriginalRoad)
[src]
pub fn create_r(&mut self, i1: NodeID, i2: NodeID, ctx: &EventCtx<'_>)
[src]
pub fn delete_r(&mut self, id: OriginalRoad)
[src]
fn road_object(&self, id: OriginalRoad) -> Object<ID>
[src]
pub fn show_r_points(&mut self, id: OriginalRoad, ctx: &EventCtx<'_>)
[src]
pub fn stop_showing_pts(&mut self, id: OriginalRoad)
[src]
pub fn move_r_pt(
&mut self,
id: OriginalRoad,
idx: usize,
point: Pt2D,
ctx: &EventCtx<'_>
)
[src]
&mut self,
id: OriginalRoad,
idx: usize,
point: Pt2D,
ctx: &EventCtx<'_>
)
pub fn delete_r_pt(&mut self, id: OriginalRoad, idx: usize, ctx: &EventCtx<'_>)
[src]
pub fn insert_r_pt(
&mut self,
id: OriginalRoad,
pt: Pt2D,
ctx: &EventCtx<'_>
) -> Option<ID>
[src]
&mut self,
id: OriginalRoad,
pt: Pt2D,
ctx: &EventCtx<'_>
) -> Option<ID>
pub fn clear_r_pts(&mut self, id: OriginalRoad, ctx: &EventCtx<'_>)
[src]
impl Model
[src]
fn bldg_added(&mut self, id: OsmID, ctx: &EventCtx<'_>)
[src]
pub fn create_b(&mut self, center: Pt2D, ctx: &EventCtx<'_>) -> ID
[src]
pub fn move_b(&mut self, id: OsmID, new_center: Pt2D, ctx: &EventCtx<'_>)
[src]
pub fn delete_b(&mut self, id: OsmID)
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,