Skip to main content

Transform

Enum Transform 

Source
pub enum Transform {
Show 23 variants File(FileTransform), CDL(CDLTransform), Exponent(ExponentTransform), ExponentWithLinear(ExponentWithLinearTransform), Matrix(MatrixTransform), Log(LogTransform), Range(RangeTransform), Group(GroupTransform), Builtin(BuiltinTransform), FixedFunction(FixedFunctionTransform), Lut1D(Lut1DTransform), Lut3D(Lut3DTransform), ExposureContrast(ExposureContrastTransform), ColorSpace(ColorSpaceTransform), Look(LookTransform), DisplayView(DisplayViewTransform), Allocation(AllocationTransform), LogAffine(LogAffineTransform), LogCamera(LogCameraTransform), GradingPrimary(GradingPrimaryTransform), GradingRGBCurve(GradingRGBCurveTransform), GradingHueCurve(GradingHueCurveTransform), GradingTone(GradingToneTransform),
}

Variants§

Trait Implementations§

Source§

impl TransformHandle for Transform

Source§

fn as_ptr(&self) -> *mut c_void

Source§

fn diagnostic_text(&self) -> Result<String>

Return OCIO’s diagnostic representation, which may include file paths. This text is not a stable interchange format.
Source§

fn try_type_tag(&self) -> Result<i32>

Return the version-independent tag corresponding to crate::TransformType.
Source§

fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>

Change the native evaluation direction without modifying the stored parameters.
Source§

fn try_validate(&self) -> Result<()>

Validate the native transform without copying it or building a processor.
Source§

fn try_create_editable_copy(&self) -> Result<Transform>

Create a native editable copy, preserving the concrete transform type. A copied group shares its children with the original. For an independent built-in group graph, use GroupTransform::create_deep_copy.
Source§

fn try_direction(&self) -> Result<TransformDirection>

Query the native direction with validation, for any supported transform.

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