tesseract 5.2.0
Loading...
Searching...
No Matches
tesseract::ICOORDELT Class Reference

#include <points.h>

Inheritance diagram for tesseract::ICOORDELT:
tesseract::ELIST_LINK tesseract::ICOORD

Public Member Functions

 ICOORDELT ()=default
 empty constructor
 
 ICOORDELT (ICOORD icoord)
 constructor from ICOORD
 
 ICOORDELT (TDimension xin, TDimension yin)
 
- Public Member Functions inherited from tesseract::ELIST_LINK
 ELIST_LINK ()
 
 ELIST_LINK (const ELIST_LINK &)
 
void operator= (const ELIST_LINK &)
 
- Public Member Functions inherited from tesseract::ICOORD
 ICOORD ()
 empty constructor
 
 ICOORD (TDimension xin, TDimension yin)
 
 ~ICOORD ()=default
 destructor
 
bool DeSerialize (TFile *f)
 
bool Serialize (TFile *f) const
 
TDimension x () const
 access function
 
TDimension y () const
 access_function
 
void set_x (TDimension xin)
 rewrite function
 
void set_y (TDimension yin)
 rewrite function
 
void set_with_shrink (int x, int y)
 Set from the given x,y, shrinking the vector to fit if needed.
 
float sqlength () const
 find sq length
 
float length () const
 find length
 
float pt_to_pt_sqdist (const ICOORD &pt) const
 sq dist between pts
 
float pt_to_pt_dist (const ICOORD &pt) const
 Distance between pts.
 
float angle () const
 find angle
 
bool operator== (const ICOORD &other) const
 test equality
 
bool operator!= (const ICOORD &other) const
 test inequality
 
void rotate (const FCOORD &vec)
 
void setup_render (ICOORD *major_step, ICOORD *minor_step, int *major, int *minor) const
 
bool Serialize (FILE *fp) const
 
bool DeSerialize (bool swap, FILE *fp)
 

Static Public Member Functions

static ICOORDELTdeep_copy (const ICOORDELT *src)
 

Additional Inherited Members

- Protected Attributes inherited from tesseract::ICOORD
TDimension xcoord
 x value
 
TDimension ycoord
 y value
 

Detailed Description

Definition at line 163 of file points.h.

Constructor & Destructor Documentation

◆ ICOORDELT() [1/3]

tesseract::ICOORDELT::ICOORDELT ( )
default

empty constructor

◆ ICOORDELT() [2/3]

tesseract::ICOORDELT::ICOORDELT ( ICOORD  icoord)
inline

constructor from ICOORD

Definition at line 171 of file points.h.

171: ICOORD(icoord) {}
ICOORD()
empty constructor
Definition: points.h:41

◆ ICOORDELT() [3/3]

tesseract::ICOORDELT::ICOORDELT ( TDimension  xin,
TDimension  yin 
)
inline

constructor

Parameters
xinx value
yiny value

Definition at line 175 of file points.h.

175 {
176 xcoord = xin;
177 ycoord = yin;
178 }
TDimension ycoord
y value
Definition: points.h:160
TDimension xcoord
x value
Definition: points.h:159

Member Function Documentation

◆ deep_copy()

static ICOORDELT * tesseract::ICOORDELT::deep_copy ( const ICOORDELT src)
inlinestatic

Definition at line 180 of file points.h.

180 {
181 auto *elt = new ICOORDELT;
182 *elt = *src;
183 return elt;
184 }
ICOORDELT()=default
empty constructor

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