TLIB documentation
Public Member Functions | |
| tlLine () | |
| tlLine (tlLine *line) | |
| tlLine (float theta, float r) | |
| tlLine (int x1, int y1, int x2, int y2) | |
| tlLine (tlPoint *p1, tlPoint *p2) | |
| virtual | ~tlLine () |
| int | set (tlLine *line) |
| int | set (float theta, float r) |
| int | set (int x1, int y1, int x2, int y2) |
| int | set (tlPoint *p1, tlPoint *p2) |
| int | fit (tlChain *chain) |
| int | clip (tlRect *rect) |
| int | clip (int width, int height) |
| int | copy (tlLine *line) |
| int | copyTo (tlLine *line) |
| tlLine::tlLine | ( | ) |
| tlLine::tlLine | ( | tlLine * | line | ) |
Constructor.
| line | pointer to another tlLine to copy parameters from. |
| tlLine::tlLine | ( | float | ang, | |
| float | rad | |||
| ) |
Constructor.
| ang | line angle in polar representation (in [rad]). | |
| rad | line radius in polar representation (in [pix]). |
| tlLine::tlLine | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
Constructor.
| x1 | first segment extremity X coord in [pix]. | |
| y1 | first segment extremity Y coord in [pix]. | |
| x2 | second segment extremity X coord in [pix]. | |
| y2 | second segment extremity Y coord in [pix]. |
Constructor.
| pt1 | first segment extremity. | |
| pt2 | second segment extremity. |
| tlLine::~tlLine | ( | ) | [virtual] |
| int tlLine::set | ( | tlLine * | line | ) |
Copy parameters from an existing tlLine object.
| line | pointer to another tlLine to copy parameters from. |
| int tlLine::set | ( | float | ang, | |
| float | rad | |||
| ) |
Define the line parameters in polar coordonate system.
| ang | line angle in polar representation (in [rad]). | |
| rad | line radius in polar representation (in [pix]). |
| int tlLine::set | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
Define the line segment parameters from the location of its extremities.
| x1 | first segment extremity X coord in [pix]. | |
| y1 | first segment extremity Y coord in [pix]. | |
| x2 | second segment extremity X coord in [pix]. | |
| y2 | second segment extremity Y coord in [pix]. |
Define the line segment parameters from the location of its extremities.
| pt1 | first segment extremity. | |
| pt2 | second segment extremity. |
| int tlLine::fit | ( | tlChain * | chain | ) |
Define the line as the best fit from a series of points.
| chain | list of tlPoints to match. |
| int tlLine::clip | ( | tlRect * | rect | ) |
Clip a line of arbitrary length to a bounding rectangle.
| rect | bounding rectangle that define the line clipping area. |
| int tlLine::clip | ( | int | width, | |
| int | height | |||
| ) |
Clip a line of arbitrary length to a given dimension.
| width | clipping width. | |
| height | clipping height. |
| int tlLine::copy | ( | tlLine * | line | ) |
Copy parameters from an existing tlLine object.
| line | pointer to another tlLine to copy parameters from. |
| int tlLine::copyTo | ( | tlLine * | line | ) |
Copy parameters to an existing tlLine object.
| line | pointer to another tlLine to copy parameters to. |