pub enum StudioCommand {
TransformNode {
node_id: u32,
old_motor: Motor,
new_motor: Motor,
old_scale: [f32; 3],
new_scale: [f32; 3],
},
EditTensor10D {
node_id: u32,
old_tensor: Tensor10D,
new_tensor: Tensor10D,
},
EditProcSynthesis {
node_id: u32,
old_header: ProceduralSynthesisHeader,
new_header: ProceduralSynthesisHeader,
},
EditOntogeny {
node_id: u32,
old_stage: u8,
new_stage: u8,
old_permill: [u16; 4],
new_permill: [u16; 4],
},
}Expand description
Reversible studio editing command over 10D scene nodes and .10d sections.
Variants§
TransformNode
PGA Motor + 3D scale manipulation (MotorGizmo3D).
EditTensor10D
10D manifold coordinate ([q, v, w, x, y, z, t, α, μ, σ]) edit.
EditProcSynthesis
.10d PROC1 (ProceduralSynthesisHeader) parameter edit.
EditOntogeny
.10d EONT1 ontogenetic stage and [energy, damage, hydration, wear] permill edit.
Implementations§
Source§impl StudioCommand
impl StudioCommand
Sourcepub const fn inverted(self) -> Self
pub const fn inverted(self) -> Self
Returns the exact inverse command (swapping old_* and new_* states).
Sourcepub fn try_coalesce(&mut self, next: &StudioCommand) -> bool
pub fn try_coalesce(&mut self, next: &StudioCommand) -> bool
Attempts to coalesce next into self if both commands target the same node_id
and the same property variant (e.g. continuous gizmo drag).
Sourcepub fn apply_to_inspector(&self, inspector: &mut StudioNodeInspector10D)
pub fn apply_to_inspector(&self, inspector: &mut StudioNodeInspector10D)
Applies the forward (new_*) state of this command to a StudioNodeInspector10D.
Trait Implementations§
Source§impl Clone for StudioCommand
impl Clone for StudioCommand
impl Copy for StudioCommand
Source§impl Debug for StudioCommand
impl Debug for StudioCommand
Source§impl Default for StudioCommand
impl Default for StudioCommand
Source§impl PartialEq for StudioCommand
impl PartialEq for StudioCommand
impl StructuralPartialEq for StudioCommand
Auto Trait Implementations§
impl Freeze for StudioCommand
impl RefUnwindSafe for StudioCommand
impl Send for StudioCommand
impl Sync for StudioCommand
impl Unpin for StudioCommand
impl UnsafeUnpin for StudioCommand
impl UnwindSafe for StudioCommand
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.