RRBodyModel3DState

Objective-C

@interface RRBodyModel3DState : NSObject <NSCopying>

Swift

class RRBodyModel3DState : NSObject, NSCopying

This class represents the state of the RRBodyModel3D class. This measns that it stores the values for all the parameters of this parametric body model. These parameters include shape and pose specific data.

  • Initializer based on an RRBodyModel3D isntance. The resulting instance will not have any parameters modified but represent the body model’s default shape and pose.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBodyModel:(nonnull RRBodyModel3D *)bodyModel;

    Swift

    init(bodyModel: RRBodyModel3D)

    Parameters

    bodyModel

    The parametric body model instance

  • Setter for the body model shape. Seting the shape will update all the shape parameters provided by the body model.

    Declaration

    Objective-C

    - (BOOL)setBodyModelShape:(nonnull RRBodyModel3DShape *)bodyModelShape
             didFailWithError:(NSError *_Nullable *_Nullable)error;

    Swift

    func setBodyModelShape(_ bodyModelShape: RRBodyModel3DShape) throws

    Parameters

    bodyModelShape

    The body model shape instance to apply.

    error

    An optional pointer to an NSError pointer. When this method fails, it will set an NSError instance to this pointer if provided.

    Return Value

    YES if successful, NO otherwise.

  • This property returns the current shape of the parametric body model.

    Declaration

    Objective-C

    @property (strong, readonly) RRBodyModel3DShape *_Nonnull bodyModelShape;

    Swift

    var bodyModelShape: RRBodyModel3DShape { get }
  • This property returns the parametric body model instance this RRBodyModel3DState instance was initialized with.

    Declaration

    Objective-C

    @property (strong, readonly) RRBodyModel3D *_Nonnull bodyModel;

    Swift

    var bodyModel: RRBodyModel3D { get }