Geometrize 1.0
C++ library for geometrizing images into geometric primitives
Namespaces | Functions
svgexporter.cpp File Reference
#include "svgexporter.h"
#include <cassert>
#include <cmath>
#include <cstdint>
#include <regex>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "../rasterizer/rasterizer.h"
#include "../bitmap/rgba.h"
#include "../shape/shape.h"
#include "../shape/circle.h"
#include "../shape/ellipse.h"
#include "../shape/line.h"
#include "../shape/polyline.h"
#include "../shape/quadraticbezier.h"
#include "../shape/rectangle.h"
#include "../shape/rotatedellipse.h"
#include "../shape/rotatedrectangle.h"
#include "../shape/triangle.h"
#include "../shaperesult.h"
#include "../commonutil.h"

Namespaces

namespace  geometrize
 
namespace  geometrize::exporter
 

Functions

std::string geometrize::exporter::getSingleShapeSVGData (const geometrize::rgba &color, const geometrize::Shape &shape, SVGExportOptions options=SVGExportOptions{})
 getSvgShapeData Gets the SVG data for a single shape. This is just the <rect>/<path> etc block for the shape itself, not a complete SVG image. More...
 
std::string geometrize::exporter::exportSingleShapeSVG (const geometrize::rgba &color, const geometrize::Shape &shape, const std::uint32_t width, const std::uint32_t height, SVGExportOptions options=SVGExportOptions{})
 exportSVG Exports a single shape as a complete SVG image. More...
 
std::string geometrize::exporter::exportSVG (const std::vector< geometrize::ShapeResult > &data, const std::uint32_t width, const std::uint32_t height, SVGExportOptions options=SVGExportOptions{})
 exportSVG Exports shape data as a complete SVG image. More...