Inherits from NSObject
Conforms to PARSensorDelegate
Declared in PARController.h
PARController.mm

Overview

@class PARController @brief singleton class that manages PAR data used by PARViewController subclasses

Tasks

Other Methods

Other Methods

  • – arDidUpdateLocation

    Info Update Callback sent to delegate when location or heading changes use this to change the output in the infoLabel or to perform other output functions

Other Methods

  • – arDidChangeOrientation:

    Device Orientation Changed Callback sent to delegate when arOrientation changed, use it to adjust PAR views (like radar)

Objects Methods

Config Methods

Class Methods

deviceSupportsAR

checks if the device supports Augmented Reality functionality

+ (BOOL)deviceSupportsAR

Return Value

YES if PAR functionality is supported by the device’s sensors @remarks returns also YES on devices without a camera

Discussion

checks if the device supports Augmented Reality functionality

Declared In

PARController.h

sharedARController

shared PARController

+ (PARController *)sharedARController

Discussion

shared PARController

Declared In

PARController.h

Instance Methods

addMarker:

adds an PARPoiLabel to the controller Marker needs to have location!

- (PARPoiLabel *)addMarker:(PARPoiLabel *)marker, ...

Discussion

adds an PARPoiLabel to the controller Marker needs to have location!

Declared In

PARController+Objects.h

addMarkerAtLocation:atLocation:

adds the PARPoiLabel at the given location

- (PARPoiLabel *)addMarkerAtLocation:(PARPoiLabel *)marker atLocation:(CLLocation *)_location, ...

Parameters

atLocation:

set this location to the marker and add it to the controller

Discussion

adds the PARPoiLabel at the given location

Declared In

PARController+Objects.h

addMarkers:

adds an array of PARPoiLabel-type Objects to the controller Markers need to have locations assign, markers without will be omitted!

- (void)addMarkers:(NSArray *)array, ...

Discussion

adds an array of PARPoiLabel-type Objects to the controller Markers need to have locations assign, markers without will be omitted!

Declared In

PARController+Objects.h

addObjects:

adds an array of PARObjectDelegate-type Objects to the controller Objects need to have locations assign, markers without will be omitted!

- (void)addObjects:(NSArray *)anArray

Parameters

anArray

the collection of objects to be added

Discussion

adds an array of PARObjectDelegate-type Objects to the controller Objects need to have locations assign, markers without will be omitted!

Declared In

PARController+Objects.h

arDidChangeOrientation:

Device Orientation Changed Callback sent to delegate when arOrientation changed, use it to adjust PAR views (like radar)

- (void)arDidChangeOrientation:(UIInterfaceOrientation)orientation

Parameters

orientation

the new orientation

Discussion

Device Orientation Changed Callback sent to delegate when arOrientation changed, use it to adjust PAR views (like radar)

Declared In

PARSensorDelegate.h

arDidUpdateLocation

Info Update Callback sent to delegate when location or heading changes use this to change the output in the infoLabel or to perform other output functions

- (void)arDidUpdateLocation

Discussion

Info Update Callback sent to delegate when location or heading changes use this to change the output in the infoLabel or to perform other output functions

Declared In

PARSensorDelegate.h

clearMarkers

remove all PARPoiLabels from the controller

- (void)clearMarkers

Discussion

remove all PARPoiLabels from the controller

Declared In

PARController+Objects.h

clearObjects

remove all objects from the controller

- (void)clearObjects

Discussion

remove all objects from the controller

Declared In

PARController+Objects.h

freeMemory

free as much memory as possible (mainly by releasing OGL memory occupied by PARPoiLabel textures)

- (void)freeMemory

Discussion

free as much memory as possible (mainly by releasing OGL memory occupied by PARPoiLabel textures)

Declared In

PARController.h

numberOfMarkers

the number of PARPoiLabels currently added to the Controller

- (int)numberOfMarkers

Return Value

the number of PARPoiLabels currently added to the Controller

Declared In

PARController+Objects.h

numberOfObjects

the number of objects currently added to the Controller

- (int)numberOfObjects

Return Value

the number of objects currently added to the Controller

Declared In

PARController+Objects.h

removeMarker:

remove a PARPoiLabel object

- (void)removeMarker:(PARPoiLabel *)object, ...

Discussion

remove a PARPoiLabel object

Declared In

PARController+Objects.h

removeObject:

remove an PARObjectDelegate object

- (void)removeObject:(id<PARObjectDelegate>)anObject

Parameters

anObject

the object to add (implements @ref PARObjectDelegate)

Discussion

remove an PARObjectDelegate object

Declared In

PARController+Objects.h

resumeFromBackground

resume PARController

- (void)resumeFromBackground

Discussion

resume PARController

Declared In

PARController.h

setDefaultConfig

resets the default config @remarks: see individual settings for defaults

- (void)setDefaultConfig

Discussion

resets the default config @remarks: see individual settings for defaults

Declared In

PARController+Config.h

stop

will be called in PARViewController:viewWillDisappear

- (void)stop

Discussion

will be called in PARViewController:viewWillDisappear

Declared In

PARController.h

suspendToBackground

suspend PARController

- (void)suspendToBackground

Discussion

suspend PARController

Declared In

PARController.h