pub struct AllocationTransform { /* private fields */ }Expand description
Maps values into or out of an OCIO allocation domain.
Implementations§
Source§impl AllocationTransform
impl AllocationTransform
pub fn create() -> Result<Self>
pub fn try_allocation(&self) -> Result<Allocation>
pub fn allocation(&self) -> Allocation
pub fn set_allocation(&self, allocation: Allocation)
Sourcepub fn try_set_allocation(&self, allocation: Allocation) -> Result<()>
pub fn try_set_allocation(&self, allocation: Allocation) -> Result<()>
Set the allocation mode and surface any OCIO validation error.
pub fn try_num_vars(&self) -> Result<i32>
pub fn num_vars(&self) -> i32
pub fn try_vars(&self) -> Result<Vec<f32>>
Sourcepub fn try_vars_into(&self, output: &mut [f32]) -> Result<()>
pub fn try_vars_into(&self, output: &mut [f32]) -> Result<()>
Copy variables into an exactly sized buffer without allocating. A length mismatch leaves the buffer untouched.
pub fn vars(&self) -> Vec<f32>
pub fn try_direction(&self) -> Result<TransformDirection>
pub fn direction(&self) -> TransformDirection
pub fn create_editable_copy(&self) -> Result<Self>
pub fn format_metadata(&self) -> Option<FormatMetadata>
pub fn set_direction(&self, direction: TransformDirection)
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.
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Drop for AllocationTransform
impl Drop for AllocationTransform
Source§impl TransformHandle for AllocationTransform
impl TransformHandle for AllocationTransform
fn as_ptr(&self) -> *mut c_void
Source§fn diagnostic_text(&self) -> Result<String>
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>
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<()>
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<()>
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>
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>
fn try_direction(&self) -> Result<TransformDirection>
Query the native direction with validation, for any supported transform.
Auto Trait Implementations§
impl !Send for AllocationTransform
impl !Sync for AllocationTransform
impl Forget for AllocationTransform
impl Freeze for AllocationTransform
impl Move for AllocationTransform
impl RefUnwindSafe for AllocationTransform
impl Unpin for AllocationTransform
impl UnsafeUnpin for AllocationTransform
impl UnwindSafe for AllocationTransform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more