pub struct TransformStack { /* private fields */ }Expand description
Wraps the corresponding Model I/O transform stack counterpart.
Implementations§
Source§impl TransformStack
impl TransformStack
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O transform stack counterpart.
Sourcepub fn matrix(&self) -> [f32; 16]
pub fn matrix(&self) -> [f32; 16]
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn set_matrix(&self, matrix: [f32; 16])
pub fn set_matrix(&self, matrix: [f32; 16])
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn resets_transform(&self) -> bool
pub fn resets_transform(&self) -> bool
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn set_resets_transform(&self, resets_transform: bool)
pub fn set_resets_transform(&self, resets_transform: bool)
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn minimum_time(&self) -> f64
pub fn minimum_time(&self) -> f64
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn maximum_time(&self) -> f64
pub fn maximum_time(&self) -> f64
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn key_times(&self) -> Vec<f64>
pub fn key_times(&self) -> Vec<f64>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn local_transform_at_time(&self, time: f64) -> [f32; 16]
pub fn local_transform_at_time(&self, time: f64) -> [f32; 16]
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_translate_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformTranslateOp>
pub fn add_translate_op( &self, name: &str, inverse: bool, ) -> Result<TransformTranslateOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_rotate_x_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformRotateXOp>
pub fn add_rotate_x_op( &self, name: &str, inverse: bool, ) -> Result<TransformRotateXOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_rotate_y_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformRotateYOp>
pub fn add_rotate_y_op( &self, name: &str, inverse: bool, ) -> Result<TransformRotateYOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_rotate_z_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformRotateZOp>
pub fn add_rotate_z_op( &self, name: &str, inverse: bool, ) -> Result<TransformRotateZOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_rotate_op(
&self,
name: &str,
rotation_order: TransformOpRotationOrder,
inverse: bool,
) -> Result<TransformRotateOp>
pub fn add_rotate_op( &self, name: &str, rotation_order: TransformOpRotationOrder, inverse: bool, ) -> Result<TransformRotateOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_scale_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformScaleOp>
pub fn add_scale_op( &self, name: &str, inverse: bool, ) -> Result<TransformScaleOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_matrix_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformMatrixOp>
pub fn add_matrix_op( &self, name: &str, inverse: bool, ) -> Result<TransformMatrixOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn add_orient_op(
&self,
name: &str,
inverse: bool,
) -> Result<TransformOrientOp>
pub fn add_orient_op( &self, name: &str, inverse: bool, ) -> Result<TransformOrientOp>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn animated_value_named(&self, name: &str) -> Result<Option<AnimatedValue>>
pub fn animated_value_named(&self, name: &str) -> Result<Option<AnimatedValue>>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn float4x4_at_time(&self, time: f64) -> [f32; 16]
pub fn float4x4_at_time(&self, time: f64) -> [f32; 16]
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn transform_ops(&self) -> Result<Vec<TransformOp>>
pub fn transform_ops(&self) -> Result<Vec<TransformOp>>
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Sourcepub fn as_transform_component(&self) -> TransformComponent
pub fn as_transform_component(&self) -> TransformComponent
Calls the corresponding Model I/O method on the wrapped Model I/O transform stack counterpart.
Trait Implementations§
Source§impl Clone for TransformStack
impl Clone for TransformStack
Source§fn clone(&self) -> TransformStack
fn clone(&self) -> TransformStack
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more