OpenStructure
|
#include <polygon_mask.hh>
Inherits MaskBase, and Polygon2.
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) |
Public Member Functions inherited from MaskBase | |
MaskBase () | |
virtual | ~MaskBase () |
bool | IsOutside (const Vec2 &v) |
virtual void | Shrink (Real d) |
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 |
Implements MaskBase.
void Erase | ( | circular_iterator | first, |
circular_iterator | last | ||
) |
|
virtual |
Implements MaskBase.
void SetNode | ( | unsigned int | i, |
const Vec2 & | v | ||
) |
|
virtual |
Implements MaskBase.
|
protected |
Definition at line 61 of file polygon_mask.hh.
|
protected |
Definition at line 59 of file polygon_mask.hh.
|
protected |
Definition at line 60 of file polygon_mask.hh.
|
protected |
Definition at line 58 of file polygon_mask.hh.