pub struct Object { /* private fields */ }Expand description
Wraps the corresponding Model I/O object counterpart.
Implementations§
Source§impl Object
impl Object
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O object counterpart.
Sourcepub fn info(&self) -> Result<ObjectInfo>
pub fn info(&self) -> Result<ObjectInfo>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn kind(&self) -> ObjectKind
pub fn kind(&self) -> ObjectKind
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn set_name(&self, name: &str) -> Result<()>
pub fn set_name(&self, name: &str) -> Result<()>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn path(&self) -> Option<String>
pub fn path(&self) -> Option<String>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn add_child(&self, child: &Self)
pub fn add_child(&self, child: &Self)
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn children_container(&self) -> Option<ObjectContainer>
pub fn children_container(&self) -> Option<ObjectContainer>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn set_children_container(&self, container: Option<&ObjectContainer>)
pub fn set_children_container(&self, container: Option<&ObjectContainer>)
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn child_count(&self) -> usize
pub fn child_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn child_at(&self, index: usize) -> Option<Self>
pub fn child_at(&self, index: usize) -> Option<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn children(&self) -> Vec<Self>
pub fn children(&self) -> Vec<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn at_path(&self, path: &str) -> Result<Option<Self>>
pub fn at_path(&self, path: &str) -> Result<Option<Self>>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn bounding_box_at_time(&self, time: f64) -> BoundingBox
pub fn bounding_box_at_time(&self, time: f64) -> BoundingBox
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_mesh(&self) -> Option<Mesh>
pub fn as_mesh(&self) -> Option<Mesh>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_light(&self) -> Option<Light>
pub fn as_light(&self) -> Option<Light>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_physically_plausible_light(&self) -> Option<PhysicallyPlausibleLight>
pub fn as_physically_plausible_light(&self) -> Option<PhysicallyPlausibleLight>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_camera(&self) -> Option<Camera>
pub fn as_camera(&self) -> Option<Camera>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_voxel_array(&self) -> Option<VoxelArray>
pub fn as_voxel_array(&self) -> Option<VoxelArray>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_skeleton(&self) -> Option<Skeleton>
pub fn as_skeleton(&self) -> Option<Skeleton>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn as_packed_joint_animation(&self) -> Option<PackedJointAnimation>
pub fn as_packed_joint_animation(&self) -> Option<PackedJointAnimation>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Source§impl Object
impl Object
Sourcepub fn transform_component(&self) -> Option<TransformComponent>
pub fn transform_component(&self) -> Option<TransformComponent>
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.
Sourcepub fn set_transform_component(&self, component: Option<&TransformComponent>)
pub fn set_transform_component(&self, component: Option<&TransformComponent>)
Calls the corresponding Model I/O method on the wrapped Model I/O object counterpart.