Class to store a polygon. More...
#include <StarGraphicStruct.hxx>
| Classes | |
| struct | Point | 
| a structure to keep a point and a flag  More... | |
| Public Member Functions | |
| StarPolygon () | |
| contructor | |
| bool | hasSpecialPoints () const | 
| check if a polygon has special point | |
| bool | empty () const | 
| returns true if the polygon is empty | |
| size_t | size () const | 
| returns true if the polygon is empty | |
| void | addToPath (librevenge::RVNGPropertyListVector &path, bool isClosed, double relUnit, STOFFVec2f const &decal) const | 
| add the polygon to a path | |
| bool | convert (librevenge::RVNGString &path, librevenge::RVNGString &viewbox, double relUnit, STOFFVec2f const &decal) const | 
| convert a path in a string and update the bdbox | |
| Public Attributes | |
| std::vector< Point > | m_points | 
| the list of points | |
| Friends | |
| std::ostream & | operator<< (std::ostream &o, StarPolygon const &poly) | 
| operator<< | |
Class to store a polygon.
| 
 | inline | 
contructor
Referenced by operator<<.
| void StarGraphicStruct::StarPolygon::addToPath | ( | librevenge::RVNGPropertyListVector & | path, | 
| bool | isClosed, | ||
| double | relUnit, | ||
| STOFFVec2f const & | decal ) const | 
add the polygon to a path
Referenced by convert(), StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), and StarObjectSmallGraphicInternal::SdrGraphicEdge::send().
| bool StarGraphicStruct::StarPolygon::convert | ( | librevenge::RVNGString & | path, | 
| librevenge::RVNGString & | viewbox, | ||
| double | relUnit, | ||
| STOFFVec2f const & | decal ) const | 
convert a path in a string and update the bdbox
| 
 | inline | 
returns true if the polygon is empty
| 
 | inline | 
check if a polygon has special point
| 
 | inline | 
returns true if the polygon is empty
| 
 | friend | 
operator<<
| std::vector<Point> StarGraphicStruct::StarPolygon::m_points | 
the list of points
Referenced by addToPath(), empty(), hasSpecialPoints(), operator<<, StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), StarObjectSmallGraphicInternal::SdrGraphicEdge::send(), size(), and StarPolygon().