pub struct SourceChannelFactV1 { /* private fields */ }Expand description
One raw animation channel/property declaration.
Implementations§
Source§impl SourceChannelFactV1
impl SourceChannelFactV1
Sourcepub fn new(
source_channel_index: usize,
target: SourceTargetV1,
property: SourceChannelPropertyV1,
components: SourceComponentMaskV1,
interpolation: SourceObservationV1<SourceInterpolationV1>,
disposition: SourceLoaderDispositionV1,
provenance: SourceProvenanceV1,
) -> Self
pub fn new( source_channel_index: usize, target: SourceTargetV1, property: SourceChannelPropertyV1, components: SourceComponentMaskV1, interpolation: SourceObservationV1<SourceInterpolationV1>, disposition: SourceLoaderDispositionV1, provenance: SourceProvenanceV1, ) -> Self
Construct one stable source channel/property row.
Sourcepub fn with_source_layer_index(self, index: usize) -> Self
pub fn with_source_layer_index(self, index: usize) -> Self
Attach the source animation-layer index used by layered formats.
Sourcepub fn with_property_name(self, name: SourceTextV1) -> Self
pub fn with_property_name(self, name: SourceTextV1) -> Self
Attach a bounded source property spelling, primarily for SourceChannelPropertyV1::Other.
Sourcepub fn with_accessors(self, input: usize, output: usize) -> Self
pub fn with_accessors(self, input: usize, output: usize) -> Self
Attach exact glTF input/output accessor identities.
Sourcepub const fn source_channel_index(&self) -> usize
pub const fn source_channel_index(&self) -> usize
Stable channel/property index inside its source clip/layer projection.
Sourcepub const fn source_layer_index(&self) -> Option<usize>
pub const fn source_layer_index(&self) -> Option<usize>
Source animation-layer index, when the format has layers.
Sourcepub const fn target(&self) -> SourceTargetV1
pub const fn target(&self) -> SourceTargetV1
Stable source target identity.
Sourcepub const fn property(&self) -> SourceChannelPropertyV1
pub const fn property(&self) -> SourceChannelPropertyV1
Format-neutral property kind.
Sourcepub fn property_name(&self) -> Option<&SourceTextV1>
pub fn property_name(&self) -> Option<&SourceTextV1>
Source property spelling for an Other property, when retained.
Sourcepub const fn components(&self) -> SourceComponentMaskV1
pub const fn components(&self) -> SourceComponentMaskV1
Present component curves.
Sourcepub const fn interpolation(&self) -> &SourceObservationV1<SourceInterpolationV1>
pub const fn interpolation(&self) -> &SourceObservationV1<SourceInterpolationV1>
Source interpolation evidence.
Sourcepub const fn input_accessor_index(&self) -> Option<usize>
pub const fn input_accessor_index(&self) -> Option<usize>
Exact glTF input accessor index, when applicable.
Sourcepub const fn output_accessor_index(&self) -> Option<usize>
pub const fn output_accessor_index(&self) -> Option<usize>
Exact glTF output accessor index, when applicable.
Sourcepub const fn disposition(&self) -> SourceLoaderDispositionV1
pub const fn disposition(&self) -> SourceLoaderDispositionV1
AnimSmith-loader treatment of this channel/property.
Sourcepub const fn provenance(&self) -> &SourceProvenanceV1
pub const fn provenance(&self) -> &SourceProvenanceV1
Source provenance for this declaration.
Trait Implementations§
Source§impl Clone for SourceChannelFactV1
impl Clone for SourceChannelFactV1
Source§fn clone(&self) -> SourceChannelFactV1
fn clone(&self) -> SourceChannelFactV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more