forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuman_body_pose_observation.gen.go
91 lines (75 loc) · 3.9 KB
/
human_body_pose_observation.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/foundation"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [HumanBodyPoseObservation] class.
var HumanBodyPoseObservationClass = _HumanBodyPoseObservationClass{objc.GetClass("VNHumanBodyPoseObservation")}
type _HumanBodyPoseObservationClass struct {
objc.Class
}
// An interface definition for the [HumanBodyPoseObservation] class.
type IHumanBodyPoseObservation interface {
IRecognizedPointsObservation
RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error foundation.IError) RecognizedPoint
RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error foundation.IError) map[HumanBodyPoseObservationJointName]RecognizedPoint
AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName
AvailableJointNames() []HumanBodyPoseObservationJointName
}
// An observation that provides the body points the analysis recognized. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation?language=objc
type HumanBodyPoseObservation struct {
RecognizedPointsObservation
}
func HumanBodyPoseObservationFrom(ptr unsafe.Pointer) HumanBodyPoseObservation {
return HumanBodyPoseObservation{
RecognizedPointsObservation: RecognizedPointsObservationFrom(ptr),
}
}
func (hc _HumanBodyPoseObservationClass) Alloc() HumanBodyPoseObservation {
rv := objc.Call[HumanBodyPoseObservation](hc, objc.Sel("alloc"))
return rv
}
func (hc _HumanBodyPoseObservationClass) New() HumanBodyPoseObservation {
rv := objc.Call[HumanBodyPoseObservation](hc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewHumanBodyPoseObservation() HumanBodyPoseObservation {
return HumanBodyPoseObservationClass.New()
}
func (h_ HumanBodyPoseObservation) Init() HumanBodyPoseObservation {
rv := objc.Call[HumanBodyPoseObservation](h_, objc.Sel("init"))
return rv
}
// Retrieves the recognized point for a joint name. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675603-recognizedpointforjointname?language=objc
func (h_ HumanBodyPoseObservation) RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error foundation.IError) RecognizedPoint {
rv := objc.Call[RecognizedPoint](h_, objc.Sel("recognizedPointForJointName:error:"), jointName, objc.Ptr(error))
return rv
}
// Retrieves the recognized points associated with the joint group name. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675604-recognizedpointsforjointsgroupna?language=objc
func (h_ HumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error foundation.IError) map[HumanBodyPoseObservationJointName]RecognizedPoint {
rv := objc.Call[map[HumanBodyPoseObservationJointName]RecognizedPoint](h_, objc.Sel("recognizedPointsForJointsGroupName:error:"), jointsGroupName, objc.Ptr(error))
return rv
}
// The available joint group names in the observation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675602-availablejointsgroupnames?language=objc
func (h_ HumanBodyPoseObservation) AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName {
rv := objc.Call[[]HumanBodyPoseObservationJointsGroupName](h_, objc.Sel("availableJointsGroupNames"))
return rv
}
// The names of the available joints in the observation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675601-availablejointnames?language=objc
func (h_ HumanBodyPoseObservation) AvailableJointNames() []HumanBodyPoseObservationJointName {
rv := objc.Call[[]HumanBodyPoseObservationJointName](h_, objc.Sel("availableJointNames"))
return rv
}