Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / BC_FinderPatternInfo.cpp
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #include "barcode.h"\r
8 #include "include/BC_ResultPoint.h"\r
9 #include "include/BC_QRFinderPattern.h"\r
10 #include "include/BC_FinderPatternInfo.h"\r
11 CBC_QRFinderPatternInfo::CBC_QRFinderPatternInfo(CFX_PtrArray *patternCenters)\r
12 {\r
13     m_bottomLeft = (CBC_QRFinderPattern*)(*patternCenters)[0];\r
14     m_topLeft = (CBC_QRFinderPattern*)(*patternCenters)[1];\r
15     m_topRight = (CBC_QRFinderPattern*)(*patternCenters)[2];\r
16 }\r
17 CBC_QRFinderPatternInfo::~CBC_QRFinderPatternInfo()\r
18 {\r
19 }\r
20 CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetBottomLeft()\r
21 {\r
22     return m_bottomLeft;\r
23 }\r
24 CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopLeft()\r
25 {\r
26     return m_topLeft;\r
27 }\r
28 CBC_QRFinderPattern* CBC_QRFinderPatternInfo::GetTopRight()\r
29 {\r
30     return m_topRight;\r
31 }\r