Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Classes | Namespaces | Enumerations | Functions | Variables
svgexporter.h File Reference
#include <cstdint>
#include <string>
#include <vector>
#include "../bitmap/rgba.h"

Go to the source code of this file.

Classes

struct  geometrize::exporter::SVGExportOptions
 The SVGExportOptions struct represents the options that can be set for the SVG export. More...
 

Namespaces

 geometrize
 
 geometrize::exporter
 

Enumerations

enum  geometrize::exporter::RotatedEllipseSVGExportMode { geometrize::exporter::RotatedEllipseSVGExportMode::ELLIPSE_ITEM = 0, geometrize::exporter::RotatedEllipseSVGExportMode::POLYGON = 1 }
 

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...
 

Variables

static const std::string geometrize::exporter::SVG_STYLE_HOOK = "::svg_style_hook::"
 SVG_STYLE_HOOK A hook that an SVG exporter should use to augment shape styling produced by the getSvgShapeData method. More...