StarGraphicStruct::StarPolygon Class Reference

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 More...
 
bool hasSpecialPoints () const
 check if a polygon has special point More...
 
bool empty () const
 returns true if the polygon is empty More...
 
size_t size () const
 returns true if the polygon is empty More...
 
void addToPath (librevenge::RVNGPropertyListVector &path, bool isClosed, double relUnit, STOFFVec2f const &decal) const
 add the polygon to a path More...
 
bool convert (librevenge::RVNGString &path, librevenge::RVNGString &viewbox, double relUnit, STOFFVec2f const &decal) const
 convert a path in a string and update the bdbox More...
 

Public Attributes

std::vector< Pointm_points
 the list of points More...
 

Friends

std::ostream & operator<< (std::ostream &o, StarPolygon const &poly)
 operator<< More...
 

Detailed Description

Class to store a polygon.

Constructor & Destructor Documentation

◆ StarPolygon()

StarGraphicStruct::StarPolygon::StarPolygon ( )
inline

contructor

Member Function Documentation

◆ addToPath()

void StarGraphicStruct::StarPolygon::addToPath ( librevenge::RVNGPropertyListVector &  path,
bool  isClosed,
double  relUnit,
STOFFVec2f const &  decal 
) const

◆ convert()

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

Referenced by StarGraphicAttribute::StarGAttributeNamedArrow::addTo().

◆ empty()

bool StarGraphicStruct::StarPolygon::empty ( ) const
inline

returns true if the polygon is empty

Referenced by StarGraphicAttribute::StarGAttributeNamedArrow::addTo().

◆ hasSpecialPoints()

bool StarGraphicStruct::StarPolygon::hasSpecialPoints ( ) const
inline

check if a polygon has special point

◆ size()

size_t StarGraphicStruct::StarPolygon::size ( ) const
inline

returns true if the polygon is empty

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
StarPolygon const &  poly 
)
friend

operator<<

Member Data Documentation

◆ m_points


The documentation for this class was generated from the following files:

Generated on Wed Mar 15 2023 00:00:00 for libstaroffice by doxygen 1.9.1