RROrbitViewerLayout

Objective-C

@interface RROrbitViewerLayout : RRAbstractLayout

Swift

class RROrbitViewerLayout : RRAbstractLayout

This layout provides an easy to use functionality to interactively view a 3d object. Touch gestures are used to rotate the object in the scene. The size of the object is automatically fitted to the visible view frustum.

  • Default Initializer

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()
  • The renderable that should be rendered on the screen

    Declaration

    Objective-C

    @property (nonatomic, strong) RRRenderable *_Nullable renderable;

    Swift

    var renderable: RRRenderable? { get set }
  • The background color used for rendering the layout

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull backgroundColor;

    Swift

    var backgroundColor: UnsafeMutablePointer<Int32> { get set }
  • The minumum angle for horizontal rotation. Anything smaller than or equal to -180 will allow endless horizontal rotations. Default is -180.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat minHorizontalRotationAngle;

    Swift

    var minHorizontalRotationAngle: Int32 { get set }
  • The maximum angle for horizontal rotation. Anything greater than or equal to 180 will allow endless horizontal rotations. Default is 180

    Declaration

    Objective-C

    @property (nonatomic) CGFloat maxHorizontalRotationAngle;

    Swift

    var maxHorizontalRotationAngle: Int32 { get set }
  • The minumum angle for vertical rotation. Anything smaller than or equal to -180 will allow endless vertical rotations. Default is -89.9 which prevents the object from being rotated upside-down.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat minVerticalRotationAngle;

    Swift

    var minVerticalRotationAngle: Int32 { get set }
  • The maximum angle for vertical rotation. Anything greater than or equal to 180 will allow endless vertical rotations. Default is 89.9 which prevents the object from being rotated upside-down.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat maxVerticalRotationAngle;

    Swift

    var maxVerticalRotationAngle: Int32 { get set }