#include <points.h>
Inheritance diagram for ICOORDELT:
Definition at line 151 of file points.h.
ICOORDELT::ICOORDELT | ( | ) | [inline] |
ICOORDELT::ICOORDELT | ( | ICOORD | icoord | ) | [inline] |
float ICOORD::angle | ( | ) | const [inline, inherited] |
void ICOORDELT::de_serialise_asc | ( | FILE * | f | ) |
void ICOORDELT::dump | ( | FILE * | ) | const [inline] |
float ICOORD::length | ( | ) | const [inline, inherited] |
ICOORDELT::make_serialise | ( | ICOORDELT | ) |
ICOORD::NEWDELETE2 | ( | ICOORD | ) | const [inline, inherited] |
void ICOORDELT::prep_serialise | ( | ) | const [inline] |
Note that prep_serialise() dump() and de_dump() dont need to do anything more than terminate recursion.
Definition at line 172 of file points.h.
float ICOORD::pt_to_pt_dist | ( | const ICOORD & | pt | ) | const [inline, inherited] |
Definition at line 86 of file points.h.
00087 { 00088 return (float) sqrt (pt_to_pt_sqdist (pt)); 00089 }
float ICOORD::pt_to_pt_sqdist | ( | const ICOORD & | pt | ) | const [inline, inherited] |
Definition at line 77 of file points.h.
References ICOORD::sqlength(), ICOORD::xcoord, and ICOORD::ycoord.
00078 { 00079 ICOORD gap; 00080 00081 gap.xcoord = xcoord - pt.xcoord; 00082 gap.ycoord = ycoord - pt.ycoord; 00083 return gap.sqlength (); 00084 }
void ICOORD::rotate | ( | const FCOORD & | vec | ) | [inline, inherited] |
Rotate an ICOORD by the given (normalized) (cos,sin) vector.
Definition at line 202 of file ipoints.h.
References ICOORD::xcoord, and ICOORD::ycoord.
Referenced by find_cblob_limits().
00203 { 00204 INT16 tmp; 00205 00206 tmp = (INT16) floor (xcoord * vec.x () - ycoord * vec.y () + 0.5); 00207 ycoord = (INT16) floor (ycoord * vec.x () + xcoord * vec.y () + 0.5); 00208 xcoord = tmp; 00209 }
void ICOORD::serialise_asc | ( | FILE * | f | ) | [inherited] |
Convert to ascii
Definition at line 43 of file points.cpp.
References serialise_INT32(), ICOORD::xcoord, and ICOORD::ycoord.
Referenced by BOX::serialise_asc().
00045 { 00046 serialise_INT32(f, xcoord); 00047 serialise_INT32(f, ycoord); 00048 }
void ELIST_LINK::serialise_asc | ( | FILE * | f | ) | [inherited] |
Generates an error, as it should never be called.
Definition at line 32 of file elst.cpp.
References ABORT, ERRCODE::error(), and SERIALISE_LINKS.
00033 { 00034 SERIALISE_LINKS.error ("ELIST_LINK::serialise_asc", ABORT, 00035 "Don't call this, override!"); 00036 }
void ICOORD::set_x | ( | INT16 | xin | ) | [inline, inherited] |
Definition at line 60 of file points.h.
Referenced by BOX::bounding_union(), compute_pitch_sd(), h_edge(), BOX::intersection(), loop_bounding_box(), BOX::move(), operator+=(), operator-=(), process_image_event(), POLY_BLOCK::rotate(), and v_edge().
00061 { 00062 xcoord = xin; //write new value 00063 }
void ICOORD::set_y | ( | INT16 | yin | ) | [inline, inherited] |
Definition at line 64 of file points.h.
Referenced by BOX::bounding_union(), PB_LINE_IT::get_line(), h_edge(), BOX::intersection(), loop_bounding_box(), operator+=(), operator-=(), process_image_event(), POLY_BLOCK::rotate(), and v_edge().
00065 { //value to set 00066 ycoord = yin; 00067 }
float ICOORD::sqlength | ( | ) | const [inline, inherited] |
INT16 ICOORD::y | ( | ) | const [inline, inherited] |
Definition at line 56 of file points.h.
Referenced by PDLSQ::add(), block_edges(), BOX::bounding_union(), BOX::BOX(), POLY_BLOCK::compute_bb(), BOX::contains(), convert_vec_block(), OL_BUCKETS::count_children(), create_edges_window(), create_to_win(), dot_of_i(), draw_raw_edge(), edgesteps_to_edgepts(), OL_BUCKETS::extract_children(), find_cblob_hlimits(), find_cblob_limits(), find_cblob_vlimits(), PB_LINE_IT::get_line(), BLOCK_LINE_IT::get_line(), h_edge(), horizontal_coutline_projection(), BOX::intersection(), join_edges(), loop_bounding_box(), BOX::major_overlap(), QUAD_COEFFS::move(), OL_BUCKETS::OL_BUCKETS(), OL_BUCKETS::operator()(), operator+=(), operator-=(), BOX::overlap(), PDLSQ::remove(), POLY_BLOCK::rotate(), v_edge(), vertical_coutline_projection(), vertical_cunderline_projection(), and POLY_BLOCK::winding_number().
00056 { //access_function 00057 return ycoord; 00058 }
INT16 ICOORD::xcoord [protected, inherited] |
x value
Definition at line 142 of file points.h.
Referenced by ICOORD::de_serialise_asc(), operator *(), operator *=(), operator!(), ICOORD::operator!=(), operator%(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), ICOORD::operator==(), ICOORD::pt_to_pt_sqdist(), ICOORD::rotate(), and ICOORD::serialise_asc().
INT16 ICOORD::ycoord [protected, inherited] |
y value
Definition at line 144 of file points.h.
Referenced by ICOORD::de_serialise_asc(), operator *(), operator *=(), operator!(), ICOORD::operator!=(), operator%(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), ICOORD::operator==(), ICOORD::pt_to_pt_sqdist(), ICOORD::rotate(), and ICOORD::serialise_asc().