Struct dae_parser::Node
source · [−]pub struct Node {Show 14 fields
pub id: Option<String>,
pub name: Option<String>,
pub sid: Option<String>,
pub ty: NodeType,
pub layer: Vec<String>,
pub asset: Option<Box<Asset>>,
pub transforms: Vec<Transform>,
pub instance_camera: Vec<Instance<Camera>>,
pub instance_controller: Vec<Instance<Controller>>,
pub instance_geometry: Vec<Instance<Geometry>>,
pub instance_light: Vec<Instance<Light>>,
pub instance_node: Vec<Instance<Node>>,
pub children: Vec<Node>,
pub extra: Vec<Extra>,
}
Expand description
Fields
id: Option<String>
A text string containing the unique identifier of the element.
name: Option<String>
The text string name of this element.
sid: Option<String>
A text string value containing the subidentifier of this element. This value must be unique within the scope of the parent element.
ty: NodeType
The type of the Node
element.
layer: Vec<String>
The layers to which this node belongs.
asset: Option<Box<Asset>>
Asset management information about this element.
transforms: Vec<Transform>
Any combination of geometric transforms.
instance_camera: Vec<Instance<Camera>>
Allows the node to instantiate a camera object.
instance_controller: Vec<Instance<Controller>>
Allows the node to instantiate a controller object.
instance_geometry: Vec<Instance<Geometry>>
Allows the node to instantiate a geometry object.
instance_light: Vec<Instance<Light>>
Allows the node to instantiate a light object.
instance_node: Vec<Instance<Node>>
Allows the node to instantiate a hierarchy of other nodes.
children: Vec<Node>
Allows the node to recursively define hierarchy.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations
Trait Implementations
sourceimpl HasId for Node
impl HasId for Node
sourcefn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
fn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
Extract the relevant LocalMap
field from a LocalMaps
.
sourcefn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
fn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
Extract the relevant LocalMap
field from a LocalMaps
.
sourceimpl ParseLibrary for Node
impl ParseLibrary for Node
sourcefn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
Extract the library from a single LibraryElement
.
sourcefn mk_element(lib: Library<Self>) -> LibraryElement
fn mk_element(lib: Library<Self>) -> LibraryElement
Make a LibraryElement
from a Library
.
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more