tesseract  5.0.0-alpha-619-ge9db
ICOORDELT Class Reference

#include <points.h>

Inheritance diagram for ICOORDELT:
ELIST_LINK ICOORD

Public Member Functions

 ICOORDELT ()=default
 empty constructor More...
 
 ICOORDELT (ICOORD icoord)
 constructor from ICOORD More...
 
 ICOORDELT (int16_t xin, int16_t yin)
 
- Public Member Functions inherited from ELIST_LINK
 ELIST_LINK ()
 
 ELIST_LINK (const ELIST_LINK &)
 
void operator= (const ELIST_LINK &)
 
- Public Member Functions inherited from ICOORD
 ICOORD ()
 empty constructor More...
 
 ICOORD (int16_t xin, int16_t yin)
 
 ~ICOORD ()=default
 destructor More...
 
int16_t x () const
 access function More...
 
int16_t y () const
 access_function More...
 
void set_x (int16_t xin)
 rewrite function More...
 
void set_y (int16_t yin)
 rewrite function More...
 
void set_with_shrink (int x, int y)
 Set from the given x,y, shrinking the vector to fit if needed. More...
 
float sqlength () const
 find sq length More...
 
float length () const
 find length More...
 
float pt_to_pt_sqdist (const ICOORD &pt) const
 sq dist between pts More...
 
float pt_to_pt_dist (const ICOORD &pt) const
 Distance between pts. More...
 
float angle () const
 find angle More...
 
bool operator== (const ICOORD &other) const
 test equality More...
 
bool operator!= (const ICOORD &other) const
 test inequality More...
 
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 ICOORD
int16_t xcoord
 x value More...
 
int16_t ycoord
 y value More...
 

Detailed Description

Definition at line 160 of file points.h.

Constructor & Destructor Documentation

◆ ICOORDELT() [1/3]

ICOORDELT::ICOORDELT ( )
default

empty constructor

◆ ICOORDELT() [2/3]

ICOORDELT::ICOORDELT ( ICOORD  icoord)
inline

constructor from ICOORD

Definition at line 167 of file points.h.

168  :ICOORD (icoord) {

◆ ICOORDELT() [3/3]

ICOORDELT::ICOORDELT ( int16_t  xin,
int16_t  yin 
)
inline

constructor

Parameters
xinx value
yiny value

Definition at line 172 of file points.h.

174  {
175  xcoord = xin;
176  ycoord = yin;

Member Function Documentation

◆ deep_copy()

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

Definition at line 178 of file points.h.

179  {
180  auto* elt = new ICOORDELT;
181  *elt = *src;
182  return elt;

The documentation for this class was generated from the following file:
ICOORDELT::ICOORDELT
ICOORDELT()=default
empty constructor
ICOORD::xcoord
int16_t xcoord
x value
Definition: points.h:156
ICOORD::ycoord
int16_t ycoord
y value
Definition: points.h:157
ICOORD::ICOORD
ICOORD()
empty constructor
Definition: points.h:36