Barcode Xpress Mobile for iOS
 All Classes Functions Variables Properties Pages
BXDemoViewController.h
1 /**************************************************************
2  * Copyright 2011 - Accusoft Corporation, Tampa Florida. *
3  * This sample code is provided to Accusoft licensees "as is" *
4  * with no restrictions on use or modification. No warranty *
5  * for use of this sample code is provided by Accusoft. *
6  **************************************************************/
7 
16 #import <UIKit/UIKit.h>
17 #import <AVFoundation/AVFoundation.h>
18 #import "BXDemoAppDelegate.h"
19 
20 @class BXInterface;
21 @class BXResult;
22 
26 @interface BXDemoViewController : UIViewController {
30  AVCaptureVideoPreviewLayer *previewLayer;
32  UIImageView *cameraImage;
34  UIView *cameraPreview;
36  UIImageView *hashImage;
38  UIImageView *laserImage;
40  UIImageView *thumbnailImage;
42  UITextView *resultText;
44  UILabel *processLabel;
46  UIButton *backButton;
48  UIButton *bxIcon;
50  UIScrollView *scrollView;
53 }
54 
56 @property (nonatomic, strong) IBOutlet BXDemoAppDelegate *appDel;
58 @property (nonatomic, strong) AVCaptureVideoPreviewLayer *previewLayer;
60 @property (nonatomic, strong) IBOutlet UIImageView *cameraImage;
62 @property (nonatomic, strong) UIView *cameraPreview;
64 @property (nonatomic, strong) IBOutlet UIImageView *hashImage;
66 @property (nonatomic, strong) IBOutlet UIImageView *laserImage;
68 @property (nonatomic, strong) IBOutlet UIImageView *thumbnailImage;
70 @property (nonatomic, strong) IBOutlet UITextView *resultText;
72 @property (nonatomic, strong) IBOutlet UILabel *processLabel;
74 @property (nonatomic, strong) IBOutlet UIButton *backButton;
76 @property (nonatomic, strong) IBOutlet UIButton *bxIcon;
78 @property (nonatomic, strong) IBOutlet UIScrollView *scrollView;
80 @property (nonatomic) BXInterface *barcodeXpress;
81 
85 -(void)animateLaser;
86 
93 -(void)createBorder;
94 
99 -(void)createLaser;
100 
111 -(UIImage *)drawBarcodeBorder :(UIImage *)image :(BXResult*)result;
112 
120 -(IBAction)onClickBackButton:(id)sender;
121 
128 -(IBAction)onClickAccusoft:(id)sender;
129 
135 -(const char *)reportVersion;
136 
142 -(void)setBarcodeTypesUsingSettings;
143 
149 - (void) setCameraPreviewTransform:(UIInterfaceOrientation)toInterfaceOrientation;
150 
155 -(UIImageOrientation)getImageOrientationFromUIOrientation :(UIInterfaceOrientation) orientation;
156 
157 @end
Controls and Displays the view presented to the user for BXDemo.
Definition: BXDemoViewController.h:26
UITextView * resultText
The value decoded from the barcode.
Definition: BXDemoViewController.h:42
UIScrollView * scrollView
Scrollview that contains thumbnailImage and resultText.
Definition: BXDemoViewController.h:50
UIImageView * hashImage
Semi-opaque viewfinder overlay.
Definition: BXDemoViewController.h:36
UIButton * backButton
Button that restarts scanning and closes the results Views.
Definition: BXDemoViewController.h:46
UIButton * bxIcon
Accusoft icon.
Definition: BXDemoViewController.h:48
UILabel * processLabel
The "Processing.." text that moves once for each frame that is sent for decoding. ...
Definition: BXDemoViewController.h:44
UIImageView * thumbnailImage
Image inside of which a barcode was decoded.
Definition: BXDemoViewController.h:40
UIView * cameraPreview
Preview imagery from the camera.
Definition: BXDemoViewController.h:34
UIImageView * laserImage
Laser-like line across center of the viewfinder.
Definition: BXDemoViewController.h:38
Manages access to the camera, executes callbacks, and executes Barcode Xpress library functions to pe...
Definition: BarcodeXpressIOS.h:272
BXInterface * barcodeXpress
A reference to the Recognition Library.
Definition: BXDemoViewController.h:52
Performs application delegation responsibilies for BXDemo.
Definition: BXDemoAppDelegate.h:22
UIImageView * cameraImage
Image from camera, optionally displays images before they are sent for decoding.
Definition: BXDemoViewController.h:32
BXDemoAppDelegate * appDel
AppDelegate.
Definition: BXDemoViewController.h:28
Defines a barcode result returned by the iOS Barcode Xpress SDK.
Definition: BarcodeXpressIOS.h:148
AVCaptureVideoPreviewLayer * previewLayer
Preview Layer, where all camera images are displayed.
Definition: BXDemoViewController.h:30