PolygonMask Class Reference

#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< Realget_intercept_x_values_ (Real y)

Protected Attributes

bool intercepts_valid_
Real intercept_y_
std::vector< Realintercepts_
Rectangle2 bounding_box_

Detailed Description

See also:
Create Split Image Example

Definition at line 37 of file polygon_mask.hh.


Constructor & Destructor Documentation

PolygonMask (  ) 
PolygonMask ( const Polygon2 &  p  ) 

Member Function Documentation

void AddNode ( const Vec2 &  n  ) 
virtual void Apply ( MaskVisitor v  )  [virtual]

Implements MaskBase.

virtual MaskPtr Clone (  )  [virtual]

Implements MaskBase.

void Erase ( circular_iterator  first,
circular_iterator  last 
)
virtual void Expand ( Real  d  )  [virtual]

Implements MaskBase.

std::vector<Real> get_intercept_x_values_ ( Real  y  )  [protected]
virtual bool IsInside ( const Vec2 &  v  )  [virtual]

Implements MaskBase.

virtual void Scale ( Real  d  )  [virtual]

Implements MaskBase.

void SetNode ( unsigned int  i,
const Vec2 &  v 
)
virtual void Shift ( const Vec2 &  v  )  [virtual]

Implements MaskBase.


Field Documentation

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 6 Dec 2017 for OpenStructure by  doxygen 1.6.1