OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
PolygonMask Class Reference

#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< 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 ( 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: