![]() |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Enumerations | |
enum | ShapeDataFormat { ShapeDataFormat::JSON, ShapeDataFormat::CUSTOM_ARRAY } |
Functions | |
bool | exportGIF (const std::vector< geometrize::ShapeResult > &data, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::function< bool(std::size_t)> &frameSkipPredicate, const std::string &filePath) |
exportGIF Exports shape data to a GIF image. More... | |
bool | exportBitmap (const geometrize::Bitmap &bitmap, const std::string &filePath) |
exportBitmap Exports the Geometrize bitmap data to an image format that Qt supports (depending on the file extension). More... | |
bool | exportImage (const QImage &image, const std::string &filePath) |
exportImage Exports the image data to an image format that Qt supports (depending on the file extension). More... | |
bool | exportImages (const std::vector< QImage > &images, const std::string &targetDir, const std::string &baseFilename, const std::string &fileExtension) |
exportImages Exports the image data to an image format that Qt supports (depending on the file extension). More... | |
QImage | renderSvgShapeDataToImage (const std::vector< geometrize::ShapeResult > &shapes, const std::uint32_t inputWidth, const std::uint32_t inputHeight, const std::uint32_t outputWidth, const std::uint32_t outputHeight) |
renderSvgShapeDataToImage Renders the given shape data to an image via an SVG. More... | |
bool | exportRasterizedSvg (const std::vector< geometrize::ShapeResult > &shapes, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::string &filePath) |
exportRasterizedSvg Exports the shape data as an image by rasterizing an SVG rendered from the shape data. More... | |
bool | exportRasterizedSvgs (const std::vector< geometrize::ShapeResult > &shapes, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::string &targetDir, const std::string &baseFilename, const std::string &fileExtension) |
exportRasterizedSvgs Exports the shape data to images by rasterizing SVGs rendered from the shape data. Exports one image for each shape i.e. an image with one shape, two shapes, three shapes. More... | |
std::string | exportShapeData (const std::vector< geometrize::ShapeResult > &data, ShapeDataFormat format) |
exportShapeData Exports shape data to a specified format (JSON or a custom textual array format). More... | |
std::string | exportCanvasWebpage (const std::vector< geometrize::ShapeResult > &data) |
exportCanvasWebpage Exports shape data to a HTML5 canvas-based webpage. More... | |
std::string | exportWebGLWebpage (const std::vector< geometrize::ShapeResult > &data) |
exportWebGLWebpage Exports shape data to a WebGL-based webpage. More... | |
|
strong |
bool geometrize::exporter::exportBitmap | ( | const geometrize::Bitmap & | bitmap, |
const std::string & | filePath | ||
) |
exportBitmap Exports the Geometrize bitmap data to an image format that Qt supports (depending on the file extension).
bitmap | The image data to save as an image file. |
filePath | The full path to the image file target (include the filename and file extension). |
std::string geometrize::exporter::exportCanvasWebpage | ( | const std::vector< geometrize::ShapeResult > & | data | ) |
exportCanvasWebpage Exports shape data to a HTML5 canvas-based webpage.
data | The shape data to export. |
bool geometrize::exporter::exportGIF | ( | const std::vector< geometrize::ShapeResult > & | data, |
std::uint32_t | inputWidth, | ||
std::uint32_t | inputHeight, | ||
std::uint32_t | outputWidth, | ||
std::uint32_t | outputHeight, | ||
const std::function< bool(std::size_t)> & | frameSkipPredicate, | ||
const std::string & | filePath | ||
) |
exportGIF Exports shape data to a GIF image.
data | The shape data to export. |
inputWidth | The width of the canvas each frame will be rendered to. |
inputHeight | The height of the canvas each frame will be rendered to. |
outputWidth | The width of the image each frame will be rasterized into. |
outputHeight | The height of the image each frame will be rasterized into. |
filePath | The full path to the GIF image file target (include the filename and .gif extension). |
bool geometrize::exporter::exportImage | ( | const QImage & | image, |
const std::string & | filePath | ||
) |
exportImage Exports the image data to an image format that Qt supports (depending on the file extension).
image | The image to save as an image file. |
filePath | The full path to the image file target (include the filename and file extension). |
bool geometrize::exporter::exportImages | ( | const std::vector< QImage > & | images, |
const std::string & | targetDir, | ||
const std::string & | baseFilename, | ||
const std::string & | fileExtension | ||
) |
exportImages Exports the image data to an image format that Qt supports (depending on the file extension).
images | The images to save as image files. |
targetDir | The target directory. |
baseFilename | The base file name. |
fileExtension | The file extension (".jpg", ".png"). |
bool geometrize::exporter::exportRasterizedSvg | ( | const std::vector< geometrize::ShapeResult > & | shapes, |
std::uint32_t | inputWidth, | ||
std::uint32_t | inputHeight, | ||
std::uint32_t | outputWidth, | ||
std::uint32_t | outputHeight, | ||
const std::string & | filePath | ||
) |
exportRasterizedSvg Exports the shape data as an image by rasterizing an SVG rendered from the shape data.
shapes | The shape data to export. |
inputWidth | The width of the canvas the SVG will be rendered to. |
inputHeight | The height of the canvas the SVG will be rendered to. |
outputWidth | The width of the image the SVG will be rasterized into. |
outputHeight | The height of the image the SVG will be rasterized into. |
filePath | The full path to the image file target (include the filename and file extension). |
bool geometrize::exporter::exportRasterizedSvgs | ( | const std::vector< geometrize::ShapeResult > & | shapes, |
std::uint32_t | inputWidth, | ||
std::uint32_t | inputHeight, | ||
std::uint32_t | outputWidth, | ||
std::uint32_t | outputHeight, | ||
const std::string & | targetDir, | ||
const std::string & | baseFilename, | ||
const std::string & | fileExtension | ||
) |
exportRasterizedSvgs Exports the shape data to images by rasterizing SVGs rendered from the shape data. Exports one image for each shape i.e. an image with one shape, two shapes, three shapes.
shapes | The shape data to export. |
inputWidth | The width of the canvas the SVG will be rendered to. |
inputHeight | The height of the canvas the SVG will be rendered to. |
outputWidth | The width of the image the SVG will be rasterized into. |
outputHeight | The height of the image the SVG will be rasterized into. |
targetDir | The target directory. |
baseFilename | The base file name. |
fileExtension | The file extension (".jpg", ".png"). |
std::string geometrize::exporter::exportShapeData | ( | const std::vector< geometrize::ShapeResult > & | data, |
ShapeDataFormat | format | ||
) |
exportShapeData Exports shape data to a specified format (JSON or a custom textual array format).
data | The shape data to export. |
format | The format to save to data in. |
std::string geometrize::exporter::exportWebGLWebpage | ( | const std::vector< geometrize::ShapeResult > & | data | ) |
exportWebGLWebpage Exports shape data to a WebGL-based webpage.
data | The shape data to export. |
QImage geometrize::exporter::renderSvgShapeDataToImage | ( | const std::vector< geometrize::ShapeResult > & | shapes, |
const std::uint32_t | inputWidth, | ||
const std::uint32_t | inputHeight, | ||
const std::uint32_t | outputWidth, | ||
const std::uint32_t | outputHeight | ||
) |
renderSvgShapeDataToImage Renders the given shape data to an image via an SVG.
shapes | The shape data to render. |
inputWidth | The width of the canvas the SVG will be rendered to. |
inputHeight | The height of the canvas the SVG will be rendered to. |
outputWidth | The width of the image the SVG will be rasterized into. |
outputHeight | The height of the image the SVG will be rasterized into. |