NTLabelStyleBuilder


@interface NTLabelStyleBuilder : NTBillboardStyleBuilder

A builder class for LabelStyle.

  • Constructs a LabelStyleBuilder object with all parameters set to defaults.

    Declaration

    Objective-C

    - (id)init;
  • Returns the horizontal anchor point of the label.

    Declaration

    Objective-C

    - (float)getAnchorPointX;

    Return Value

    The horizontal anchor point of the label.

  • Sets the horizontal anchor point of the label.

    Declaration

    Objective-C

    - (void)setAnchorPointX:(float)anchorPointX;

    Parameters

    anchorPointX

    The new horizontal anchor point for the label. -1 means the left side, 0 the center and 1 the right side of the label. The default is 0.

  • Returns the vertical anchor point of the label.

    Declaration

    Objective-C

    - (float)getAnchorPointY;

    Return Value

    The vertical anchor point of the label.

  • Sets the vertical anchor point of the label.

    Declaration

    Objective-C

    - (void)setAnchorPointY:(float)anchorPointY;

    Parameters

    anchorPointY

    The vertical anchor point for the label. -1 means the bottom, 0 the center and 1 the top of the label. The default is -1.

  • Sets the anchor point for the label. Values will be clamped to [-1, 1] range.

    Declaration

    Objective-C

    - (void)setAnchorPointX:(float)anchorPointX anchorPointY:(float)anchorPointY;

    Parameters

    anchorPointX

    The new horizontal anchor point for the label. -1 means the left side, 0 the center and 1 the right side of the label. The default is 0.

    anchorPointY

    The vertical anchor point for the label. -1 means the bottom, 0 the center and 1 the top of the label. The default is -1.

  • Returns the state of the flippable flag.

    Declaration

    Objective-C

    - (BOOL)isFlippable;

    Return Value

    True if the label is flippable.

  • Sets the state of the flippable flag. If set to true and the orientation mode is set to GROUND the label is allowed to flip 180 degrees to try and face the camera better. This is useful for street names and some other texts. The default is true.

    Declaration

    Objective-C

    - (void)setFlippable:(BOOL)flippable;

    Parameters

    flippable

    The new state of the flippable flag.

  • Returns the orientation mode of the label.

    Declaration

    Objective-C

    - (enum NTBillboardOrientation)getOrientationMode;

    Return Value

    The orientation mode of the label.

  • Sets the orientation mode for the label. The default is BillboardOrientation::FACE_CAMERA_BILLBOARD.

    Declaration

    Objective-C

    - (void)setOrientationMode:(enum NTBillboardOrientation)orientationMode;

    Parameters

    orientationMode

    The new orientation mode for the label.

  • Returns the scaling mode of the label.

    Declaration

    Objective-C

    - (enum NTBillboardScaling)getScalingMode;

    Return Value

    The scaling mode of the label.

  • Sets the scaling mode for the label. The default is BillboardScaling::CONST_SCREEN_SIZE.

    Declaration

    Objective-C

    - (void)setScalingMode:(enum NTBillboardScaling)scalingMode;

    Parameters

    scalingMode

    The new scaling mode for the label.

  • Returns the relative rendering scale for the label.

    Declaration

    Objective-C

    - (float)getRenderScale;

    Return Value

    The relative rendering scale for the label.

  • Sets the relative rendering scale for the label. The default is 1.0. For sharper labels, this should be larger.

    Declaration

    Objective-C

    - (void)setRenderScale:(float)renderScale;

    Parameters

    renderScale

    The new rendering scale value.

  • Builds a new instance of the LabelStyle object using previously set parameters.

    Declaration

    Objective-C

    - (NTLabelStyle *)buildStyle;

    Return Value

    A new LabelStyle object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;