Struct dae_parser::Camera
source · [−]pub struct Camera {
pub id: Option<String>,
pub name: Option<String>,
pub asset: Option<Box<Asset>>,
pub optics: Optics,
pub imager: Option<Imager>,
pub extra: Vec<Extra>,
}
Expand description
Declares a view of the visual scene hierarchy or scene graph. The camera contains elements that describe the camera’s optics and imager.
Fields
id: Option<String>
A text string containing the unique identifier of the element.
name: Option<String>
The text string name of this element.
asset: Option<Box<Asset>>
Asset management information about this element.
optics: Optics
Describes the field of view and viewing frustum using canonical parameters.
imager: Option<Imager>
Represents the image sensor of a camera (for example, film or CCD).
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations
sourceimpl Camera
impl Camera
sourcepub fn new(ty: ProjectionType) -> Self
pub fn new(ty: ProjectionType) -> Self
Construct a new Camera
with the given projection type.
Trait Implementations
sourceimpl HasId for Camera
impl HasId for Camera
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 Camera
impl ParseLibrary for Camera
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 Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnwindSafe for Camera
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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