pub struct Ext { /* private fields */ }Expand description
拡張の表。Ext::default() は同梱の分だけ(カタログは .lbcat・.zmx、面のモデルは ideal_mapping、
プラグインは無し。解析の同梱のプラグインは上の層が重ねる)
Implementations§
Source§impl Ext
impl Ext
pub fn new() -> Self
Sourcepub fn add_catalog_source(&mut self, s: CatalogSource) -> &mut Self
pub fn add_catalog_source(&mut self, s: CatalogSource) -> &mut Self
レンズカタログの形式を足す(同じ拡張子なら後から足したものを使う)
Sourcepub fn add_surface_model(&mut self, m: Arc<dyn SurfaceModel>) -> &mut Self
pub fn add_surface_model(&mut self, m: Arc<dyn SurfaceModel>) -> &mut Self
利用者定義の面のモデルを足す(同じ名前は差し替える)
Sourcepub fn remove_surface_model(&mut self, name: &str) -> bool
pub fn remove_surface_model(&mut self, name: &str) -> bool
面のモデルを外す(あれば true)
Sourcepub fn add_shape_model(&mut self, m: Arc<dyn ShapeModel>) -> &mut Self
pub fn add_shape_model(&mut self, m: Arc<dyn ShapeModel>) -> &mut Self
利用者定義の形のモデルを足す(同じ名前は差し替える)
Sourcepub fn remove_shape_model(&mut self, name: &str) -> bool
pub fn remove_shape_model(&mut self, name: &str) -> bool
形のモデルを外す(あれば true)
Sourcepub fn add_source_model(&mut self, m: Arc<dyn SourceModel>) -> &mut Self
pub fn add_source_model(&mut self, m: Arc<dyn SourceModel>) -> &mut Self
利用者定義の光源のモデルを足す(同じ名前は差し替える)
Sourcepub fn remove_source_model(&mut self, name: &str) -> bool
pub fn remove_source_model(&mut self, name: &str) -> bool
光源のモデルを外す(あれば true)
Sourcepub fn add_material_catalog(
&mut self,
name: &str,
models: Vec<Arc<dyn MaterialModel>>,
) -> &mut Self
pub fn add_material_catalog( &mut self, name: &str, models: Vec<Arc<dyn MaterialModel>>, ) -> &mut Self
利用者定義の材料のカタログを足す(名前は AGF のカタログと同じに引く。大文字小文字は問わず、同じ名前は差し替える)
Sourcepub fn remove_material_catalog(&mut self, name: &str) -> bool
pub fn remove_material_catalog(&mut self, name: &str) -> bool
材料のカタログを外す(あれば true)
Sourcepub fn material_catalog(&self, name: &str) -> Option<&Arc<MaterialCatalog>>
pub fn material_catalog(&self, name: &str) -> Option<&Arc<MaterialCatalog>>
名前の材料のカタログ(大文字小文字は問わない)
Sourcepub fn material_catalogs(&self) -> Vec<String>
pub fn material_catalogs(&self) -> Vec<String>
材料のカタログの名前(足したときの綴り、名前の順)
Sourcepub fn add_coating_source(&mut self, s: Arc<dyn CoatingSource>) -> &mut Self
pub fn add_coating_source(&mut self, s: Arc<dyn CoatingSource>) -> &mut Self
膜のファイル形式を足す(同じ拡張子なら後から足したものを使う。同梱の形式と同じ拡張子ならこちらが勝つ)
Sourcepub fn coating_sources(&self) -> Vec<Arc<dyn CoatingSource>>
pub fn coating_sources(&self) -> Vec<Arc<dyn CoatingSource>>
膜のファイル形式(足したものが新しい順。同梱の形式は含まない)
Sourcepub fn coating_source_for(&self, ext: &str) -> Option<&Arc<dyn CoatingSource>>
pub fn coating_source_for(&self, ext: &str) -> Option<&Arc<dyn CoatingSource>>
拡張子 ext(大文字小文字は問わない)を読む足した膜のファイル形式(新しいものが先)
Sourcepub fn add_coating_catalog(&mut self, name: &str, set: CoatingSet) -> &mut Self
pub fn add_coating_catalog(&mut self, name: &str, set: CoatingSet) -> &mut Self
膜の一覧を足す(名前は大文字小文字を問わず、同じ名前は差し替える。中の膜の引き方は crate::usercoating)
Sourcepub fn remove_coating_catalog(&mut self, name: &str) -> bool
pub fn remove_coating_catalog(&mut self, name: &str) -> bool
膜の一覧を外す(あれば true)
Sourcepub fn coating_catalog(&self, name: &str) -> Option<&Arc<CoatingCatalog>>
pub fn coating_catalog(&self, name: &str) -> Option<&Arc<CoatingCatalog>>
名前の膜の一覧(大文字小文字は問わない)
Sourcepub fn coating_catalogs(&self) -> Vec<String>
pub fn coating_catalogs(&self) -> Vec<String>
膜の一覧の名前(足したときの綴り、名前の順)
Sourcepub fn coating_names(&self) -> Vec<String>
pub fn coating_names(&self) -> Vec<String>
登録した膜の一覧にある膜の名前(名前の順、重なりなし。GUI の膜の欄の候補など)
Sourcepub fn find_coating(&self, coat: &str) -> Option<&Arc<CoatingCatalog>>
pub fn find_coating(&self, coat: &str) -> Option<&Arc<CoatingCatalog>>
膜 coat(大文字小文字は問わない)を持つ膜の一覧(2 つにあれば一覧の名前の順で先)
Sourcepub fn plugins_mut(&mut self) -> &mut Registry
pub fn plugins_mut(&mut self) -> &mut Registry
プラグインの表(足す・外す)
Sourcepub fn slot<T: Any + Send + Sync>(&self) -> Option<&T>
pub fn slot<T: Any + Send + Sync>(&self) -> Option<&T>
上の層の表 T(無ければ None)。検出器の種類・拡張の解析など、core の知らない型の表を載せる欄
Sourcepub fn slot_mut<T: Any + Send + Sync + Clone + Default>(&mut self) -> &mut T
pub fn slot_mut<T: Any + Send + Sync + Clone + Default>(&mut self) -> &mut T
上の層の表 T を変える(無ければ既定値で作る。ほかの表と共有している中身は写してから変える)
Sourcepub fn merge(&mut self, other: &Ext) -> &mut Self
pub fn merge(&mut self, other: &Ext) -> &mut Self
other の分を足す(形式は後ろに、同じ名前の面のモデル・プラグインは other が勝つ。上の層の表は、other に ある型の表を other のもので置き換える)
Sourcepub fn catalog_sources(&self) -> Vec<CatalogSource> ⓘ
pub fn catalog_sources(&self) -> Vec<CatalogSource> ⓘ
カタログを読む形式の一覧(足したものが新しい順に先、最後に同梱の LbcatSource・ZmxFileSource)
Sourcepub fn surface_model(&self, name: &str) -> Result<Arc<dyn SurfaceModel>>
pub fn surface_model(&self, name: &str) -> Result<Arc<dyn SurfaceModel>>
名前の面のモデル
Sourcepub fn surface_models(&self) -> Vec<String>
pub fn surface_models(&self) -> Vec<String>
面のモデルの名前(名前の順)
Sourcepub fn shape_model(&self, name: &str) -> Result<Arc<dyn ShapeModel>>
pub fn shape_model(&self, name: &str) -> Result<Arc<dyn ShapeModel>>
名前の形のモデル
Sourcepub fn shape_models(&self) -> Vec<String>
pub fn shape_models(&self) -> Vec<String>
形のモデルの名前(名前の順)
Sourcepub fn source_model(&self, name: &str) -> Result<Arc<dyn SourceModel>>
pub fn source_model(&self, name: &str) -> Result<Arc<dyn SourceModel>>
名前の光源のモデル
Sourcepub fn source_models(&self) -> Vec<String>
pub fn source_models(&self) -> Vec<String>
光源のモデルの名前(名前の順)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Ext
impl !UnwindSafe for Ext
impl Freeze for Ext
impl Send for Ext
impl Sync for Ext
impl Unpin for Ext
impl UnsafeUnpin for Ext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more