Copies basic attributes of a tab vector for simple operations. Copies things such startpt, endpt, range. Does not copy things such as partners, boxes, or constraints. This is useful if you only need vector information for processing, such as in the table detection code.
| 231 | // This is useful if you only need vector information for processing, such |
| 232 | // as in the table detection code. |
| 233 | TabVector* TabVector::ShallowCopy() const { |
| 234 | TabVector* copy = new TabVector(); |
| 235 | copy->startpt_ = startpt_; |
| 236 | copy->endpt_ = endpt_; |
| 237 | copy->alignment_ = alignment_; |
| 238 | copy->extended_ymax_ = extended_ymax_; |
| 239 | copy->extended_ymin_ = extended_ymin_; |
| 240 | copy->intersects_other_lines_ = intersects_other_lines_; |
| 241 | return copy; |
| 242 | } |
| 243 | |
| 244 | // Extend this vector to include the supplied blob if it doesn't |
| 245 | // already have it. |
no outgoing calls
no test coverage detected