#include <polygon_mask.hh>
Inherits ost::img::MaskBase.
Public Member Functions | |
PolygonMask () | |
PolygonMask (const Polygon2 &p) | |
virtual MaskPtr | Clone () |
virtual bool | IsInside (const Vec2 &v) |
virtual void | Shift (const Vec2 &v) |
virtual void | Expand (Real d) |
virtual void | Scale (Real d) |
virtual void | Apply (MaskVisitor &v) |
void | AddNode (const Vec2 &n) |
void | SetNode (unsigned int i, const Vec2 &v) |
void | Erase (circular_iterator first, circular_iterator last) |
Protected Member Functions | |
std::vector< Real > | get_intercept_x_values_ (Real y) |
Protected Attributes | |
bool | intercepts_valid_ |
Real | intercept_y_ |
std::vector< Real > | intercepts_ |
Rectangle2 | bounding_box_ |
Definition at line 37 of file polygon_mask.hh.
PolygonMask | ( | ) |
PolygonMask | ( | const Polygon2 & | p | ) |
void AddNode | ( | const Vec2 & | n | ) |
virtual void Apply | ( | MaskVisitor & | v | ) | [virtual] |
Implements MaskBase.
void Erase | ( | circular_iterator | first, | |
circular_iterator | last | |||
) |
virtual bool IsInside | ( | const Vec2 & | v | ) | [virtual] |
Implements MaskBase.
void SetNode | ( | unsigned int | i, | |
const Vec2 & | v | |||
) |
virtual void Shift | ( | const Vec2 & | v | ) | [virtual] |
Implements MaskBase.
Rectangle2 bounding_box_ [protected] |
Definition at line 61 of file polygon_mask.hh.
Real intercept_y_ [protected] |
Definition at line 59 of file polygon_mask.hh.
std::vector<Real> intercepts_ [protected] |
Definition at line 60 of file polygon_mask.hh.
bool intercepts_valid_ [protected] |
Definition at line 58 of file polygon_mask.hh.