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§
source§impl HasId for Node
impl HasId for Node
source§impl ParseLibrary for Node
impl ParseLibrary for Node
source§fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
Extract the library from a single
LibraryElement
.source§fn mk_element(lib: Library<Self>) -> LibraryElement
fn mk_element(lib: Library<Self>) -> LibraryElement
Make a
LibraryElement
from a Library
.