interface YARKViewController
ARビューを表示するためのコントロールクラスです。カメラを使ったAR処理を行います。
タスク
初期化
init
属性の取得、設定
位置設定
POI操作
プロパティー
arrowA
方向矢印の透過度プロパティーです。
(透過度α)0-255
@property (nonatomic) int arrowA
arrowR
方向矢印のR成分プロパティーです。
(R成分)0-255
@property (nonatomic) int arrowR
arrowG
方向矢印のG成分プロパティーです。
(G成分)0-255
@property (nonatomic) int arrowG
arrowB
方向矢印のB成分プロパティーです。
(B成分)0-255
@property (nonatomic) int arrowB
メソッド
setCurrentPos:
現在位置を設定します。
(void) setCurrentPos:(CLLocation*)loc
引数 | 説明 |
---|---|
loc | 現在位置の緯度経度 |
addPOI:
位置情報を追加します。
(int) addPOI:(double) lat :(double) lon :(UIImage*) icon :(int) x :(int) y
引数 | 説明 |
---|---|
lat | 緯度 |
lon | 経度 |
icon | ピン画像を指定 |
x | x座標を設定 |
y | y座標を設定 |
removePOI:
指定した位置情報を削除します。
(void) removePOI:(int) index
引数 | 説明 |
---|---|
index | 削除する位置情報を指定 |
clearPOI:
位置情報をすべて削除します。
(void) clearPOI
setDestination:
目的地を設定します。
(void) setDestination:(int) index
引数 | 説明 |
---|---|
index | 位置情報を指定 |
setRoute:
ルートを設定します。
(void) setRoute:(NSArray*) route
引数 | 説明 |
---|---|
route | 設定するルートの緯度経度を配列で指定 |