pub enum Kind {
Show 62 variants
Curv,
Radius,
Conic,
Asph(u8),
Zern(u16),
Thick,
Dx,
Dy,
Tx,
Ty,
Tz,
Dn,
Disp,
ObjX,
ObjY,
Wave(u8),
WaveW(u8),
Primary,
Aper,
ApertureType,
Stop,
FieldType,
Temp,
Pres,
Afocal,
ApodType,
Apod,
Aiming,
Ropd,
AimPupil(u8),
InputPol(u8),
FieldX(u8),
FieldY(u8),
FieldW(u8),
FieldVig(u8, u8),
Unit(UnitKind),
Semi,
Ignore,
ApMax,
ApMin,
ApDx,
ApDy,
ApType,
BeforeOrder,
AfterOrder,
ModelNd,
ModelVd,
ModelDpgf,
Tce,
MechSemi,
ChipZone,
CoordRet,
CoordRetSurf,
CurvSolve(u8),
ThickSolve(u8),
ParmSolve(u8, u8),
Material,
Parm(u8),
Before(u8),
After(u8),
Coating,
User(UserKey),
}Expand description
パラメータの種類
Variants§
Curv
曲率 c
Radius
曲率半径 R = 1/c(0 は平面)
Conic
円錐係数
Asph(u8)
偶数次非球面の係数(0 が r^2、7 が r^16)
Zern(u16)
Zernike Sag の面の項 j の係数(1 から)
Thick
次の面までの厚さ
Dx
Dy
Tx
傾き [deg]
Ty
Tz
Dn
媒質の屈折率のずれ
Disp
媒質の分散の相対変化
ObjX
物点の x・y(有限物体。面の番号は使わない)
ObjY
Wave(u8)
系の波長 i(0 始まり、名前は wave1 から)[µm]。面の番号は使わない。変えると全媒質の屈折率がその波長の値になる (光源の波長のずれの公差・多重構成の行(.zmx の WAVE)用。最適化の変数には使えない)
WaveW(u8)
系の波長 i の重み(0 始まり、名前は wwt1 から)。多重構成の行(.zmx の WLWT)。最適化の変数には使えない
Primary
主波長の番号(1 から。値は整数)。多重構成の行(.zmx の PRWV)。最適化の変数には使えない
Aper
開口の値(開口の種類の単位: 入射瞳径 mm・F 値・NA など)。多重構成の行(.zmx の APER)。最適化の変数には使えない
ApertureType
開口の種類(OpticStudio の番号 0〜5: 入射瞳径・像側 F 値・物体側 NA・絞り径・近軸作動 F 値・物体側の開き角)。 多重構成の行(.zmx の SATP)。最適化の変数には使えない
Stop
絞りの面の番号(値は整数)。多重構成の行(.zmx の STPS)。最適化の変数には使えない
FieldType
視野の種類(OpticStudio の番号 0〜3: 角度・物体高・近軸像高・実像高)。多重構成の行(.zmx の FLTP)。 最適化の変数には使えない
Temp
系の温度 [°C]・気圧 [atm](変えると全媒質の屈折率を作り直す)。多重構成の行(.zmx の TEMP・PRES)。最適化の変数には使えない
Pres
Afocal
アフォーカルの像空間か(1 でアフォーカル)。多重構成の行(.zmx の AFOC)。最適化の変数には使えない
ApodType
アポダイゼーションの種類(OpticStudio の番号 0〜2: 一様・ガウス・cos³)と、ガウスの係数。多重構成の行 (.zmx の APDT・APDF)。最適化の変数には使えない
Apod
Aiming
光線エイミング(0〜2: なし・近軸・実光線)。多重構成の行(.zmx の RAAM)。最適化の変数には使えない
Ropd
OPD の基準(OpticStudio の番号 0〜3、.zmx の ROPD と同じ)。多重構成の行(.zmx の OPDR)。最適化の変数には使えない
AimPupil(u8)
光線エイミングの瞳のずれ x・y・z(0〜2)と圧縮 x・y(3・4)。名前は pshx・pshy・pshz・pscx・pscy。多重構成の行
(.zmx の PSHX〜PSCY)。追跡には効かない(crate::system::AimPupil)。最適化の変数には使えない
InputPol(u8)
系の入射偏光の偏光なし(1 か 0)・振幅 x・y・位相 x・y [deg](0〜4)。名前は polun・poljx・poljy・polpx・polpy。
多重構成の行(.zmx の GPIU・GPJX・GPJY・GPPX・GPPY)。crate::system::InputPolarization。最適化の変数には使えない
FieldX(u8)
視野 i の x・y・重み(0 始まり、名前は fx1・fy1・fwt1 から)。多重構成の行(.zmx の XFIE・YFIE・FLWT)。 最適化の変数には使えない
FieldY(u8)
FieldW(u8)
FieldVig(u8, u8)
視野 i(0 始まり)のけられ係数 j(0〜4 = VDX・VDY・VCX・VCY・VAN、名前は vdx1・vdy1・vcx1・vcy1・van1 から)。 多重構成の行(.zmx の FVDX・FVDY・FVCX・FVCY・FVAN・FTAN)。最適化の変数には使えない
Unit(UnitKind)
玉・群のパラメータ(付く先は Target::Unit)
Semi
半直径(semi-diameter)。ピックアップ・マクロのソルブの量と、多重構成の行(.zmx の SDIA。固定の半直径にし、 浮動開口の面はその半直径でける)。最適化の変数には使えない
Ignore
面を無視するか(1 で無視、0 で使う)。多重構成の行(.zmx の IGNR)。最適化の変数には使えない
ApMax
円形の開口・遮蔽の最大の半径。多重構成の行(.zmx の APMX)。最適化の変数には使えない
ApMin
円形の開口・遮蔽の最小の半径。多重構成の行(.zmx の APMN)。最適化の変数には使えない
ApDx
開口・遮蔽の偏心 x・y。多重構成の行(.zmx の APDX・APDY)。最適化の変数には使えない
ApDy
ApType
開口の種類(OpticStudio の番号: 0 なし・1 円形の開口・2 円形の遮蔽・3 スパイダー・4 矩形・6 楕円・10 浮動。 変えられるのは 0〜2 の間で、半径は今の円形の開口・遮蔽の値)。多重構成の行(.zmx の APTP)。最適化の変数には使えない
BeforeOrder
面の前・後の傾き偏心の順序(0 偏心から、1 傾きから)。多重構成の行(.zmx の CBOR・CAOR)。最適化の変数には使えない
AfterOrder
ModelNd
モデルガラスの nd・vd・ΔPgF(面の材料がモデルガラスのときだけ)。多重構成の行(.zmx の MIND・MABB・MDPG)。 最適化の変数には使えない
ModelVd
ModelDpgf
Tce
面の熱膨張係数 [1e-6/°C](crate::surface::Surface::tce)。多重構成の行(.zmx の TCEX)。最適化の変数には使えない
MechSemi
面の機械半径(System::lens_radius、設定すると固定)・チップゾーン(crate::surface::Surface::chip_zone)。
多重構成の行(.zmx の MCSD・CHZN)。最適化の変数には使えない
ChipZone
CoordRet
座標ブレークの座標の戻り(crate::surface::Surface::coord_return)の戻し方(OpticStudio の番号 0〜3)と戻り先の面。
名前は cror・crsr。多重構成の行(.zmx の CROR・CRSR)。最適化の変数には使えない
CoordRetSurf
CurvSolve(u8)
面の曲率・厚さのソルブ(ピックアップを含む)の条件の値 i(0 始まり、名前は csp1・tsp1 から)と、面タイプのパラメータ
n のピックアップの値 i(名前は psp1_n から)。値の番号は OpticStudio のソルブの窓の順(set_solve_value)。
多重構成の行(.zmx の CSP1・CSP2・TSP1〜TSP3・PSP1〜PSP3)。最適化の変数には使えない
ThickSolve(u8)
ParmSolve(u8, u8)
Material
面の材料。多重構成の行(.zmx の GLSS)だけで、値は行の材料の名前の番号(crate::configs::ConfigRow::names)。
最適化の変数には使えない
Parm(u8)
面タイプのパラメータ(.zmx の PARM の番号、1 から)。ピックアップ・マクロのソルブの量(パラメータは
Kind::Asph などの意味のある名前で)
Before(u8)
面の前の傾き偏心の値 i(0〜4 = dx dy tx ty tz)。ピックアップの量(座標ブレークの面は Kind::Parm、
パラメータは Kind::Dx など)
After(u8)
面の後の傾き偏心の値 i(.zmx の SCBD 2 のピックアップ。元は Kind::Before、反転は倍率 −1)
Coating
膜の名前。ピックアップ(倍率・オフセットは使わない。OpticStudio に無いので .zmx には書かない)と、多重構成の行
(.zmx の COTN。値は行の膜の名前の番号(crate::configs::ConfigRow::names)、空の名前は膜なし)。最適化の変数には使えない
User(UserKey)
利用者定義の形の面の設定の数の項目(名前、crate::usershape)。名前は u_<項目>(面の番号と . で区切るので、項目の名前に . は使えない)
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn is_pick(&self) -> bool
pub fn is_pick(&self) -> bool
ピックアップの量(crate::pickup::Pickup::what と元)になる種類
Sourcepub fn is_pick_only(&self) -> bool
pub fn is_pick_only(&self) -> bool
ピックアップ・マクロのソルブだけの量(パラメータには使えない)
Sourcepub fn is_table_only(&self) -> bool
pub fn is_table_only(&self) -> bool
多重構成の表の行にだけ使う面の値(半直径・面の無視・開口・面の前後の傾き偏心の値と順序)。最適化の変数・微分には 使えない
Sourcepub fn is_coord_return(&self) -> bool
pub fn is_coord_return(&self) -> bool
座標の戻りの行(Kind::CoordRet・Kind::CoordRetSurf)
Sourcepub fn is_solve_value(&self) -> bool
pub fn is_solve_value(&self) -> bool
ソルブ・ピックアップの条件の値(Kind::CurvSolve・Kind::ThickSolve・Kind::ParmSolve)
Sourcepub fn tilt_index(&self) -> Option<usize>
pub fn tilt_index(&self) -> Option<usize>
傾き偏心の値の位置(dx dy tx ty tz)
Sourcepub fn is_system_value(&self) -> bool
pub fn is_system_value(&self) -> bool
系の値(波長・重み・主波長・開口・開口の種類・絞りの面・視野)。公差・多重構成の行に使い、最適化の変数・微分には使えない
Sourcepub fn is_unit_motion(&self) -> bool
pub fn is_unit_motion(&self) -> bool
玉・群の剛体の動き(座標系を動かす。面のパラメータの組合せにならない)
Trait Implementations§
impl Copy for Kind
Source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
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>,
impl Eq for Kind
Source§impl JsonSchema for Kind
impl JsonSchema for Kind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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