pub struct GradingPrimaryTransform { /* private fields */ }Expand description
OCIO primary grading transform for lift/gamma/gain-style controls.
Implementations§
Source§impl GradingPrimaryTransform
impl GradingPrimaryTransform
Sourcepub fn create_with_style(style: GradingStyle) -> Result<Self>
pub fn create_with_style(style: GradingStyle) -> Result<Self>
Create a primary grading transform with the given style (alias for Self::create).
Sourcepub fn create(style: GradingStyle) -> Result<Self>
pub fn create(style: GradingStyle) -> Result<Self>
Create a new primary grading transform with the given style.
Sourcepub fn create_editable_copy(&self) -> Result<Self>
pub fn create_editable_copy(&self) -> Result<Self>
Create an independent, editable copy of this transform.
Sourcepub fn style(&self) -> GradingStyle
pub fn style(&self) -> GradingStyle
Return the current grading style (Log, Lin, or Video).
Sourcepub fn set_style(&self, style: GradingStyle)
pub fn set_style(&self, style: GradingStyle)
Set the grading style, panicking on failure.
Sourcepub fn try_set_style(&self, style: GradingStyle) -> Result<()>
pub fn try_set_style(&self, style: GradingStyle) -> Result<()>
Set the grading style and surface any OCIO validation error.
Sourcepub fn value(&self) -> GradingPrimary
pub fn value(&self) -> GradingPrimary
Return the current primary grading values, or style defaults on failure.
Use Self::try_value to distinguish an OCIO error from real values.
Sourcepub fn try_value(&self) -> Result<GradingPrimary>
pub fn try_value(&self) -> Result<GradingPrimary>
Return the current primary grading values, preserving native errors. The fixed-size value is copied into a stack buffer without allocation.
pub fn copy_value(&self) -> GradingPrimary
compat alias; prefer value()
Sourcepub fn set_value(&self, value: &GradingPrimary)
pub fn set_value(&self, value: &GradingPrimary)
Set the primary grading control values, panicking on failure.
Sourcepub fn try_set_value(&self, value: &GradingPrimary) -> Result<()>
pub fn try_set_value(&self, value: &GradingPrimary) -> Result<()>
Replace the primary grading controls and surface any OCIO validation error.
pub fn set_value_from_f64(&self, value: &GradingPrimary)
compat alias; prefer set_value(&GradingPrimary)
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
Return true if this transform is dynamic (values can be updated at runtime).
Sourcepub fn make_dynamic(&self)
pub fn make_dynamic(&self)
Make this transform dynamic, panicking on failure.
Sourcepub fn try_make_dynamic(&self) -> Result<()>
pub fn try_make_dynamic(&self) -> Result<()>
Make this transform dynamic and surface any OCIO validation error.
Sourcepub fn make_non_dynamic(&self)
pub fn make_non_dynamic(&self)
Make this transform non-dynamic, panicking on failure.
Sourcepub fn try_make_non_dynamic(&self) -> Result<()>
pub fn try_make_non_dynamic(&self) -> Result<()>
Make this transform non-dynamic and surface any OCIO validation error.
Sourcepub fn direction(&self) -> TransformDirection
pub fn direction(&self) -> TransformDirection
Return the current transform direction.
Sourcepub fn set_direction(&self, direction: TransformDirection)
pub fn set_direction(&self, direction: TransformDirection)
Set the transform direction, panicking on failure.
Sourcepub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
pub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
Set the transform direction and surface any OCIO validation error.
Sourcepub fn format_metadata(&self) -> Option<FormatMetadata>
pub fn format_metadata(&self) -> Option<FormatMetadata>
Return the format metadata associated with this transform, if any.
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 GradingPrimaryTransform
impl Drop for GradingPrimaryTransform
Source§impl TransformHandle for GradingPrimaryTransform
impl TransformHandle for GradingPrimaryTransform
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.