VRFunctionView.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // VRFunctionView.h
  3. // XMEye
  4. //
  5. // Created by riceFun on 16/12/1.
  6. // Copyright © 2016年 Megatron. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "VRSoft.h"
  10. @protocol VRFunctionViewDelegate <NSObject>
  11. @optional
  12. -(void)changeVRFunctionMode:(_XMVRShape)type WithWarOrCeiling:(int)model;
  13. @end
  14. @interface VRFunctionView : UIView
  15. @property (nonatomic, strong) UIView *menuView;//显示整个鱼眼显示选项的View
  16. @property (nonatomic, strong) UIButton *war;//装在墙壁上;
  17. @property (nonatomic, strong) UIButton *ceiling;//装在天花板上
  18. @property (nonatomic, strong) UIButton *Ball;//球 Shape_Ball
  19. @property (nonatomic, strong) UIButton *Rectangle;//矩形 Shape_Cylinder
  20. @property (nonatomic, strong) UIButton *BallBowl; //碗状和Ball_Hat相反 Shape_Ball_Bowl
  21. @property (nonatomic, strong) UIButton *BallHat;// 球/半球,帽子型 Shape_Ball_Hat
  22. @property (nonatomic, strong) UIButton *Cylinder;//圆柱 Shape_Cylinder
  23. @property (nonatomic, strong) UIButton *Split; //四分按钮
  24. @property (nonatomic, strong) UIButton *dichotomia;//二分按钮
  25. @property (nonatomic, strong) UIButton *threeR; //3画面
  26. @property (nonatomic, strong) UIView *modeView;
  27. @property (nonatomic, strong) UIButton *closeMode;//最左边打开(关闭)menuView
  28. @property (nonatomic, strong) NSMutableArray *functionBtnArray;
  29. @property (nonatomic) BOOL is180VR;//是否是水平全景VR
  30. @property (nonatomic, assign) id <VRFunctionViewDelegate> delegate;
  31. @property (nonatomic,assign) int VRType;
  32. -(instancetype)initWithFrame:(CGRect)frame VRType:(int)is180VR;//初始化,传入VR模式
  33. -(void)layoutVRFunctionView:(BOOL)isCeiling;//刷新模式和界面
  34. -(void)delegateChangeVRMode:(_XMVRShape)type;
  35. -(void)refreshShapeBtnSelectState;
  36. @end