#include <girl/girlContour.hpp>
Public Member Functions | |
contour (const girl::point &startPt=girl::point(0, 0)) | |
Default constructor. | |
contour (const girl::point &startPt, const std::deque< girl::direction > &dirs) | |
Constructor. | |
void | set (const girl::point &startPt, const std::deque< girl::direction > &dirs) |
Set freemanCodePath from a starting point startPt and a deque of directions dirs. | |
girl::point | startPt () const |
Gives starting point of path self. | |
size_t | length () const |
Path length, i.e. number of directions. | |
bool | isPositivelyOriented () const |
Checks if contour self is positively oriented. | |
void | invertOrientation () |
Inverts orientation of contour. |
girl::contour::contour | ( | const girl::point & | startPt = girl::point(0, 0) |
) | [inline] |
Default constructor.
Creates an empty contour.
girl::contour::contour | ( | const girl::point & | startPt, | |
const std::deque< girl::direction > & | dirs | |||
) | [inline] |
void girl::contour::invertOrientation | ( | ) | [inline] |
bool girl::contour::isPositivelyOriented | ( | ) | const |
size_t girl::contour::length | ( | ) | const [inline] |
Path length, i.e. number of directions.
O(1).
void girl::contour::set | ( | const girl::point & | startPt, | |
const std::deque< girl::direction > & | dirs | |||
) | [inline] |