OpenStructure
|
#include <composite2.hh>
Inherits vector< Vec2 >.
Public Types | |
typedef const_circular_iter < Polygon2 > | const_circular_iterator |
typedef circular_iter< Polygon2 > | circular_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 |
typedef circular_iter<Polygon2> circular_iterator |
Definition at line 69 of file composite2.hh.
Definition at line 68 of file composite2.hh.
Polygon2 | ( | ) |
|
inline |
Definition at line 78 of file composite2.hh.
|
inline |
Definition at line 74 of file composite2.hh.
|
inline |
Definition at line 76 of file composite2.hh.
|
inline |
Definition at line 75 of file composite2.hh.
|
inline |
Definition at line 77 of file composite2.hh.
void Erase | ( | circular_iterator | first, |
circular_iterator | last | ||
) |
void Expand | ( | Real | val | ) |
|
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 |
|
inline |
Definition at line 80 of file composite2.hh.
|
inline |
Definition at line 79 of file composite2.hh.
void SetNode | ( | unsigned int | i, |
const Vec2 & | v | ||
) |