One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

JointsSelector

struct · iOS 16.0+ · SDK 27.1

struct JointsSelector

Joints selector from a pose.

Members (8)

init · iOS 16.0+

init

TypeScript
static initIgnoredJoints(ignoredJoints: Array<JointKey>): JointsSelector
Swift declaration
init(ignoredJoints: [JointKey])

Creates a joint selector transformer using a list of joint keys to be ignored. - Parameters: - ignoredJoints: joint keys to be ignored and set to zero in the pose.

get · iOS 16.0+

ignoredJoints

TypeScript
get ignoredJoints(): (Array<JointKey>) | null
Swift declaration
var ignoredJoints: [JointKey]?

A list of joint keys to be ignored.

set · iOS 16.0+

ignoredJoints

TypeScript
set ignoredJoints(value: (Array<JointKey>) | null)
Swift declaration
var ignoredJoints: [JointKey]?

A list of joint keys to be ignored.

init · iOS 16.0+

init

TypeScript
static initSelectedJoints(selectedJoints: Array<JointKey>): JointsSelector
Swift declaration
init(selectedJoints: [JointKey])

Creates a joint selector transformer using a list of joint keys to be selected. - Parameters: - selectedJoints: joint keys to be selected from the pose.

get · iOS 16.0+

selectedJoints

TypeScript
get selectedJoints(): (Array<JointKey>) | null
Swift declaration
var selectedJoints: [JointKey]?

A list of joint keys to be selected.

set · iOS 16.0+

selectedJoints

TypeScript
set selectedJoints(value: (Array<JointKey>) | null)
Swift declaration
var selectedJoints: [JointKey]?

A list of joint keys to be selected.

get · iOS 16.0+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
var debugDescription: String { get }

A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.

method · iOS 16.0+

applied

TypeScript
applied(input: Pose, eventHandler?: (((arg0: Event) => void)) | null): Pose
Swift declaration
func applied(to input: Pose, eventHandler: EventHandler? = nil) -> Pose

Select joints to be included in the pose. Ignored joints will be reset to zero in all fields. - Parameters: - input: A pose. - eventHandler: An event handler. - Returns: A pose with the ignored joints set to zero.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →