pub struct LookTransform { /* private fields */ }Expand description
Applies an OCIO look string between source and destination color spaces.
Implementations§
Source§impl LookTransform
impl LookTransform
Sourcepub fn result_color_space(
config: &Config,
context: &ConstContext,
looks: impl AsRef<str>,
) -> Result<String>
pub fn result_color_space( config: &Config, context: &ConstContext, looks: impl AsRef<str>, ) -> Result<String>
Resolve the final process space of a look expression, including OCIO’s fallbacks. An empty expression returns an empty string, as in native OCIO.
Sourcepub fn set_dst(&self, dst: impl AsRef<str>) -> Result<()>
pub fn set_dst(&self, dst: impl AsRef<str>) -> Result<()>
Set the destination color space name.
Sourcepub fn set_looks(&self, looks: impl AsRef<str>) -> Result<()>
pub fn set_looks(&self, looks: impl AsRef<str>) -> Result<()>
Set the comma-separated look names.
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 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 format_metadata(&self) -> Option<FormatMetadata>
pub fn format_metadata(&self) -> Option<FormatMetadata>
Return format metadata attached to the transform, when available.
Sourcepub fn skip_color_space_conversion(&self) -> bool
pub fn skip_color_space_conversion(&self) -> bool
Return whether color-space conversion is skipped for this look.
Sourcepub fn set_skip_color_space_conversion(&self, skip: bool)
pub fn set_skip_color_space_conversion(&self, skip: bool)
Set whether to skip color-space conversion, panicking on validation error.
Sourcepub fn try_set_skip_color_space_conversion(&self, skip: bool) -> Result<()>
pub fn try_set_skip_color_space_conversion(&self, skip: bool) -> Result<()>
Set color-space conversion bypass and surface any OCIO validation error.
Trait Implementations§
Source§impl Drop for LookTransform
impl Drop for LookTransform
Source§impl TransformHandle for LookTransform
impl TransformHandle for LookTransform
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.