objc2_vision/generated/
VNRecognizedPoint3D.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// An extension of VNPoint3D that associates an identifier to the point.
11    ///
12    /// It should be noted that VNRecognizedPoint3D is not intended as an overall replacement of simd float 4x4, but is used by observations that recognize labeled points of interest.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/vision/vnrecognizedpoint3d?language=objc)
15    #[unsafe(super(VNPoint3D, NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    #[cfg(feature = "VNGeometry")]
18    pub struct VNRecognizedPoint3D;
19);
20
21#[cfg(feature = "VNGeometry")]
22unsafe impl NSCoding for VNRecognizedPoint3D {}
23
24#[cfg(feature = "VNGeometry")]
25unsafe impl NSCopying for VNRecognizedPoint3D {}
26
27#[cfg(feature = "VNGeometry")]
28unsafe impl CopyingHelper for VNRecognizedPoint3D {
29    type Result = Self;
30}
31
32#[cfg(feature = "VNGeometry")]
33unsafe impl NSObjectProtocol for VNRecognizedPoint3D {}
34
35#[cfg(feature = "VNGeometry")]
36unsafe impl NSSecureCoding for VNRecognizedPoint3D {}
37
38#[cfg(feature = "VNGeometry")]
39impl VNRecognizedPoint3D {
40    extern_methods!(
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44
45        #[unsafe(method(init))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49        #[cfg(feature = "VNTypes")]
50        /// The is the identifier that provides context as to the kind of point that was recognized.
51        ///
52        /// The string is defined by the model that recognized the point. Usually these are technical labels that are not localized and not meant to be used directly to be presented to an end user in the UI.
53        #[unsafe(method(identifier))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn identifier(&self) -> Retained<VNRecognizedPointKey>;
56    );
57}