Struct map_gui::render::agents::AgentCache [−][src]
pub struct AgentCache { pub unzoomed_agents: UnzoomedAgents, time: Option<Time>, agents_per_on: HashMap<Traversable, Vec<Box<dyn Renderable>>>, unzoomed: Option<(Time, UnzoomedAgents, QuadTree<AgentID>, Drawable)>, }
Fields
unzoomed_agents: UnzoomedAgents
This is controlled almost entirely by the minimap panel. It has no meaning in edit mode.
time: Option<Time>
agents_per_on: HashMap<Traversable, Vec<Box<dyn Renderable>>>
unzoomed: Option<(Time, UnzoomedAgents, QuadTree<AgentID>, Drawable)>
Implementations
impl AgentCache
[src]
impl AgentCache
[src]pub fn new_state() -> AgentCache
[src]
pub fn get(&self, on: Traversable) -> Vec<&dyn Renderable>
[src]
pub fn populate_if_needed(
&mut self,
on: Traversable,
map: &Map,
sim: &Sim,
cs: &ColorScheme,
prerender: &Prerender
)
[src]
&mut self,
on: Traversable,
map: &Map,
sim: &Sim,
cs: &ColorScheme,
prerender: &Prerender
)
pub fn calculate_unzoomed_agents<P: AsRef<Prerender>>(
&mut self,
prerender: &mut P,
app: &dyn AppLike
) -> &QuadTree<AgentID>
[src]
&mut self,
prerender: &mut P,
app: &dyn AppLike
) -> &QuadTree<AgentID>
If the sim time has changed or the unzoomed agent filters have been modified, recalculate the quadtree and drawable for all unzoomed agents.
pub fn draw_unzoomed_agents(&mut self, g: &mut GfxCtx<'_>, app: &dyn AppLike)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AgentCache
impl !Send for AgentCache
impl !Sync for AgentCache
impl Unpin for AgentCache
impl !UnwindSafe for AgentCache
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>,