Skip to main content

CameraInfo

Struct CameraInfo 

Source
pub struct CameraInfo(/* private fields */);

Implementations§

Source§

impl CameraInfo

Source

pub fn focal(&self) -> f64

Source

pub fn set_focal(&mut self, val: f64)

Source

pub fn with_focal(self, val: f64) -> Self

Source

pub fn aperture(&self) -> f64

Source

pub fn set_aperture(&mut self, val: f64)

Source

pub fn with_aperture(self, val: f64) -> Self

Source

pub fn pixel_aspect(&self) -> f64

Source

pub fn set_pixel_aspect(&mut self, val: f64)

Source

pub fn with_pixel_aspect(self, val: f64) -> Self

Source

pub fn focus_distance(&self) -> f64

Source

pub fn set_focus_distance(&mut self, val: f64)

Source

pub fn with_focus_distance(self, val: f64) -> Self

Source

pub fn f_stop(&self) -> f64

Source

pub fn set_f_stop(&mut self, val: f64)

Source

pub fn with_f_stop(self, val: f64) -> Self

Source

pub fn imaging_distance(&self) -> f64

Source

pub fn set_imaging_distance(&mut self, val: f64)

Source

pub fn with_imaging_distance(self, val: f64) -> Self

Source

pub fn res_x(&self) -> i64

Source

pub fn set_res_x(&mut self, val: i64)

Source

pub fn with_res_x(self, val: i64) -> Self

Source

pub fn res_y(&self) -> i64

Source

pub fn set_res_y(&mut self, val: i64)

Source

pub fn with_res_y(self, val: i64) -> Self

Source

pub fn crop_x(&self) -> [f64; 2]

Source

pub fn set_crop_x(&mut self, val: [f64; 2])

Source

pub fn with_crop_x(self, val: [f64; 2]) -> Self

Source

pub fn crop_y(&self) -> [f64; 2]

Source

pub fn set_crop_y(&mut self, val: [f64; 2])

Source

pub fn with_crop_y(self, val: [f64; 2]) -> Self

Source

pub fn win_x(&self) -> [f64; 2]

Source

pub fn set_win_x(&mut self, val: [f64; 2])

Source

pub fn with_win_x(self, val: [f64; 2]) -> Self

Source

pub fn win_y(&self) -> [f64; 2]

Source

pub fn set_win_y(&mut self, val: [f64; 2])

Source

pub fn with_win_y(self, val: [f64; 2]) -> Self

Source

pub fn clip_near(&self) -> f64

Source

pub fn set_clip_near(&mut self, val: f64)

Source

pub fn with_clip_near(self, val: f64) -> Self

Source

pub fn clip_far(&self) -> f64

Source

pub fn set_clip_far(&mut self, val: f64)

Source

pub fn with_clip_far(self, val: f64) -> Self

Source

pub fn shutter_open(&self) -> f64

Source

pub fn set_shutter_open(&mut self, val: f64)

Source

pub fn with_shutter_open(self, val: f64) -> Self

Source

pub fn shutter_close(&self) -> f64

Source

pub fn set_shutter_close(&mut self, val: f64)

Source

pub fn with_shutter_close(self, val: f64) -> Self

Source

pub fn ortho_zoom(&self) -> f64

Source

pub fn set_ortho_zoom(&mut self, val: f64)

Source

pub fn with_ortho_zoom(self, val: f64) -> Self

Source

pub fn guide_scale(&self) -> f64

Source

pub fn set_guide_scale(&mut self, val: f64)

Source

pub fn with_guide_scale(self, val: f64) -> Self

Source

pub fn projection(&self) -> CameraProjectionType

Source

pub fn set_projection(&mut self, val: CameraProjectionType)

Source

pub fn with_projection(self, val: CameraProjectionType) -> Self

Source

pub fn ptr(&self) -> *const HAPI_CameraInfo

Trait Implementations§

Source§

impl Clone for CameraInfo

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 Debug for CameraInfo

Source§

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

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

impl Default for CameraInfo

Source§

fn default() -> Self

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

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> 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> 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.