StarGraphicStruct.cxx File Reference
`#include <math.h>`
`#include <sstream>`
`#include <librevenge/librevenge.h>`
`#include "libstaroffice_internal.hxx"`
`#include "StarBitmap.hxx"`
`#include "StarFileManager.hxx"`
`#include "StarObject.hxx"`
`#include "StarZone.hxx"`
`#include "StarGraphicStruct.hxx"`

## Namespaces

namespace | StarGraphicStruct
| a name use to define basic StarOffice graphic structure

## Functions

static void | StarGraphicStruct::writeU16 (unsigned char *buffer, unsigned &position, const unsigned value)
static void | StarGraphicStruct::writeU32 (unsigned char *buffer, unsigned &position, const unsigned value)
static std::unique_ptr< unsigned char[]> | StarGraphicStruct::createAndInitBMPData (STOFFVec2i const &sz, unsigned &dibFileSize, unsigned &bufferPosition)
| Internal: helper function to create a BMP for a color bitmap (freely inspired from libpwg::WPGBitmap.cpp).
bool | StarGraphicStruct::getBMPData (std::vector< std::vector< STOFFColor > > const &orig, librevenge::RVNGBinaryData &data)
| Internal: helper function to create a BMP for a color bitmap (freely inspired from libpwg::WPGBitmap.cpp).
static bool | StarGraphicStruct::getBMPData (uint16_t const *pattern, STOFFColor const &col0, STOFFColor const &col1, librevenge::RVNGBinaryData &data)
| Internal: helper function to create a BMP for a color bitmap from a 8*8 patterns, defined with 4 uint16_t.
static double | StarGraphicStruct::getInchValue (librevenge::RVNGProperty const *prop)
static double | StarGraphicStruct::quadraticExtreme (double t, double a, double b, double c)
static double | StarGraphicStruct::quadraticDerivative (double a, double b, double c)
static void | StarGraphicStruct::getQuadraticBezierBBox (double x0, double y0, double x1, double y1, double x, double y, double &xmin, double &ymin, double &xmax, double &ymax)
static double | StarGraphicStruct::cubicBase (double t, double a, double b, double c, double d)
static void | StarGraphicStruct::getCubicBezierBBox (double x0, double y0, double x1, double y1, double x2, double y2, double x, double y, double &xmin, double &ymin, double &xmax, double &ymax)
static bool | StarGraphicStruct::getPathBBox (const librevenge::RVNGPropertyListVector &path, double &px, double &py, double &qx, double &qy)
| Internal: helper to compute a path bdbox.
static librevenge::RVNGString | StarGraphicStruct::convertPath (const librevenge::RVNGPropertyListVector &path)
| Internal: helper to convert a path in a string.
std::ostream & | StarGraphicStruct::operator<< (std::ostream &o, StarBrush const &brush)
std::ostream & | StarGraphicStruct::operator<< (std::ostream &o, StarPolygon const &poly)