pub struct RangeTransform { /* private fields */ }Expand description
Clamps and rescales numeric ranges between input and output domains.
Implementations§
Source§impl RangeTransform
impl RangeTransform
Sourcepub fn style(&self) -> RangeStyle
pub fn style(&self) -> RangeStyle
Return the current range style.
Sourcepub fn set_style(&self, style: RangeStyle)
pub fn set_style(&self, style: RangeStyle)
Set the range style.
Sourcepub fn try_set_style(&self, style: RangeStyle) -> Result<()>
pub fn try_set_style(&self, style: RangeStyle) -> Result<()>
Set the range style and surface any OCIO validation error.
Sourcepub fn min_in_value(&self) -> f64
pub fn min_in_value(&self) -> f64
Return the minimum input value.
Sourcepub fn set_min_in_value(&self, value: f64)
pub fn set_min_in_value(&self, value: f64)
Set the minimum input value.
Sourcepub fn try_set_min_in_value(&self, value: f64) -> Result<()>
pub fn try_set_min_in_value(&self, value: f64) -> Result<()>
Set the minimum input endpoint and surface any OCIO validation error.
Sourcepub fn max_in_value(&self) -> f64
pub fn max_in_value(&self) -> f64
Return the maximum input value.
Sourcepub fn set_max_in_value(&self, value: f64)
pub fn set_max_in_value(&self, value: f64)
Set the maximum input value.
Sourcepub fn try_set_max_in_value(&self, value: f64) -> Result<()>
pub fn try_set_max_in_value(&self, value: f64) -> Result<()>
Set the maximum input endpoint and surface any OCIO validation error.
Sourcepub fn min_out_value(&self) -> f64
pub fn min_out_value(&self) -> f64
Return the minimum output value.
Sourcepub fn set_min_out_value(&self, value: f64)
pub fn set_min_out_value(&self, value: f64)
Set the minimum output value.
Sourcepub fn try_set_min_out_value(&self, value: f64) -> Result<()>
pub fn try_set_min_out_value(&self, value: f64) -> Result<()>
Set the minimum output endpoint and surface any OCIO validation error.
Sourcepub fn max_out_value(&self) -> f64
pub fn max_out_value(&self) -> f64
Return the maximum output value.
Sourcepub fn set_max_out_value(&self, value: f64)
pub fn set_max_out_value(&self, value: f64)
Set the maximum output value.
Sourcepub fn try_set_max_out_value(&self, value: f64) -> Result<()>
pub fn try_set_max_out_value(&self, value: f64) -> Result<()>
Set the maximum output endpoint and surface any OCIO validation error.
Sourcepub fn direction(&self) -> TransformDirection
pub fn direction(&self) -> TransformDirection
Return the transform direction.
Sourcepub fn set_direction(&self, direction: TransformDirection)
pub fn set_direction(&self, direction: TransformDirection)
Set the transform direction.
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 create_editable_copy(&self) -> Result<Self>
pub fn create_editable_copy(&self) -> Result<Self>
Create an independent copy of this transform.
Sourcepub fn has_min_in_value(&self) -> bool
pub fn has_min_in_value(&self) -> bool
Return whether the minimum input value is set.
Sourcepub fn unset_min_in_value(&self)
pub fn unset_min_in_value(&self)
Unset the minimum input value.
Sourcepub fn try_unset_min_in_value(&self) -> Result<()>
pub fn try_unset_min_in_value(&self) -> Result<()>
Unset the minimum input endpoint and surface any OCIO validation error.
Sourcepub fn has_max_in_value(&self) -> bool
pub fn has_max_in_value(&self) -> bool
Return whether the maximum input value is set.
Sourcepub fn unset_max_in_value(&self)
pub fn unset_max_in_value(&self)
Unset the maximum input value.
Sourcepub fn try_unset_max_in_value(&self) -> Result<()>
pub fn try_unset_max_in_value(&self) -> Result<()>
Unset the maximum input endpoint and surface any OCIO validation error.
Sourcepub fn has_min_out_value(&self) -> bool
pub fn has_min_out_value(&self) -> bool
Return whether the minimum output value is set.
Sourcepub fn unset_min_out_value(&self)
pub fn unset_min_out_value(&self)
Unset the minimum output value.
Sourcepub fn try_unset_min_out_value(&self) -> Result<()>
pub fn try_unset_min_out_value(&self) -> Result<()>
Unset the minimum output endpoint and surface any OCIO validation error.
Sourcepub fn has_max_out_value(&self) -> bool
pub fn has_max_out_value(&self) -> bool
Return whether the maximum output value is set.
Sourcepub fn unset_max_out_value(&self)
pub fn unset_max_out_value(&self)
Unset the maximum output value.
Sourcepub fn try_unset_max_out_value(&self) -> Result<()>
pub fn try_unset_max_out_value(&self) -> Result<()>
Unset the maximum output endpoint and surface any OCIO validation error.
Sourcepub fn file_input_bit_depth(&self) -> BitDepth
pub fn file_input_bit_depth(&self) -> BitDepth
Return the bit depth declared for file-based input serialization.
Sourcepub fn set_file_input_bit_depth(&self, bit_depth: BitDepth)
pub fn set_file_input_bit_depth(&self, bit_depth: BitDepth)
Set the serialized input bit depth.
Sourcepub fn try_set_file_input_bit_depth(&self, bit_depth: BitDepth) -> Result<()>
pub fn try_set_file_input_bit_depth(&self, bit_depth: BitDepth) -> Result<()>
Set the serialized input bit depth and surface any OCIO validation error.
Sourcepub fn file_output_bit_depth(&self) -> BitDepth
pub fn file_output_bit_depth(&self) -> BitDepth
Return the bit depth declared for file-based output serialization.
Sourcepub fn set_file_output_bit_depth(&self, bit_depth: BitDepth)
pub fn set_file_output_bit_depth(&self, bit_depth: BitDepth)
Set the serialized output bit depth.
Sourcepub fn try_set_file_output_bit_depth(&self, bit_depth: BitDepth) -> Result<()>
pub fn try_set_file_output_bit_depth(&self, bit_depth: BitDepth) -> Result<()>
Set the serialized output bit depth 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 RangeTransform
impl Drop for RangeTransform
Source§impl TransformHandle for RangeTransform
impl TransformHandle for RangeTransform
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.