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
impl RunningState
Sourcepub fn resize_scene(&mut self)
pub fn resize_scene(&mut self)
Fit camera and ground to match the visible elements
Sourcepub fn screenshot(&mut self)
pub fn screenshot(&mut self)
Take a screenshot at the next frame
Sourcepub fn get_picked(&self) -> &Option<(String, usize)>
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
.