|
Fawkes API Fawkes Development Version
|
Line shape. More...
#include <>>

Public Member Functions | |
| LineShape (unsigned int roi_width, unsigned int roi_height) | |
| Constructor. More... | |
| ~LineShape () | |
| Destructor. More... | |
| void | printToStream (std::ostream &stream) |
| Print line. More... | |
| void | setMargin (unsigned int margin) |
| Set margin around shape. More... | |
| bool | isClose (unsigned int in_roi_x, unsigned int in_roi_y) |
| Check if the given point is close to the shape. More... | |
| void | calcPoints () |
| Calc points for line. More... | |
| void | getPoints (int *x1, int *y1, int *x2, int *y2) |
| Get two points that define the line. More... | |
Public Member Functions inherited from firevision::Shape | |
| virtual | ~Shape () |
| Virtual empty destructor. More... | |
| virtual void | setMargin (unsigned int margin)=0 |
| Set margin around shape. More... | |
| virtual bool | isClose (unsigned int in_roi_x, unsigned int in_roi_y)=0 |
| Check if the given point is close to the shape. More... | |
| firevision::LineShape::LineShape | ( | unsigned int | roi_width, |
| unsigned int | roi_height | ||
| ) |
| void firevision::LineShape::calcPoints | ( | ) |
Calc points for line.
Definition at line 96 of file line.cpp.
References fawkes::deg2rad().
Referenced by getPoints(), firevision::HtLinesModel::getShapes(), and firevision::RhtLinesModel::getShapes().
| void firevision::LineShape::getPoints | ( | int * | x1, |
| int * | y1, | ||
| int * | x2, | ||
| int * | y2 | ||
| ) |
Get two points that define the line.
| x1 | contains x coordinate of first point upon return |
| y1 | contains y coordinate of first point upon return |
| x2 | contains x coordinate of second point upon return |
| y2 | contains y coordinate of second point upon return |
Definition at line 192 of file line.cpp.
References calcPoints().
|
virtual |
Check if the given point is close to the shape.
| in_roi_x | x coordinate of point in the same ROI as the shape |
| in_roi_y | y coordinate of point in the same ROI as the shape |
Implements firevision::Shape.
| void firevision::LineShape::printToStream | ( | std::ostream & | stream | ) |
|
virtual |