tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
ParagraphModel Class Reference

#include <ocrpara.h>

Public Member Functions

 ParagraphModel (tesseract::ParagraphJustification justification, int margin, int first_indent, int body_indent, int tolerance)
 
 ParagraphModel ()
 
bool ValidFirstLine (int lmargin, int lindent, int rindent, int rmargin) const
 
bool ValidBodyLine (int lmargin, int lindent, int rindent, int rmargin) const
 
tesseract::ParagraphJustification justification () const
 
int margin () const
 
int first_indent () const
 
int body_indent () const
 
int tolerance () const
 
bool is_flush () const
 
bool Comparable (const ParagraphModel &other) const
 
STRING ToString () const
 

Private Attributes

tesseract::ParagraphJustification justification_
 
int margin_
 
int first_indent_
 
int body_indent_
 
int tolerance_
 

Constructor & Destructor Documentation

◆ ParagraphModel() [1/2]

ParagraphModel::ParagraphModel ( tesseract::ParagraphJustification  justification,
int  margin,
int  first_indent,
int  body_indent,
int  tolerance 
)
inline

◆ ParagraphModel() [2/2]

ParagraphModel::ParagraphModel ( )
inline

Member Function Documentation

◆ body_indent()

int ParagraphModel::body_indent ( ) const
inline

◆ Comparable()

bool ParagraphModel::Comparable ( const ParagraphModel other) const

◆ first_indent()

int ParagraphModel::first_indent ( ) const
inline

◆ is_flush()

bool ParagraphModel::is_flush ( ) const
inline

◆ justification()

tesseract::ParagraphJustification ParagraphModel::justification ( ) const
inline

◆ margin()

int ParagraphModel::margin ( ) const
inline

◆ tolerance()

int ParagraphModel::tolerance ( ) const
inline

◆ ToString()

STRING ParagraphModel::ToString ( ) const

◆ ValidBodyLine()

bool ParagraphModel::ValidBodyLine ( int  lmargin,
int  lindent,
int  rindent,
int  rmargin 
) const

◆ ValidFirstLine()

bool ParagraphModel::ValidFirstLine ( int  lmargin,
int  lindent,
int  rindent,
int  rmargin 
) const

Member Data Documentation

◆ body_indent_

int ParagraphModel::body_indent_
private

◆ first_indent_

int ParagraphModel::first_indent_
private

◆ justification_

tesseract::ParagraphJustification ParagraphModel::justification_
private

◆ margin_

int ParagraphModel::margin_
private

◆ tolerance_

int ParagraphModel::tolerance_
private

The documentation for this class was generated from the following files: