Inherits from UIView
Declared in PARPoiLabelTemplate.h

Overview

PARPoiLabelTemplate @brief template for how a marker is styled and rendered

  1. use PARPoiLabelTemplate as base class for a view in Interface Builder
  2. use Interface Builder to design how your arObjects should look
  3. make all necessary reference connections
  4. save to a *.xib file and load it as a PARPoiLabelTemplate
  5. pass loaded template to any PARPoiLabel you create

@remarks more info at https://github.com/doPanic/PanicAR/wiki

Tasks

Properties

content

UILabel displaying the description (i.e. additional text content) of the POI

@property (nonatomic, assign) IBOutlet UILabel *content

Discussion

UILabel displaying the description (i.e. additional text content) of the POI

Declared In

PARPoiLabelTemplate.h

distance

UILabel displaying a string formated with the distance of the POI of the POI

@property (nonatomic, assign) IBOutlet UILabel *distance

Discussion

UILabel displaying a string formated with the distance of the POI of the POI

Declared In

PARPoiLabelTemplate.h

image

UIImageView displaying the image of the POI, if no image is set in POI or no UIImageView is assigned no image will be displayed

@property (nonatomic, assign) IBOutlet UIImageView *image

Discussion

UIImageView displaying the image of the POI, if no image is set in POI or no UIImageView is assigned no image will be displayed

Declared In

PARPoiLabelTemplate.h

originalSize

the original size of the label template used internally for updating its appearance

@property (nonatomic, assign) CGSize originalSize

Discussion

the original size of the label template used internally for updating its appearance

Declared In

PARPoiLabelTemplate.h

poiLabel

reference to the PARPoiLabel instance this template belongs to

@property (nonatomic, assign) PARPoiLabel *poiLabel

Discussion

reference to the PARPoiLabel instance this template belongs to

Declared In

PARPoiLabelTemplate.h

title

UILabel displaying the title of the POI

@property (nonatomic, assign) IBOutlet UILabel *title

Discussion

UILabel displaying the title of the POI

Declared In

PARPoiLabelTemplate.h

Class Methods

appearanceCloseRange

distance at which appearance effects start

+ (float)appearanceCloseRange

Discussion

distance at which appearance effects start

Declared In

PARPoiLabelTemplate.h

appearanceFarRange

distance at which appearance effects reach maximum

+ (float)appearanceFarRange

Discussion

distance at which appearance effects reach maximum

Declared In

PARPoiLabelTemplate.h

loadMarkerTemplate:

@brief load a Marker Templated from a XIB file

+ (PARPoiLabelTemplate *)loadMarkerTemplate:(NSString *)xibFilename

Parameters

xibFilename

name of the marker template xib file @ref loadPoiLabelTemplate

Discussion

@brief load a Marker Templated from a XIB file

Declared In

PARPoiLabelTemplate.h

loadPoiLabelTemplate:

@brief load a Marker Templated from a XIB file

+ (PARPoiLabelTemplate *)loadPoiLabelTemplate:(NSString *)xibFilename

Parameters

xibFilename

name of the marker template xib file

Discussion

@brief load a Marker Templated from a XIB file

Declared In

PARPoiLabelTemplate.h

setAppearanceRange:andFarRange:

@brief ranges for calculating appearance effects

+ (void)setAppearanceRange:(float)closeRange andFarRange:(float)farRange

Parameters

closeRange

if poi label is closer than closeRange no effects will be applied

farRange

animation of effects stops at farRange @remarks defaults to close = 500 meters and far = 100 kilometers @remarks the defaul poi label template fades out over distance and gets smaller; implement your own effects in a sub-class

Discussion

@brief ranges for calculating appearance effects

Declared In

PARPoiLabelTemplate.h

Instance Methods

updateAppearance

applys appearance effects to the label based on the current distance to the user and the settings in appearanceCloseRange and appearanceFarRange

- (void)updateAppearance

Discussion

applys appearance effects to the label based on the current distance to the user and the settings in appearanceCloseRange and appearanceFarRange

Declared In

PARPoiLabelTemplate.h