AbstractGeometryImageObject

Objective-C


@interface AbstractGeometryImageObject : NSObject

Swift

class AbstractGeometryImageObject : NSObject

This class encapsulates abstract geometry image information.

  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Returns the schematic image of the next turn.

    Declaration

    Objective-C

    - (nullable UIImage *)getImage:(CGSize)size
                  colorActiveInner:(nonnull UIColor *)colorActiveIn
                  colorActiveOuter:(nonnull UIColor *)colorActiveOut
                colorInactiveInner:(nonnull UIColor *)colorInactiveIn
                colorInactiveOuter:(nonnull UIColor *)colorInactiveOut;

    Swift

    func getImage(_ size: CGSize, colorActiveInner colorActiveIn: UIColor, colorActiveOuter colorActiveOut: UIColor, colorInactiveInner colorInactiveIn: UIColor, colorInactiveOuter colorInactiveOut: UIColor) -> UIImage?

    Parameters

    size

    The size in pixels.

    colorActiveIn

    The inner active color.

    colorActiveOut

    The outer active color.

    colorInactiveIn

    The inner inactive color.

    colorInactiveOut

    The outer inactive color.

  • Returns the render abstract geometry image.

    Declaration

    Objective-C

    - (nullable UIImage *)getImage:(CGSize)size
                             scale:(CGFloat)scale
                               ppi:(NSInteger)ppi
                  colorActiveInner:(nonnull UIColor *)colorActiveIn
                  colorActiveOuter:(nonnull UIColor *)colorActiveOut
                colorInactiveInner:(nonnull UIColor *)colorInactiveIn
                colorInactiveOuter:(nonnull UIColor *)colorInactiveOut;

    Swift

    func getImage(_ size: CGSize, scale: CGFloat, ppi: Int, colorActiveInner colorActiveIn: UIColor, colorActiveOuter colorActiveOut: UIColor, colorInactiveInner colorInactiveIn: UIColor, colorInactiveOuter colorInactiveOut: UIColor) -> UIImage?

    Parameters

    size

    The size in pixels.

    scale

    The screen scale factor.

    ppi

    The screen pixel per inch.

    colorActiveIn

    The inner active color.

    colorActiveOut

    The outer active color.

    colorInactiveIn

    The inner inactive color.

    colorInactiveOut

    The outer inactive color.