Inherits from UIView
Declared in PARView.h

Overview

PARView handles interface for rendering AR objects provides functionality for non-3d rendering and stacking of labels

Tasks

  •   arViewController

    the PARViewController PARView instance belongs to

    property
  •   stackingAnimationSpeed

    stacking animation speed @remarks speed of label’s movement to new position when stacking is enabled

    property
  • – labelBaseline

    base line at which label’s y-position is calculated @remarks default = 0.5, i.e. middle of view

  • – setLabelBaseline:

    base line at which label’s y-position is calculated * @remarks default = 0.5, i.e. middle of view * this is how the POI position on screen is calculated: relativeScreenPosition.x = (p.x + 1.f) * .5f; relativeScreenPosition.y = (p.y + 1.f) * .5f + (_labelBaseline - 0.5); * @param percentage relative y-position of label baseline, 0.0 for bottom margin of screen, 1.0 for top margin of screen

  • – perspectiveCameraMatrix

    the rotated projection matrix of the camera @remarks for internal use

  • – viewport

    the size of the viewport

  • + activeView

    returns the currently activeView (Deprecated: don’t use this any more, it will be removed from future revisions)

Properties

arViewController

the PARViewController PARView instance belongs to

@property (nonatomic, strong) PARViewController *arViewController

Discussion

the PARViewController PARView instance belongs to

Declared In

PARView.h

stackingAnimationSpeed

stacking animation speed @remarks speed of label’s movement to new position when stacking is enabled

@property (nonatomic, assign, setter=setStackingAnimationSpeed:) float stackingAnimationSpeed

Discussion

stacking animation speed @remarks speed of label’s movement to new position when stacking is enabled

Declared In

PARView.h

Class Methods

activeView

returns the currently activeView (Deprecated: don’t use this any more, it will be removed from future revisions)

+ (PARView *)activeView

Discussion

returns the currently activeView

Declared In

PARView.h

Instance Methods

labelBaseline

base line at which label’s y-position is calculated @remarks default = 0.5, i.e. middle of view

- (float)labelBaseline

Discussion

base line at which label’s y-position is calculated @remarks default = 0.5, i.e. middle of view

Declared In

PARView.h

perspectiveCameraMatrix

the rotated projection matrix of the camera @remarks for internal use

- (PSKMatrix4x4 *)perspectiveCameraMatrix

Discussion

the rotated projection matrix of the camera @remarks for internal use

Declared In

PARView.h

setLabelBaseline:

base line at which label’s y-position is calculated * @remarks default = 0.5, i.e. middle of view * this is how the POI position on screen is calculated: relativeScreenPosition.x = (p.x + 1.f) * .5f; relativeScreenPosition.y = (p.y + 1.f) * .5f + (_labelBaseline - 0.5); * @param percentage relative y-position of label baseline, 0.0 for bottom margin of screen, 1.0 for top margin of screen

- (void)setLabelBaseline:(float)percentage

Discussion

base line at which label’s y-position is calculated * @remarks default = 0.5, i.e. middle of view * this is how the POI position on screen is calculated: relativeScreenPosition.x = (p.x + 1.f) * .5f; relativeScreenPosition.y = (p.y + 1.f) * .5f + (_labelBaseline - 0.5); * @param percentage relative y-position of label baseline, 0.0 for bottom margin of screen, 1.0 for top margin of screen

Declared In

PARView.h

viewport

the size of the viewport

- (CGSize)viewport

Discussion

the size of the viewport

Declared In

PARView.h