Skip to main content

Kind

Enum Kind 

Source
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

Source

pub fn is_pick(&self) -> bool

ピックアップの量(crate::pickup::Pickup::what と元)になる種類

Source

pub fn is_pick_only(&self) -> bool

ピックアップ・マクロのソルブだけの量(パラメータには使えない)

Source

pub fn is_table_only(&self) -> bool

多重構成の表の行にだけ使う面の値(半直径・面の無視・開口・面の前後の傾き偏心の値と順序)。最適化の変数・微分には 使えない

Source

pub fn is_coord_return(&self) -> bool

座標の戻りの行(Kind::CoordRet・Kind::CoordRetSurf)

Source

pub fn is_solve_value(&self) -> bool

ソルブ・ピックアップの条件の値(Kind::CurvSolve・Kind::ThickSolve・Kind::ParmSolve)

Source

pub fn tilt_index(&self) -> Option<usize>

傾き偏心の値の位置(dx dy tx ty tz)

Source

pub fn is_object(&self) -> bool

物点の移動(面のパラメータではない)

Source

pub fn is_wave(&self) -> bool

系の波長

Source

pub fn is_global(&self) -> bool

面・玉・群に付かない系全体のパラメータ(物点の移動・波長)。[Param::surf] は使わない

Source

pub fn is_system_value(&self) -> bool

系の値(波長・重み・主波長・開口・開口の種類・絞りの面・視野)。公差・多重構成の行に使い、最適化の変数・微分には使えない

Source

pub fn is_unit(&self) -> bool

玉・群のパラメータ

Source

pub fn is_unit_motion(&self) -> bool

玉・群の剛体の動き(座標系を動かす。面のパラメータの組合せにならない)

Source§

impl Kind

Source

pub fn parse(s: &str) -> Result<Kind>

Source

pub fn name(&self) -> String

Source§

impl Kind

Source

pub fn from_column(code: i64, dst: Kind) -> Option<Option<Kind>>

.zmx のピックアップの列のコード(0 = 同じ列、1 = 半径、2 = 厚さ、3 = 円錐、4 = 半直径、5 + k = パラメータ k。 OpticStudio 2026 R1.01 で実測)から、元の量。先と同じ列なら None

Source

pub fn column(self) -> Option<i64>

.zmx のピックアップの列のコード(Kind::from_column の逆)。列にならない量は None

Trait Implementations§

Source§

impl Clone for Kind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Kind

Source§

impl Debug for Kind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Kind

Source§

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 Eq for Kind

Source§

impl Hash for Kind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl JsonSchema for Kind

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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 more
Source§

impl PartialEq for Kind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Kind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.