Skip to main content

SolveKind

Enum SolveKind 

Source
pub enum SolveKind {
Show 20 variants MarginalHeight { height: f64, }, MarginalHeightZone { height: f64, zone: f64, }, ChiefHeight { height: f64, }, Opd { opd: f64, zone: f64, }, PupilPosition, Edge { thickness: f64, radius: f64, }, Position { other: usize, length: f64, }, Compensator { other: usize, sum: f64, }, CenterOfCurvature { other: usize, }, MarginalAngle { angle: f64, }, ChiefAngle { angle: f64, }, MarginalNormal, ChiefNormal, Aplanatic, ElementPower { power: f64, }, ConcentricSurface { other: usize, }, ConcentricRadius { other: usize, }, FNumber { fnum: f64, }, MacroCurv { index: u16, }, MacroThick { index: u16, },
}
Expand description

ソルブの種類と、その条件の値(.zmx の書き方は OpticStudio 2026 R1.01 で実測)。other は参照する別の面

Variants§

§

MarginalHeight

厚さ: 次の面での主波長の近軸マージナル光線の高さ = height(MAZH 高さ 0)

Fields

§height: f64
§

MarginalHeightZone

厚さ: 次の面での実光線(軸上、瞳 (0, zone)、主波長)の高さ = height(MAZH 高さ 帯、帯 ≠ 0)

Fields

§height: f64
§zone: f64
§

ChiefHeight

厚さ: 次の面での近軸主光線の高さ = height(CHZH 高さ 0)

Fields

§height: f64
§

Opd

厚さ: 軸上の視野・主波長の実光線(瞳 (0, zone))の像面での OPD [波] = opd(OPDZ OPD 帯)。OPD は crate::opd::opd(OpticStudio の光線の OPD、OPDC と同じ)

Fields

§opd: f64
§zone: f64
§

PupilPosition

厚さ: 次の面を近軸の瞳(その空間で近軸主光線が軸を切る位置)に置く(TPUP)

§

Edge

厚さ: 半径方向の高さ radius(0 は面の半直径)でのコバ厚 = thickness(EDGE コバ厚 r)

Fields

§thickness: f64
§radius: f64
§

Position

厚さ: 面 other から次の面までの距離(厚さの和 Σ t[other..=この面])= length(TOLE s 長さ)。other が後ろなら、 この面から面 other までの距離 Σ t[この面..other] = length

Fields

§other: usize
§length: f64
§

Compensator

厚さ: 面 other の厚さ + この面の厚さ = sum(TCOM s 和)

Fields

§other: usize
§sum: f64
§

CenterOfCurvature

厚さ: 次の面を面 other の曲率中心に置く(TCOC s 0。平面は R = 1e10)

Fields

§other: usize
§

MarginalAngle

曲率: 面の後の近軸マージナル光線の傾き = angle(CURV c 2 値)

Fields

§angle: f64
§

ChiefAngle

曲率: 面の後の近軸主光線の傾き = angle(CURV c 3 値)

Fields

§angle: f64
§

MarginalNormal

曲率: 近軸マージナル光線が面に垂直に入る(CURV c 5)

§

ChiefNormal

曲率: 近軸主光線が面に垂直に入る(CURV c 6)

§

Aplanatic

曲率: 近軸マージナル光線で不遊(u′/n′ = u/n、CURV c 7)

§

ElementPower

曲率: この面を含む玉(後ろがガラスなら次の面と、そうでなければ前の面と)のパワー = power(CURV c 8 値)

Fields

§power: f64
§

ConcentricSurface

曲率: 曲率中心を面 other の頂点に置く(CURV c 9 s)

Fields

§other: usize
§

ConcentricRadius

曲率: 曲率中心を面 other の曲率中心に置く(CURV c 10 s。平面は R = 1e10)

Fields

§other: usize
§

FNumber

曲率: 面の後の近軸マージナル光線の傾き = −1/(2 fnum)(CURV c 11 F)

Fields

§fnum: f64
§

MacroCurv

曲率: ZPL のマクロ([System::macros] の番号 index)の SOLVERETURN の値(CURV c 12 … “名前”)

Fields

§index: u16
§

MacroThick

厚さ: ZPL のマクロ([System::macros] の番号 index)の SOLVERETURN の値

Fields

§index: u16

Implementations§

Source§

impl SolveKind

Source

pub fn is_curv(&self) -> bool

曲率のソルブ(ほかは厚さ)

Source

pub fn param_kind(&self) -> Kind

決めるパラメータの種類

Source

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

参照する別の面(あれば)

Source

pub fn with_other_surface(self, s: usize) -> SolveKind

参照する別の面を付け替えたもの

Source

pub fn value(&self) -> f64

条件の値(高さ・OPD・コバ厚・長さ・和・角度・パワー・F/#。値のない種類は 0。.zmx のソルブの 1 つ目の値)

Source

pub fn with_value(self, v: f64) -> SolveKind

条件の値を v にしたもの(値のない種類はそのまま)

Trait Implementations§

Source§

impl Clone for SolveKind

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 SolveKind

Source§

impl Debug for SolveKind

Source§

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

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

impl Default for SolveKind

Source§

fn default() -> SolveKind

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SolveKind

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 JsonSchema for SolveKind

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 SolveKind

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 SolveKind

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 SolveKind

Auto Trait Implementations§

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 ()

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.