pub enum Action {
Reflect,
GhostReflect {
medium: String,
},
Paraxial {
f: f64,
opd_mode: i32,
mirror: bool,
},
Jones {
matrix: [f64; 8],
retarder: Option<Retarder>,
mirror: bool,
},
Binary2 {
phase: Option<Binary2>,
mirror: bool,
},
Fresnel {
c: f64,
k: f64,
a: Vec<f64>,
mirror: bool,
},
CylinderFresnel {
bend: Option<CylFresnel>,
mirror: bool,
},
BirefringentIn {
mode: u8,
axis: [f64; 3],
},
BirefringentOut,
User {
model: String,
config: Config,
mirror: bool,
},
}Expand description
面の働き(屈折は省く)。mirror は反射してから位相・傾きを加える
Variants§
Reflect
反射(鏡)
GhostReflect
屈折面での反射(ゴーストの経路の解析の写し)。medium は光が入らない側の媒質
Paraxial
理想レンズ(焦点距離 f、OPD の求め方 opd_mode)
Jones
Jones 行列 [Ar, Ai, Br, Bi, Cr, Ci, Dr, Di]、または波長ごとに作る偏光子・波長板
Binary2
Binary 2: 位相 Φ = order · Σ coef[i] ρ^{2(i+1)}(形は偶数次非球面)
Fresnel
Fresnel: 交点は頂点の平面、屈折は偶数次非球面(c・k・a)の傾きで
CylinderFresnel
Cylinder Fresnel: 交点は形(cylinder)、屈折は bend の面の傾きで
BirefringentIn
複屈折材の板の入口(mode 0: 常光の成分だけ、2: 波長板。axis は結晶軸)
BirefringentOut
複屈折材の板の出口
User
利用者定義の面(登録のモデルの名前と設定)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Action
impl JsonSchema for Action
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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