map_gui::colors

Struct ColorScheme

Source
pub struct ColorScheme {
Show 80 fields scheme: ColorSchemeChoice, pub road_outlines: bool, pub road_class_colors: bool, pub show_buildings_in_minimap: bool, pub panel_bg: Color, pub inner_panel_bg: Color, pub day_time_slider: Color, pub night_time_slider: Color, pub selected: Color, pub current_object: Color, pub perma_selected_object: Color, pub fade_map_dark: Color, gui_style: Style, pub minimap_cursor_border: Color, pub minimap_cursor_bg: Option<Color>, driving_lane: Color, bus_lane: Color, parking_lane: Color, bike_lane: Color, sidewalk: Color, pub sidewalk_lines: Color, pub general_road_marking: Color, road_center_line: Color, pub light_rail_track: Color, pub private_road: Option<Color>, pub unzoomed_highway: Color, pub unzoomed_arterial: Color, pub unzoomed_residential: Color, pub unzoomed_cycleway: Color, pub unzoomed_footway: Color, footway: Color, shared_use: Color, pub normal_intersection: Color, pub stop_sign: Color, pub stop_sign_pole: Color, pub signal_protected_turn: Color, pub signal_permitted_turn: Color, pub signal_banned_turn: Color, pub signal_box: Color, pub signal_spinner: Color, pub signal_turn_block_bg: Color, pub slowest_intersection: Color, pub slower_intersection: Color, pub slow_intersection: Color, pub void_background: Color, pub map_background: Fill, pub unzoomed_interesting_intersection: Color, pub residential_building: Color, pub commercial_building: Color, pub building_outline: Color, pub parking_lot: Color, pub grass: Fill, pub water: Fill, pub study_area: Fill, pub unzoomed_car: Color, pub unzoomed_bike: Color, pub unzoomed_bus: Color, pub unzoomed_pedestrian: Color, agent_colors: Vec<Color>, pub route: Color, pub turn_arrow: Color, pub brake_light: Color, pub bus_body: Color, pub bus_label: Color, pub train_body: Color, pub ped_head: Color, pub ped_foot: Color, pub ped_preparing_bike_body: Color, pub ped_crowd: Color, pub bike_frame: Color, pub parked_car: Color, pub good_to_bad_red: ColorScale, pub good_to_bad_green: ColorScale, pub bus_layer: Color, pub edits_layer: Color, pub parking_trip: Color, pub bike_trip: Color, pub bus_trip: Color, pub before_changes: Color, pub after_changes: Color,
}

Fields§

§scheme: ColorSchemeChoice§road_outlines: bool§road_class_colors: bool§show_buildings_in_minimap: bool§panel_bg: Color§inner_panel_bg: Color§day_time_slider: Color§night_time_slider: Color§selected: Color§current_object: Color§perma_selected_object: Color§fade_map_dark: Color§gui_style: Style§minimap_cursor_border: Color§minimap_cursor_bg: Option<Color>§driving_lane: Color§bus_lane: Color§parking_lane: Color§bike_lane: Color§sidewalk: Color§sidewalk_lines: Color§general_road_marking: Color§road_center_line: Color§light_rail_track: Color§private_road: Option<Color>§unzoomed_highway: Color§unzoomed_arterial: Color§unzoomed_residential: Color§unzoomed_cycleway: Color§unzoomed_footway: Color§footway: Color§shared_use: Color§normal_intersection: Color§stop_sign: Color§stop_sign_pole: Color§signal_protected_turn: Color§signal_permitted_turn: Color§signal_banned_turn: Color§signal_box: Color§signal_spinner: Color§signal_turn_block_bg: Color§slowest_intersection: Color§slower_intersection: Color§slow_intersection: Color§void_background: Color§map_background: Fill§unzoomed_interesting_intersection: Color§residential_building: Color§commercial_building: Color§building_outline: Color§parking_lot: Color§grass: Fill§water: Fill§study_area: Fill§unzoomed_car: Color§unzoomed_bike: Color§unzoomed_bus: Color§unzoomed_pedestrian: Color§agent_colors: Vec<Color>§route: Color§turn_arrow: Color§brake_light: Color§bus_body: Color§bus_label: Color§train_body: Color§ped_head: Color§ped_foot: Color§ped_preparing_bike_body: Color§ped_crowd: Color§bike_frame: Color§parked_car: Color§good_to_bad_red: ColorScale§good_to_bad_green: ColorScale§bus_layer: Color§edits_layer: Color§parking_trip: Color§bike_trip: Color§bus_trip: Color§before_changes: Color§after_changes: Color

Implementations§

Source§

impl ColorScheme

Source§

impl ColorScheme

Source

pub fn rotating_color_plot(&self, idx: usize) -> Color

Source

pub fn rotating_color_agents(&self, idx: usize) -> Color

Source

pub fn unzoomed_road_surface(&self, rank: RoadRank) -> Color

Source

pub fn zoomed_road_surface(&self, lane: LaneType, rank: RoadRank) -> Color

Source

pub fn zoomed_intersection_surface(&self, rank: RoadRank) -> Color

Source

pub fn curb(&self, rank: RoadRank) -> Color

Source

pub fn road_center_line(&self, map: &Map) -> Color

Source

pub fn export(&self, path: &str) -> Result<()>

Source

pub fn import(&mut self, path: &str) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

§

fn is_within(&self, b: &G2) -> bool