Skip to main content

SceneNode3D

Struct SceneNode3D 

Source
pub struct SceneNode3D { /* private fields */ }
Expand description

Hierarchical scene node storing local quaternion TRS, cached world matrices, collection bits, and component links.

Implementations§

Source§

impl SceneNode3D

Construction and local matrix helpers for SceneNode3D.

Source

pub fn from_name(name: &str, parent: Option<u32>) -> Self

Creates an identity SceneNode3D with name and optional parent.

§Arguments
  • &str - Node label.
  • Option<u32> - Optional parent node index.
§Returns
  • Self - Constructed identity scene node.
Source

pub fn local_matrix(&self) -> Mat4

Computes this node’s local TRS matrix T * R * S.

§Arguments
  • &Self - Scene node reference.
§Returns
  • Mat4 - Local transformation matrix.
Source§

impl SceneNode3D

Source

pub fn get_name(&self) -> &String

Source

pub fn get_mut_name(&mut self) -> &mut String

Source

pub fn set_name(&mut self, val: String) -> &mut Self

Source

pub fn get_parent(&self) -> Option<u32>

Source

pub fn try_get_parent(&self) -> Option<u32>

Source

pub fn get_mut_parent(&mut self) -> &mut Option<u32>

Source

pub fn set_parent(&mut self, val: Option<u32>) -> &mut Self

Source

pub fn get_depth(&self) -> u16

Source

pub fn get_mut_depth(&mut self) -> &mut u16

Source

pub fn set_depth(&mut self, val: u16) -> &mut Self

Source

pub fn get_local_translation(&self) -> Vec3

Source

pub fn get_mut_local_translation(&mut self) -> &mut Vec3

Source

pub fn set_local_translation(&mut self, val: Vec3) -> &mut Self

Source

pub fn get_local_rotation(&self) -> Quat

Source

pub fn get_mut_local_rotation(&mut self) -> &mut Quat

Source

pub fn set_local_rotation(&mut self, val: Quat) -> &mut Self

Source

pub fn get_local_scale(&self) -> Vec3

Source

pub fn get_mut_local_scale(&mut self) -> &mut Vec3

Source

pub fn set_local_scale(&mut self, val: Vec3) -> &mut Self

Source

pub fn get_world_matrix(&self) -> Mat4

Source

pub fn get_mut_world_matrix(&mut self) -> &mut Mat4

Source

pub fn set_world_matrix(&mut self, val: Mat4) -> &mut Self

Source

pub fn get_prev_world_matrix(&self) -> Mat4

Source

pub fn get_mut_prev_world_matrix(&mut self) -> &mut Mat4

Source

pub fn set_prev_world_matrix(&mut self, val: Mat4) -> &mut Self

Source

pub fn get_collection_mask(&self) -> u64

Source

pub fn get_mut_collection_mask(&mut self) -> &mut u64

Source

pub fn set_collection_mask(&mut self, val: u64) -> &mut Self

Source

pub fn get_visible(&self) -> bool

Source

pub fn get_mut_visible(&mut self) -> &mut bool

Source

pub fn set_visible(&mut self, val: bool) -> &mut Self

Source

pub fn get_mesh_id(&self) -> Option<u32>

Source

pub fn try_get_mesh_id(&self) -> Option<u32>

Source

pub fn get_mut_mesh_id(&mut self) -> &mut Option<u32>

Source

pub fn set_mesh_id(&mut self, val: Option<u32>) -> &mut Self

Source

pub fn get_skin_id(&self) -> Option<u32>

Source

pub fn try_get_skin_id(&self) -> Option<u32>

Source

pub fn get_mut_skin_id(&mut self) -> &mut Option<u32>

Source

pub fn set_skin_id(&mut self, val: Option<u32>) -> &mut Self

Source

pub fn get_camera_id(&self) -> Option<u32>

Source

pub fn try_get_camera_id(&self) -> Option<u32>

Source

pub fn get_mut_camera_id(&mut self) -> &mut Option<u32>

Source

pub fn set_camera_id(&mut self, val: Option<u32>) -> &mut Self

Source

pub fn get_light_id(&self) -> Option<u32>

Source

pub fn try_get_light_id(&self) -> Option<u32>

Source

pub fn get_mut_light_id(&mut self) -> &mut Option<u32>

Source

pub fn set_light_id(&mut self, val: Option<u32>) -> &mut Self

Source

pub fn get_morph_weight_offset(&self) -> u32

Source

pub fn get_mut_morph_weight_offset(&mut self) -> &mut u32

Source

pub fn set_morph_weight_offset(&mut self, val: u32) -> &mut Self

Source

pub fn get_morph_weight_count(&self) -> u16

Source

pub fn get_mut_morph_weight_count(&mut self) -> &mut u16

Source

pub fn set_morph_weight_count(&mut self, val: u16) -> &mut Self

Source

pub fn get_extras(&self) -> &BlenderExtrasTags3D

Source

pub fn get_mut_extras(&mut self) -> &mut BlenderExtrasTags3D

Source

pub fn set_extras(&mut self, val: BlenderExtrasTags3D) -> &mut Self

Trait Implementations§

Source§

impl Clone for SceneNode3D

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SceneNode3D

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SceneNode3D

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SceneNode3D

Auto Trait Implementations§

§

impl Forget for SceneNode3D

§

impl Freeze for SceneNode3D
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for SceneNode3D

§

impl RefUnwindSafe for SceneNode3D

§

impl Send for SceneNode3D
where RawVecInner: Send,

§

impl Sync for SceneNode3D
where RawVecInner: Sync,

§

impl Unpin for SceneNode3D
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for SceneNode3D

§

impl UnwindSafe for SceneNode3D
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.