1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef _BC_DETECTIONRESULTCOLUMN_H_ 8 #define _BC_DETECTIONRESULTCOLUMN_H_ 9 class CBC_Codeword; 10 class CBC_BoundingBox; 11 class CBC_DetectionResultColumn { 12 public: 13 CBC_DetectionResultColumn(CBC_BoundingBox* boundingBox); 14 virtual ~CBC_DetectionResultColumn(); 15 CBC_Codeword* getCodewordNearby(int32_t imageRow); 16 int32_t imageRowToCodewordIndex(int32_t imageRow); 17 int32_t codewordIndexToImageRow(int32_t codewordIndex); 18 void setCodeword(int32_t imageRow, CBC_Codeword* codeword); 19 CBC_Codeword* getCodeword(int32_t imageRow); 20 CBC_BoundingBox* getBoundingBox(); 21 CFX_PtrArray* getCodewords(); 22 CFX_ByteString toString(); 23 24 public: 25 CBC_BoundingBox* m_boundingBox; 26 CFX_PtrArray* m_codewords; 27 28 private: 29 static int32_t MAX_NEARBY_DISTANCE; 30 }; 31 #endif 32