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

#include <shapetable.h>

Collaboration diagram for tesseract::Shape:

Public Member Functions

 Shape ()
 
bool Serialize (FILE *fp) const
 
bool DeSerialize (TFile *fp)
 
int destination_index () const
 
void set_destination_index (int index)
 
int size () const
 
const UnicharAndFontsoperator[] (int index) const
 
void SetUnicharId (int index, int unichar_id)
 
void AddToShape (int unichar_id, int font_id)
 
void AddShape (const Shape &other)
 
bool ContainsUnicharAndFont (int unichar_id, int font_id) const
 
bool ContainsUnichar (int unichar_id) const
 
bool ContainsFont (int font_id) const
 
bool ContainsFontProperties (const FontInfoTable &font_table, uint32_t properties) const
 
bool ContainsMultipleFontProperties (const FontInfoTable &font_table) const
 
bool operator== (const Shape &other) const
 
bool IsSubsetOf (const Shape &other) const
 
bool IsEqualUnichars (Shape *other)
 

Private Member Functions

void SortUnichars ()
 

Private Attributes

bool unichars_sorted_
 
int destination_index_
 
GenericVector< UnicharAndFontsunichars_
 

Constructor & Destructor Documentation

◆ Shape()

tesseract::Shape::Shape ( )
inline

Member Function Documentation

◆ AddShape()

void tesseract::Shape::AddShape ( const Shape other)

◆ AddToShape()

void tesseract::Shape::AddToShape ( int  unichar_id,
int  font_id 
)

◆ ContainsFont()

bool tesseract::Shape::ContainsFont ( int  font_id) const

◆ ContainsFontProperties()

bool tesseract::Shape::ContainsFontProperties ( const FontInfoTable font_table,
uint32_t  properties 
) const

◆ ContainsMultipleFontProperties()

bool tesseract::Shape::ContainsMultipleFontProperties ( const FontInfoTable font_table) const

◆ ContainsUnichar()

bool tesseract::Shape::ContainsUnichar ( int  unichar_id) const

◆ ContainsUnicharAndFont()

bool tesseract::Shape::ContainsUnicharAndFont ( int  unichar_id,
int  font_id 
) const

◆ DeSerialize()

bool tesseract::Shape::DeSerialize ( TFile fp)

◆ destination_index()

int tesseract::Shape::destination_index ( ) const
inline

◆ IsEqualUnichars()

bool tesseract::Shape::IsEqualUnichars ( Shape other)

◆ IsSubsetOf()

bool tesseract::Shape::IsSubsetOf ( const Shape other) const

◆ operator==()

bool tesseract::Shape::operator== ( const Shape other) const

◆ operator[]()

const UnicharAndFonts& tesseract::Shape::operator[] ( int  index) const
inline

◆ Serialize()

bool tesseract::Shape::Serialize ( FILE *  fp) const

◆ set_destination_index()

void tesseract::Shape::set_destination_index ( int  index)
inline

◆ SetUnicharId()

void tesseract::Shape::SetUnicharId ( int  index,
int  unichar_id 
)
inline

◆ size()

int tesseract::Shape::size ( ) const
inline

◆ SortUnichars()

void tesseract::Shape::SortUnichars ( )
private

Member Data Documentation

◆ destination_index_

int tesseract::Shape::destination_index_
private

◆ unichars_

GenericVector<UnicharAndFonts> tesseract::Shape::unichars_
private

◆ unichars_sorted_

bool tesseract::Shape::unichars_sorted_
private

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