pub struct VfxDoc {
pub graph: FxGraph,
/* private fields */
}Expand description
Der editierte Effekt: Graph-Dokument + Vorschau-Welt + Auswahl.
Handbedient über die Registry; FxWorld ist nicht Debug, darum
kein Derive — Beweiskanal ist zustand().
Fields§
§graph: FxGraphImplementations§
Source§impl VfxDoc
impl VfxDoc
pub fn new() -> Self
pub fn auswählen(&mut self, id: Option<u32>)
Sourcepub fn knoten_anhängen(&mut self, m: Module) -> u32
pub fn knoten_anhängen(&mut self, m: Module) -> u32
Knoten anhängen; die Id wird vom Graph vergeben.
Sourcepub fn knoten_setzen(&mut self, id: u32, m: Module) -> Result<(), String>
pub fn knoten_setzen(&mut self, id: u32, m: Module) -> Result<(), String>
Knoten ersetzen (Editor: Pinsel auf bestehenden Knoten).
Sourcepub fn knoten_entfernen(&mut self, id: u32) -> Result<(), String>
pub fn knoten_entfernen(&mut self, id: u32) -> Result<(), String>
Knoten entfernen — samt aller Kanten, die an ihm hängen.
pub fn verknüpfen(&mut self, from: u32, to: u32)
pub fn entknüpfen(&mut self, from: u32, to: u32)
Sourcepub fn validieren(&self) -> Result<usize, String>
pub fn validieren(&self) -> Result<usize, String>
Kompiliert den Graph, ohne ihn zu spielen — Fehlermeldung statt Panic, damit das Panel sie zeigen kann.
Sourcepub fn abspielen(&mut self) -> Result<u32, String>
pub fn abspielen(&mut self) -> Result<u32, String>
Vorschau starten: dieselbe play_graph-Pforte wie die Engine.
pub fn stoppen(&mut self, id: Option<u32>) -> usize
pub fn schritt(&mut self, dt: f32) -> usize
pub fn teilchen(&self) -> usize
Sourcepub fn anzeige(&self) -> Vec<AnzeigeKnoten>
pub fn anzeige(&self) -> Vec<AnzeigeKnoten>
Knoten in Anzeigereihenfolge: wandernd vom Emitter, wenn der Graph läuft; sonst Speicherfolge. Das Panel sortiert nie selbst.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VfxDoc
impl RefUnwindSafe for VfxDoc
impl Send for VfxDoc
impl Sync for VfxDoc
impl Unpin for VfxDoc
impl UnsafeUnpin for VfxDoc
impl UnwindSafe for VfxDoc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Component for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().