Struct rin::blender::scene_data::SceneData[][src]

pub struct SceneData {
Show fields pub path: Option<PathBuf>, pub roots: Vec<NodeId, Global>, pub arena: Arena<BlenderObject>, pub models: HashMap<ObjectId, NodeId, RandomState>, pub lamps: HashMap<ObjectId, NodeId, RandomState>, pub skeletons: HashMap<ObjectId, NodeId, RandomState>, pub empties: HashMap<ObjectId, NodeId, RandomState>, pub actions: HashMap<ObjectId, Action, RandomState>, pub materials: HashMap<ObjectId, Material, RandomState>, pub meshes: HashMap<ObjectId, Mesh, RandomState>, pub trimeshes: HashMap<ObjectId, TriMesh, RandomState>, pub images: HashMap<ObjectId, Data, RandomState>, pub keys: HashMap<ObjectId, Key, RandomState>, pub trimesh_keys: HashMap<ObjectId, TrimeshKey, RandomState>, pub proxies: HashMap<ObjectId, ObjectId, RandomState>,
}

Fields

path: Option<PathBuf>roots: Vec<NodeId, Global>arena: Arena<BlenderObject>models: HashMap<ObjectId, NodeId, RandomState>lamps: HashMap<ObjectId, NodeId, RandomState>skeletons: HashMap<ObjectId, NodeId, RandomState>empties: HashMap<ObjectId, NodeId, RandomState>actions: HashMap<ObjectId, Action, RandomState>materials: HashMap<ObjectId, Material, RandomState>meshes: HashMap<ObjectId, Mesh, RandomState>trimeshes: HashMap<ObjectId, TriMesh, RandomState>images: HashMap<ObjectId, Data, RandomState>keys: HashMap<ObjectId, Key, RandomState>trimesh_keys: HashMap<ObjectId, TrimeshKey, RandomState>proxies: HashMap<ObjectId, ObjectId, RandomState>

Implementations

impl SceneData[src]

pub fn load(blend: &File) -> SceneData[src]

pub fn load_groups(
    blend: &File,
    group_names: &[&str]
) -> Result<SceneData, Error>
[src]

pub fn load_objects(blend: &File, object_names: &[&str]) -> SceneData[src]

pub fn materials_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Material> + 'a
[src]

pub fn meshes_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Mesh> + 'a
[src]

pub fn trimeshes_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a TriMesh> + 'a
[src]

pub fn actions_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Action> + 'a
[src]

pub fn skeleton(&self, name: &ObjectId) -> Option<&Skeleton>[src]

pub fn skeletons_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Skeleton> + 'a
[src]

pub fn model(&self, name: &ObjectId) -> Option<&Model>[src]

pub fn models_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Model> + 'a
[src]

pub fn trimesh(&self, name: &ObjectId) -> Option<&TriMesh>[src]

pub fn trimodel(&self, name: &ObjectId) -> Option<TriModel<'_>>[src]

pub fn trimodels_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = TriModel<'a>> + 'a
[src]

pub fn trimodels(&self) -> impl Iterator<Item = TriModel<'_>>[src]

pub fn texture(&'a self, image: &'a Image) -> Texture<'a>[src]

pub fn lamp(&self, name: &ObjectId) -> Option<&Lamp>[src]

pub fn lamps_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Lamp> + 'a
[src]

pub fn empty(&self, name: &ObjectId) -> Option<&Empty>[src]

pub fn empties_by_name(
    &'a self,
    name: &'a str
) -> impl Iterator<Item = &'a Empty> + 'a
[src]

Trait Implementations

impl<'de> Deserialize<'de> for SceneData[src]

impl Serialize for SceneData[src]

Auto Trait Implementations

impl RefUnwindSafe for SceneData

impl Send for SceneData

impl Sync for SceneData

impl Unpin for SceneData

impl UnwindSafe for SceneData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]