CIHeightFieldFromMask

Trait CIHeightFieldFromMask 

Source
pub unsafe trait CIHeightFieldFromMask: CIFilterProtocol {
    // Provided methods
    unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
       where Self: Sized + Message { ... }
    unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
       where Self: Sized + Message { ... }
    unsafe fn radius(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setRadius(&self, radius: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Height Field From Mask filter.

Produces a continuous three-dimensional, loft-shaped height field from a grayscale mask. The white values of the mask define those pixels that are inside the height field while the black values define those pixels that are outside. The field varies smoothly and continuously inside the mask, reaching the value 0 at the edge of the mask. You can use this filter with the Shaded Material filter to produce extremely realistic shaded objects.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message,

Available on crate feature CIImage only.

The white values of the mask define those pixels that are inside the height field while the black values define those pixels that are outside. The field varies smoothly and continuously inside the mask, reaching the value 0 at the edge of the mask.

Source

unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message,

Available on crate feature CIImage only.

Setter for inputImage.

Source

unsafe fn radius(&self) -> c_float
where Self: Sized + Message,

The distance from the edge of the mask for the smooth transition is proportional to the input radius. Larger values make the transition smoother and more pronounced. Smaller values make the transition approximate a fillet radius.

Source

unsafe fn setRadius(&self, radius: c_float)
where Self: Sized + Message,

Setter for radius.

Trait Implementations§

Source§

impl ProtocolType for dyn CIHeightFieldFromMask

Source§

const NAME: &'static str = "CIHeightFieldFromMask"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CIHeightFieldFromMask

Implementations on Foreign Types§

Source§

impl<T> CIHeightFieldFromMask for ProtocolObject<T>

Implementors§