OperationNodeAIPanorama.m 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //
  2. // OperationNodeAIPanorama.m
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/31.
  6. //
  7. #import "OperationNodeAIPanorama.h"
  8. #import "LenzSDKConstant.h"
  9. #import "PanoramaGuideView.h"
  10. #import "PanoramaOrientationView.h"
  11. @implementation OperationNodeAIPanorama
  12. @synthesize controller = _controller;
  13. - (SDKCaptureModeIndex)modeIndex{
  14. return SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA;
  15. }
  16. - (NSString *)modeItemString{
  17. return @"智能全景";
  18. }
  19. - (NSString *)modeTitleString{
  20. return LOCALIZATION_STRING_KEY_MODE_TITLE_AI_PANORAMIC;
  21. }
  22. - (void)updateUI{
  23. // self.controller.numberOfImagesLabel.hidden = NO;
  24. // self.controller.numberOfImagesLabel.text = [[NSString alloc] initWithString:LOCALIZATION_STRING_KEY_TIP_FOR_AI_PANORAMA];
  25. }
  26. - (nonnull instancetype)initWithController:(nonnull PCSBaseViewController *)controller {
  27. self = [super init];
  28. if(self){
  29. _controller = controller;
  30. }
  31. return self;
  32. }
  33. - (void)save {
  34. }
  35. - (void)takePhotoButtonTouched {
  36. if (self.AIType == OperationAITypeTap) {
  37. [self.controller takeStillPhoto];
  38. } else {
  39. [super takePhotoButtonTouched];
  40. }
  41. }
  42. - (BOOL)start{
  43. [super start];
  44. BOOL ret = [self.controller startVideoDataOutputing];
  45. return ret;
  46. }
  47. - (void)stop{
  48. [super stop];
  49. dispatch_async(dispatch_get_main_queue(), ^{
  50. [self.controller stopVideoDataOutputing];
  51. });
  52. }
  53. - (void)triggered {
  54. [self stop];
  55. // self.controller.panoramOrientationGuideView.selectedItemIndex = PanoramaOrientationViewUp;
  56. }
  57. - (void)willQuitOnCompletion:(nonnull WillQuitCompletionBlockType)block {
  58. self.controller.panoramaGuideView.hidden = YES;
  59. self.controller.panoramOrientationGuideView.hidden = YES;
  60. }
  61. - (void)discardPhotoResultButtonTouchUpInside{
  62. }
  63. @end