Type Alias RunningState

Source
pub type RunningState = State<InnerGraphicalState>;
Expand description

Holds the application state. Starting point to add visualization datas.

Aliased Type§

pub struct RunningState(/* private fields */);

Implementations§

Source§

impl RunningState

Source

pub fn resize_scene(&mut self)

Fit camera and ground to match the visible elements

Source

pub fn screenshot(&mut self)

Take a screenshot at the next frame

Source

pub fn get_picked(&self) -> &Option<(String, usize)>

Get current selected object: first the name, then index i of the selected element

For a surface mesh, if i < nv then the selected element si the vertex of index i. If nv <= i < nv + nf, it corresponds to the face of index i - nv.

Source

pub fn refresh(&mut self)

Politely ask to render the next frame, even if no change is detected

Trait Implementations§

Source§

impl Deref for RunningState

Source§

type Target = InnerGraphicalState

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for RunningState

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.