pub struct BlendSpace<T>where
T: EntityId,{ /* private fields */ }Implementations§
Source§impl<T> BlendSpace<T>where
T: EntityId,
impl<T> BlendSpace<T>where
T: EntityId,
pub const BASE: &'static str = "base"
pub const X_AXIS_NAME: &'static str = "x_axis_name"
pub const Y_AXIS_NAME: &'static str = "y_axis_name"
pub const MIN_VALUES: &'static str = "min_values"
pub const MAX_VALUES: &'static str = "max_values"
pub const SNAP_STEP: &'static str = "snap_step"
pub const SAMPLING_PARAMETER: &'static str = "sampling_parameter"
Source§impl<T> BlendSpace<T>where
T: EntityId,
impl<T> BlendSpace<T>where
T: EntityId,
pub fn add_point(&mut self, point: BlendSpacePoint<T>) -> bool
Sourcepub fn set_points(&mut self, points: Vec<BlendSpacePoint<T>>) -> bool
pub fn set_points(&mut self, points: Vec<BlendSpacePoint<T>>) -> bool
Sets new points to the blend space.
pub fn clear_points(&mut self)
pub fn points(&self) -> &[BlendSpacePoint<T>]
pub fn points_mut(&mut self) -> PointsMut<'_, T>
pub fn triangles(&self) -> &[TriangleDefinition]
pub fn children(&self) -> Vec<Handle<PoseNode<T>>>
pub fn set_min_values( &mut self, min_values: Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>, )
pub fn min_values( &self, ) -> Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
pub fn set_max_values( &mut self, max_values: Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>, )
pub fn max_values( &self, ) -> Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
pub fn set_snap_step( &mut self, step: Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>, )
pub fn snap_step( &self, ) -> Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
pub fn set_sampling_parameter(&mut self, parameter: String)
pub fn sampling_parameter(&self) -> &str
pub fn set_x_axis_name(&mut self, name: String) -> String
pub fn x_axis_name(&self) -> &str
pub fn set_y_axis_name(&mut self, name: String) -> String
pub fn y_axis_name(&self) -> &str
pub fn try_snap_points(&mut self)
pub fn fetch_weights( &self, sampling_point: Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>, ) -> Option<[(usize, f32); 3]>
Trait Implementations§
Source§impl<T> AnimationPoseSource<T> for BlendSpace<T>where
T: EntityId,
impl<T> AnimationPoseSource<T> for BlendSpace<T>where
T: EntityId,
Source§fn eval_pose(
&self,
nodes: &Pool<PoseNode<T>>,
params: &ParameterContainer,
animations: &AnimationContainer<T>,
dt: f32,
) -> Ref<'_, AnimationPose<T>>
fn eval_pose( &self, nodes: &Pool<PoseNode<T>>, params: &ParameterContainer, animations: &AnimationContainer<T>, dt: f32, ) -> Ref<'_, AnimationPose<T>>
Evaluates animation pose and returns a reference to it.
Source§fn pose(&self) -> Ref<'_, AnimationPose<T>>
fn pose(&self) -> Ref<'_, AnimationPose<T>>
Returns a reference to inner pose of a node.
Source§fn collect_animation_events(
&self,
nodes: &Pool<PoseNode<T>>,
params: &ParameterContainer,
animations: &AnimationContainer<T>,
strategy: AnimationEventCollectionStrategy,
) -> Vec<(Handle<Animation<T>>, AnimationEvent)>
fn collect_animation_events( &self, nodes: &Pool<PoseNode<T>>, params: &ParameterContainer, animations: &AnimationContainer<T>, strategy: AnimationEventCollectionStrategy, ) -> Vec<(Handle<Animation<T>>, AnimationEvent)>
Collects animation events from internals.
Source§impl<T> Clone for BlendSpace<T>
impl<T> Clone for BlendSpace<T>
Source§fn clone(&self) -> BlendSpace<T>
fn clone(&self) -> BlendSpace<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for BlendSpace<T>
impl<T> Debug for BlendSpace<T>
Source§impl<T> Default for BlendSpace<T>where
T: EntityId,
impl<T> Default for BlendSpace<T>where
T: EntityId,
Source§fn default() -> BlendSpace<T>
fn default() -> BlendSpace<T>
Returns the “default value” for a type. Read more
Source§impl<T> DerefMut for BlendSpace<T>where
T: EntityId,
impl<T> DerefMut for BlendSpace<T>where
T: EntityId,
Source§impl<T> PartialEq for BlendSpace<T>
impl<T> PartialEq for BlendSpace<T>
Source§impl<T> Reflect for BlendSpace<T>where
T: EntityId,
BlendSpace<T>: 'static,
BasePoseNode<T>: Reflect,
String: Reflect,
Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>: Reflect,
impl<T> Reflect for BlendSpace<T>where
T: EntityId,
BlendSpace<T>: 'static,
BasePoseNode<T>: Reflect,
String: Reflect,
Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>: Reflect,
fn source_path() -> &'static str
fn type_name(&self) -> &'static str
fn doc(&self) -> &'static str
Source§fn assembly_name(&self) -> &'static str
fn assembly_name(&self) -> &'static str
Returns a parent assembly name of the type that implements this trait. WARNING: You should use
proc-macro (
#[derive(Reflect)]) to ensure that this method will return correct assembly
name. In other words - there’s no guarantee, that any implementation other than proc-macro
will return a correct name of the assembly. Alternatively, you can use env!("CARGO_PKG_NAME")
as an implementation.Source§fn type_assembly_name() -> &'static str
fn type_assembly_name() -> &'static str
Returns a parent assembly name of the type that implements this trait. WARNING: You should use
proc-macro (
#[derive(Reflect)]) to ensure that this method will return correct assembly
name. In other words - there’s no guarantee, that any implementation other than proc-macro
will return a correct name of the assembly. Alternatively, you can use env!("CARGO_PKG_NAME")
as an implementation.fn fields_info(&self, func: &mut dyn FnMut(&[FieldInfo<'_, '_>]))
fn into_any(self: Box<BlendSpace<T>>) -> Box<dyn Any>
fn set( &mut self, value: Box<dyn Reflect>, ) -> Result<Box<dyn Reflect>, Box<dyn Reflect>>
Source§fn set_field(
&mut self,
name: &str,
value: Box<dyn Reflect>,
func: &mut dyn FnMut(Result<Box<dyn Reflect>, Box<dyn Reflect>>),
)
fn set_field( &mut self, name: &str, value: Box<dyn Reflect>, func: &mut dyn FnMut(Result<Box<dyn Reflect>, Box<dyn Reflect>>), )
Calls user method specified with
#[reflect(setter = ..)] or falls back to
Reflect::field_mutfn as_any(&self, func: &mut dyn FnMut(&(dyn Any + 'static)))
fn as_any_mut(&mut self, func: &mut dyn FnMut(&mut (dyn Any + 'static)))
fn as_reflect(&self, func: &mut dyn FnMut(&(dyn Reflect + 'static)))
fn as_reflect_mut(&mut self, func: &mut dyn FnMut(&mut (dyn Reflect + 'static)))
fn fields(&self, func: &mut dyn FnMut(&[&(dyn Reflect + 'static)]))
fn fields_mut( &mut self, func: &mut dyn FnMut(&mut [&mut (dyn Reflect + 'static)]), )
fn field( &self, name: &str, func: &mut dyn FnMut(Option<&(dyn Reflect + 'static)>), )
fn field_mut( &mut self, name: &str, func: &mut dyn FnMut(Option<&mut (dyn Reflect + 'static)>), )
fn as_array(&self, func: &mut dyn FnMut(Option<&(dyn ReflectArray + 'static)>))
fn as_array_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectArray + 'static)>), )
fn as_list(&self, func: &mut dyn FnMut(Option<&(dyn ReflectList + 'static)>))
fn as_list_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectList + 'static)>), )
fn as_inheritable_variable( &self, func: &mut dyn FnMut(Option<&(dyn ReflectInheritableVariable + 'static)>), )
fn as_inheritable_variable_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectInheritableVariable + 'static)>), )
fn as_hash_map( &self, func: &mut dyn FnMut(Option<&(dyn ReflectHashMap + 'static)>), )
fn as_hash_map_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectHashMap + 'static)>), )
Source§impl<T> Visit for BlendSpace<T>where
T: EntityId,
BasePoseNode<T>: Visit,
Vec<BlendSpacePoint<T>>: Visit,
Vec<TriangleDefinition>: Visit,
String: Visit,
Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>: Visit,
impl<T> Visit for BlendSpace<T>where
T: EntityId,
BasePoseNode<T>: Visit,
Vec<BlendSpacePoint<T>>: Visit,
Vec<TriangleDefinition>: Visit,
String: Visit,
Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>: Visit,
Source§fn visit(&mut self, name: &str, visitor: &mut Visitor) -> Result<(), VisitError>
fn visit(&mut self, name: &str, visitor: &mut Visitor) -> Result<(), VisitError>
Read or write this value, depending on whether Visitor::is_reading() is true or false. Read more
Source§impl<T> Deref for BlendSpace<T>where
T: EntityId,
impl<T> Deref for BlendSpace<T>where
T: EntityId,
Source§type Target = BasePoseNode<T>
type Target = BasePoseNode<T>
The resulting type after dereferencing.
impl<T> StructuralPartialEq for BlendSpace<T>where
T: EntityId,
Auto Trait Implementations§
impl<T> !Freeze for BlendSpace<T>
impl<T> !RefUnwindSafe for BlendSpace<T>
impl<T> Send for BlendSpace<T>
impl<T> !Sync for BlendSpace<T>
impl<T> Unpin for BlendSpace<T>where
T: Unpin,
impl<T> !UnwindSafe for BlendSpace<T>
Blanket Implementations§
Source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts self reference as a reference to
Any. Could be used to downcast a trait object
to a particular type.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts self reference as a reference to
Any. Could be used to downcast a trait object
to a particular type.fn into_any(self: Box<T>) -> Box<dyn Any>
Source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
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 moreSource§impl<T> MessageData for T
impl<T> MessageData for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
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().Source§impl<T> ReflectBase for Twhere
T: Reflect,
impl<T> ReflectBase for Twhere
T: Reflect,
fn as_any_raw(&self) -> &(dyn Any + 'static)
fn as_any_raw_mut(&mut self) -> &mut (dyn Any + 'static)
Source§impl<T> ResolvePath for Twhere
T: Reflect,
impl<T> ResolvePath for Twhere
T: Reflect,
fn resolve_path<'p>( &self, path: &'p str, func: &mut dyn FnMut(Result<&(dyn Reflect + 'static), ReflectPathError<'p>>), )
fn resolve_path_mut<'p>( &mut self, path: &'p str, func: &mut dyn FnMut(Result<&mut (dyn Reflect + 'static), ReflectPathError<'p>>), )
fn get_resolve_path<'p, T>(
&self,
path: &'p str,
func: &mut dyn FnMut(Result<&T, ReflectPathError<'p>>),
)where
T: Reflect,
fn get_resolve_path_mut<'p, T>(
&mut self,
path: &'p str,
func: &mut dyn FnMut(Result<&mut T, ReflectPathError<'p>>),
)where
T: Reflect,
Source§impl<T> ScriptMessagePayload for T
impl<T> ScriptMessagePayload for T
Source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns
self as &dyn AnySource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Returns
self as &dyn AnySource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.