pub struct Model {
pub shading: String,
pub culling: String,
/* private fields */
}Expand description
Typed wrapper for a scene graph model / transform node (Model::* except unsupported effectors).
Fields§
§shading: String§culling: StringImplementations§
Source§impl Model
impl Model
pub fn inner(&self) -> &OwnedObject
pub fn into_inner(self) -> OwnedObject
pub fn properties(&self) -> &HashMap<String, Property>
pub fn property(&self, name: &str) -> Option<&Property>
pub fn shading(&self) -> &str
pub fn culling(&self) -> &str
pub fn quaternion_interpolate(&self) -> i32
pub fn rotation_offset(&self) -> [f32; 3]
pub fn rotation_pivot(&self) -> [f32; 3]
pub fn scaling_offset(&self) -> [f32; 3]
pub fn scaling_pivot(&self) -> [f32; 3]
pub fn translation_active(&self) -> bool
pub fn translation_min(&self) -> [f32; 3]
pub fn translation_max(&self) -> [f32; 3]
pub fn translation_min_x(&self) -> bool
pub fn translation_max_x(&self) -> bool
pub fn translation_min_y(&self) -> bool
pub fn translation_max_y(&self) -> bool
pub fn translation_min_z(&self) -> bool
pub fn translation_max_z(&self) -> bool
pub fn rotation_order(&self) -> ModelRotationOrder
pub fn rotation_space_for_limit_only(&self) -> bool
pub fn rotation_stiffness_x(&self) -> f32
pub fn rotation_stiffness_y(&self) -> f32
pub fn rotation_stiffness_z(&self) -> f32
pub fn axis_len(&self) -> f32
pub fn pre_rotation(&self) -> [f32; 3]
pub fn post_rotation(&self) -> [f32; 3]
pub fn rotation_active(&self) -> bool
pub fn rotation_min(&self) -> [f32; 3]
pub fn rotation_max(&self) -> [f32; 3]
pub fn rotation_min_x(&self) -> bool
pub fn rotation_max_x(&self) -> bool
pub fn rotation_min_y(&self) -> bool
pub fn rotation_max_y(&self) -> bool
pub fn rotation_min_z(&self) -> bool
pub fn rotation_max_z(&self) -> bool
pub fn inherit_type(&self) -> ModelTransformInheritance
pub fn scaling_active(&self) -> bool
pub fn scaling_min(&self) -> [f32; 3]
pub fn scaling_max(&self) -> [f32; 3]
pub fn scaling_min_x(&self) -> bool
pub fn scaling_max_x(&self) -> bool
pub fn scaling_min_y(&self) -> bool
pub fn scaling_max_y(&self) -> bool
pub fn scaling_min_z(&self) -> bool
pub fn scaling_max_z(&self) -> bool
pub fn geometric_translation(&self) -> [f32; 3]
pub fn geometric_rotation(&self) -> [f32; 3]
pub fn geometric_scaling(&self) -> [f32; 3]
pub fn min_damp_range_x(&self) -> f32
pub fn min_damp_range_y(&self) -> f32
pub fn min_damp_range_z(&self) -> f32
pub fn max_damp_range_x(&self) -> f32
pub fn max_damp_range_y(&self) -> f32
pub fn max_damp_range_z(&self) -> f32
pub fn min_damp_strength_x(&self) -> f32
pub fn min_damp_strength_y(&self) -> f32
pub fn min_damp_strength_z(&self) -> f32
pub fn max_damp_strength_x(&self) -> f32
pub fn max_damp_strength_y(&self) -> f32
pub fn max_damp_strength_z(&self) -> f32
pub fn preferred_angle_x(&self) -> f32
pub fn preferred_angle_y(&self) -> f32
pub fn preferred_angle_z(&self) -> f32
pub fn show(&self) -> bool
pub fn lod_box(&self) -> bool
pub fn freeze(&self) -> bool
Sourcepub fn connected_materials<'a>(
&'a self,
document: &'a OwnedDocument,
) -> Vec<&'a Material>
pub fn connected_materials<'a>( &'a self, document: &'a OwnedDocument, ) -> Vec<&'a Material>
Incoming object–object (OO) links from Material sources whose connected_object_ids
contain this model’s id — Assimp Model::ResolveLinks material branch (OP links are excluded).
Use Material::get_textures / Material::get_layered_textures on each entry for texture data.
Sourcepub fn connected_geometries<'a>(
&'a self,
document: &'a OwnedDocument,
) -> Vec<ModelGeometryRef<'a>>
pub fn connected_geometries<'a>( &'a self, document: &'a OwnedDocument, ) -> Vec<ModelGeometryRef<'a>>
Incoming OO links from Geometry sources (mesh, line, shape, or unknown geometry class).
Sourcepub fn connected_node_attributes<'a>(
&'a self,
document: &'a OwnedDocument,
) -> Vec<NodeAttributeRef<'a>>
pub fn connected_node_attributes<'a>( &'a self, document: &'a OwnedDocument, ) -> Vec<NodeAttributeRef<'a>>
Incoming OO links from NodeAttribute sources, same discriminant shape as
AnimationCurveNode::get_target_node_attribute.
Trait Implementations§
Source§impl TryFrom<OwnedObject> for Model
impl TryFrom<OwnedObject> for Model
Source§type Error = FbxTypeMismatch
type Error = FbxTypeMismatch
The type returned in the event of a conversion error.
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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