| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _BC_BOUNDINGBOX_H_ | 7 #ifndef _BC_BOUNDINGBOX_H_ |
| 8 #define _BC_BOUNDINGBOX_H_ | 8 #define _BC_BOUNDINGBOX_H_ |
| 9 class CBC_CommonBitMatrix; | 9 class CBC_CommonBitMatrix; |
| 10 class CBC_ResultPoint; | 10 class CBC_ResultPoint; |
| 11 class CBC_BoundingBox; | 11 class CBC_BoundingBox |
| 12 class CBC_BoundingBox : public CFX_Object | |
| 13 { | 12 { |
| 14 public: | 13 public: |
| 15 CBC_BoundingBox(CBC_CommonBitMatrix* image, CBC_ResultPoint* topLeft, CBC_Re
sultPoint* bottomLeft, CBC_ResultPoint* topRight, CBC_ResultPoint* bottomRight,
FX_INT32 &e); | 14 CBC_BoundingBox(CBC_CommonBitMatrix* image, CBC_ResultPoint* topLeft, CBC_Re
sultPoint* bottomLeft, CBC_ResultPoint* topRight, CBC_ResultPoint* bottomRight,
FX_INT32 &e); |
| 16 CBC_BoundingBox(CBC_BoundingBox* boundingBox); | 15 CBC_BoundingBox(CBC_BoundingBox* boundingBox); |
| 17 virtual ~CBC_BoundingBox(); | 16 virtual ~CBC_BoundingBox(); |
| 18 static CBC_BoundingBox* merge(CBC_BoundingBox* leftBox, CBC_BoundingBox* rig
htBox, FX_INT32 &e); | 17 static CBC_BoundingBox* merge(CBC_BoundingBox* leftBox, CBC_BoundingBox* rig
htBox, FX_INT32 &e); |
| 19 CBC_BoundingBox* addMissingRows(FX_INT32 missingStartRows, FX_INT32 missingE
ndRows, FX_BOOL isLeft, FX_INT32 &e); | 18 CBC_BoundingBox* addMissingRows(FX_INT32 missingStartRows, FX_INT32 missingE
ndRows, FX_BOOL isLeft, FX_INT32 &e); |
| 20 void setTopRight(CBC_ResultPoint topRight); | 19 void setTopRight(CBC_ResultPoint topRight); |
| 21 void setBottomRight(CBC_ResultPoint bottomRight); | 20 void setBottomRight(CBC_ResultPoint bottomRight); |
| 22 FX_INT32 getMinX(); | 21 FX_INT32 getMinX(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 CBC_ResultPoint* m_topRight; | 33 CBC_ResultPoint* m_topRight; |
| 35 CBC_ResultPoint* m_bottomRight; | 34 CBC_ResultPoint* m_bottomRight; |
| 36 FX_INT32 m_minX; | 35 FX_INT32 m_minX; |
| 37 FX_INT32 m_maxX; | 36 FX_INT32 m_maxX; |
| 38 FX_INT32 m_minY; | 37 FX_INT32 m_minY; |
| 39 FX_INT32 m_maxY; | 38 FX_INT32 m_maxY; |
| 40 void init(CBC_CommonBitMatrix* image, CBC_ResultPoint* topLeft, CBC_ResultPo
int* bottomLeft, CBC_ResultPoint* topRight, CBC_ResultPoint* bottomRight); | 39 void init(CBC_CommonBitMatrix* image, CBC_ResultPoint* topLeft, CBC_ResultPo
int* bottomLeft, CBC_ResultPoint* topRight, CBC_ResultPoint* bottomRight); |
| 41 void calculateMinMaxValues(); | 40 void calculateMinMaxValues(); |
| 42 }; | 41 }; |
| 43 #endif | 42 #endif |
| OLD | NEW |