-
Notifications
You must be signed in to change notification settings - Fork 36
/
PLIView.h
149 lines (102 loc) · 3.57 KB
/
PLIView.h
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
* PanoramaGL library
* Version 0.1
* Copyright (c) 2010 Javier Baez <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/EAGLDrawable.h>
#import <QuartzCore/QuartzCore.h>
#import <CoreMotion/CoreMotion.h>
#import <CoreLocation/CoreLocation.h>
#import "PLEnums.h"
#import "PLMath.h"
#import "PLIPanorama.h"
#import "PLCamera.h"
#import "PLViewDelegate.h"
#import "PLILoader.h"
#import "PLTransition.h"
#import "PLTransitionDelegate.h"
@protocol PLIView <NSObject>
@required
#pragma mark -
#pragma mark properties
@property(nonatomic, retain) NSObject<PLIPanorama> *panorama;
@property(nonatomic, readonly, getter=getCamera) PLCamera *camera;
@property(nonatomic) NSTimeInterval animationInterval;
@property(nonatomic) NSUInteger animationFrameInterval;
@property(nonatomic) BOOL isBlocked;
@property(nonatomic) BOOL isAccelerometerEnabled, isAccelerometerLeftRightEnabled, isAccelerometerUpDownEnabled;
@property(nonatomic) float accelerometerSensitivity;
@property(nonatomic) NSTimeInterval accelerometerInterval;
@property(nonatomic) CGPoint startPoint, endPoint;
@property(nonatomic, readonly) CGPoint startFovPoint, endFovPoint;
@property(nonatomic) BOOL isScrollingEnabled;
@property(nonatomic) NSUInteger minDistanceToEnableScrolling;
@property(nonatomic) BOOL isInertiaEnabled;
@property(nonatomic) NSTimeInterval inertiaInterval;
@property(nonatomic) BOOL isResetEnabled, isShakeResetEnabled;
@property(nonatomic) uint8_t numberOfTouchesForReset;
@property(nonatomic, readonly) BOOL isValidForFov;
@property(nonatomic) float shakeThreshold;
@property(nonatomic) BOOL isDisplayLinkSupported;
@property(nonatomic, readonly) BOOL isAnimating, isSensorialRotationRunning;
@property(nonatomic, assign) NSObject<PLViewDelegate> *delegate;
@property(nonatomic, readonly, getter=getIsValidForTransition) BOOL isValidForTransition;
@property(nonatomic, readonly) PLTouchStatus touchStatus;
@property(nonatomic) BOOL isPointerVisible;
#pragma mark -
#pragma mark property methods
-(PLCamera *)getCamera;
-(void)setSceneAlpha:(float)value;
-(BOOL)getIsValidForTransition;
-(UIInterfaceOrientation)currentDeviceOrientation;
+(Class)layerClass;
#pragma mark -
#pragma mark reset methods
-(void)reset;
-(void)resetWithoutAlpha;
-(void)resetSceneAlpha;
#pragma mark -
#pragma mark draw methods
-(void)drawView;
-(void)drawViewNTimes:(NSUInteger)times;
#pragma mark -
#pragma mark render buffer methods
-(void)regenerateRenderBuffer;
#pragma mark -
#pragma mark animation methods
-(void)startAnimation;
-(void)stopAnimation;
#pragma mark -
#pragma mark sensorial rotation methods
-(void)startSensorialRotation;
-(void)stopSensorialRotation;
#pragma mark -
#pragma mark transition methods
-(BOOL)executeTransition:(PLTransition *)transition;
@optional
#pragma mark -
#pragma mark progressbar methods
-(BOOL)showProgressBar;
-(void)resetProgressBar;
-(BOOL)hideProgressBar;
#pragma mark -
#pragma mark clear methods
-(void)clear;
#pragma mark -
#pragma mark load methods
-(void)load:(NSObject<PLILoader> *)loader;
@end