Polygon2 Class Reference

#include <composite2.hh>

Public Types

typedef const_circular_iter
< Polygon2
const_circular_iterator
typedef circular_iter< Polygon2circular_iterator

Public Member Functions

 Polygon2 ()
 Polygon2 (const Polygon2 &p)
 Polygon2 (const std::vector< Vec2 > &v)
circular_iterator cbegin ()
circular_iterator cend ()
const_circular_iterator cbegin () const
const_circular_iterator cend () const
void AddNode (const Vec2 &n)
unsigned int GetNodeCount () const
Vec2 GetNode (unsigned int i) const
void SetNode (unsigned int i, const Vec2 &v)
circular_iterator FindSegment (std::vector< Vec2 >::const_iterator start, std::vector< Vec2 >::const_iterator end)
circular_iterator FindNode (const Vec2 &v)
void Erase (circular_iterator first, circular_iterator last)
Polygon2 operator+ (const Vec2 &v) const
Polygon2 operator* (Real d) const
Real GetArea () const
Vec2 GetCentroid () const
void Expand (Real val)
Rectangle2 GetBoundingBox () const

Detailed Description

Polygon2

See also:
Create Split Image Example

Definition at line 65 of file composite2.hh.


Member Typedef Documentation

Definition at line 69 of file composite2.hh.

Definition at line 68 of file composite2.hh.


Constructor & Destructor Documentation

Polygon2 (  ) 
Polygon2 ( const Polygon2 p  ) 
Polygon2 ( const std::vector< Vec2 > &  v  ) 

Member Function Documentation

void AddNode ( const Vec2 n  )  [inline]

Definition at line 78 of file composite2.hh.

const_circular_iterator cbegin (  )  const [inline]

Definition at line 76 of file composite2.hh.

circular_iterator cbegin (  )  [inline]

Definition at line 74 of file composite2.hh.

const_circular_iterator cend (  )  const [inline]

Definition at line 77 of file composite2.hh.

circular_iterator cend (  )  [inline]

Definition at line 75 of file composite2.hh.

void Erase ( circular_iterator  first,
circular_iterator  last 
)
void Expand ( Real  val  ) 
circular_iterator FindNode ( const Vec2 v  )  [inline]

Definition at line 83 of file composite2.hh.

circular_iterator FindSegment ( std::vector< Vec2 >::const_iterator  start,
std::vector< Vec2 >::const_iterator  end 
)
Real GetArea (  )  const
Rectangle2 GetBoundingBox (  )  const
Vec2 GetCentroid (  )  const
Vec2 GetNode ( unsigned int  i  )  const [inline]

Definition at line 80 of file composite2.hh.

unsigned int GetNodeCount (  )  const [inline]

Definition at line 79 of file composite2.hh.

Polygon2 operator* ( Real  d  )  const
Polygon2 operator+ ( const Vec2 v  )  const
void SetNode ( unsigned int  i,
const Vec2 v 
)

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 20 Jun 2016 for OpenStructure by  doxygen 1.6.1