-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathARViewController.h
More file actions
60 lines (46 loc) · 1.79 KB
/
ARViewController.h
File metadata and controls
60 lines (46 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// ARView.h
//
// Created by Massimo Donati on 30/11/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <math.h>
// These are the values for full screen:
#define CAMERA_TRANSFORM_X 1
#define CAMERA_TRANSFORM_Y 1.3
// We want full screen so use these dimensions:
//#define SCREEN_WIDTH 480
//#define SCREEN_HEIGTH 960
@interface ARViewController : UIViewController <CLLocationManagerDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate> {
IBOutlet UIView *overlayView;
IBOutlet UIImageView *marker;
IBOutlet UIButton *toMap;
IBOutlet UILabel *xValue;
IBOutlet UIButton *infoMarker;
UIImagePickerController *picker;
CLLocationManager *locationManager;
UIViewController *rootController;
CLLocation *markerLocation;
CLLocation *userLocation;
@private double angle;
}
@property (nonatomic, retain) IBOutlet UIView *overlayView;
@property (nonatomic, retain) IBOutlet UIImageView *marker;
@property (nonatomic, retain) IBOutlet UIButton *toMap;
@property (nonatomic, retain) IBOutlet UILabel *xValue;
@property (nonatomic, retain) IBOutlet IBOutlet UIButton *infoMarker;
@property (nonatomic, retain) UIImagePickerController *picker;
@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, retain) UIViewController *rootController;
@property (nonatomic, retain) CLLocation *markerLocation;
@property (nonatomic, retain) CLLocation *userLocation;
@property (nonatomic, assign) double angle;
-(void) mapView:(id)sender;
-(void)calculatePosition:(CLLocationDirection) heading;
-(double) angleBetweenCoordinate1:(CLLocationCoordinate2D)mark
AndCoordinate2:(CLLocationCoordinate2D)user;
-(void)infoButtonPushed:(id)sender;
@end