pub struct LogCameraTransform { /* private fields */ }Expand description
Camera log OCIO transform with per-channel log-domain parameters.
Implementations§
Source§impl LogCameraTransform
impl LogCameraTransform
Sourcepub fn create_with_lin_side_break(
lin_side_break_values: &[f64; 3],
) -> Result<Self>
pub fn create_with_lin_side_break( lin_side_break_values: &[f64; 3], ) -> Result<Self>
Create a log camera transform with the given linear-side break values.
Sourcepub fn create(lin_side_break_values: &[f64; 3]) -> Result<Self>
pub fn create(lin_side_break_values: &[f64; 3]) -> Result<Self>
Create a log camera transform with the given linear-side break values.
Sourcepub fn create_editable_copy(&self) -> Result<Self>
pub fn create_editable_copy(&self) -> Result<Self>
Create an editable copy that is independent from the original transform.
Sourcepub fn log_side_slope_value(&self) -> Result<[f64; 3]>
pub fn log_side_slope_value(&self) -> Result<[f64; 3]>
Return the per-channel log-side slope values.
Sourcepub fn set_log_side_slope_value(&self, values: &[f64; 3]) -> Result<()>
pub fn set_log_side_slope_value(&self, values: &[f64; 3]) -> Result<()>
Set the per-channel log-side slope values.
Sourcepub fn log_side_offset_value(&self) -> Result<[f64; 3]>
pub fn log_side_offset_value(&self) -> Result<[f64; 3]>
Return the per-channel log-side offset values.
Sourcepub fn set_log_side_offset_value(&self, values: &[f64; 3]) -> Result<()>
pub fn set_log_side_offset_value(&self, values: &[f64; 3]) -> Result<()>
Set the per-channel log-side offset values.
Sourcepub fn lin_side_slope_value(&self) -> Result<[f64; 3]>
pub fn lin_side_slope_value(&self) -> Result<[f64; 3]>
Return the per-channel linear-side slope values.
Sourcepub fn set_lin_side_slope_value(&self, values: &[f64; 3]) -> Result<()>
pub fn set_lin_side_slope_value(&self, values: &[f64; 3]) -> Result<()>
Set the per-channel linear-side slope values.
Sourcepub fn lin_side_offset_value(&self) -> Result<[f64; 3]>
pub fn lin_side_offset_value(&self) -> Result<[f64; 3]>
Return the per-channel linear-side offset values.
Sourcepub fn set_lin_side_offset_value(&self, values: &[f64; 3]) -> Result<()>
pub fn set_lin_side_offset_value(&self, values: &[f64; 3]) -> Result<()>
Set the per-channel linear-side offset values.
Sourcepub fn lin_side_break_value(&self) -> Result<[f64; 3]>
pub fn lin_side_break_value(&self) -> Result<[f64; 3]>
Return the per-channel linear-side break values.
Sourcepub fn set_lin_side_break_value(&self, values: &[f64; 3]) -> Result<()>
pub fn set_lin_side_break_value(&self, values: &[f64; 3]) -> Result<()>
Set the per-channel linear-side break values.
Sourcepub fn linear_slope_value(&self) -> Result<Option<[f64; 3]>>
pub fn linear_slope_value(&self) -> Result<Option<[f64; 3]>>
Return the per-channel linear slope values, if set.
Sourcepub fn set_linear_slope_value(&self, values: &[f64; 3]) -> Result<()>
pub fn set_linear_slope_value(&self, values: &[f64; 3]) -> Result<()>
Set the per-channel linear slope values.
Sourcepub fn unset_linear_slope_value(&self) -> Result<()>
pub fn unset_linear_slope_value(&self) -> Result<()>
Clear the linear slope values, reverting to the default.
Sourcepub fn direction(&self) -> TransformDirection
pub fn direction(&self) -> TransformDirection
Return the evaluation direction.
Sourcepub fn set_direction(&self, direction: TransformDirection)
pub fn set_direction(&self, direction: TransformDirection)
Set the evaluation direction, panicking on validation error.
Sourcepub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
pub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
Set evaluation direction and surface any OCIO validation error.
Sourcepub fn format_metadata(&self) -> Option<FormatMetadata>
pub fn format_metadata(&self) -> Option<FormatMetadata>
Return format metadata attached to the transform, when available.
pub fn format_metadata_v1(&self) -> Option<FormatMetadata>
compat alias; prefer format_metadata()
pub fn format_metadata_v2(&self) -> Option<FormatMetadata>
compat alias; prefer format_metadata()
Trait Implementations§
Source§impl Drop for LogCameraTransform
impl Drop for LogCameraTransform
Source§impl TransformHandle for LogCameraTransform
impl TransformHandle for LogCameraTransform
fn as_ptr(&self) -> *mut c_void
Source§fn diagnostic_text(&self) -> Result<String>
fn diagnostic_text(&self) -> Result<String>
Source§fn try_type_tag(&self) -> Result<i32>
fn try_type_tag(&self) -> Result<i32>
crate::TransformType.Source§fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>
fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>
Source§fn try_validate(&self) -> Result<()>
fn try_validate(&self) -> Result<()>
Source§fn try_create_editable_copy(&self) -> Result<Transform>
fn try_create_editable_copy(&self) -> Result<Transform>
GroupTransform::create_deep_copy.