geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::ImageTaskExportWidgetImpl |
( |
ImageTaskExportWidget * |
pQ | ) |
|
|
inline |
30 :
m_task{
nullptr},
m_shapes{
nullptr},
q{pQ},
ui{std::make_unique<Ui::ImageTaskExportWidget>()}
geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::~ImageTaskExportWidgetImpl |
( |
| ) |
|
|
default |
geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::ImageTaskExportWidgetImpl |
( |
const ImageTaskExportWidgetImpl & |
| ) |
|
|
delete |
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::onLanguageChange |
( |
| ) |
|
|
inline |
204 ui->retranslateUi(
q);
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::populateUi |
( |
| ) |
|
|
inlineprivate |
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveGeometryData |
( |
| ) |
const |
|
inline |
126 if(path.endsWith(
"json")) {
128 }
else if(path.endsWith(
"txt")) {
std::string exportShapeData(const std::vector< geometrize::ShapeResult > &data, const ShapeDataFormat format)
exportShapeData Exports shape data to a specified format (JSON or a custom textual array format)...
Definition: shapedataexporter.cpp:17
QString openSaveGeometryDataPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:141
ShapeDataFormat
Definition: shapedataexporter.h:17
bool writeStringToFile(const std::string &str, const std::string &path)
writeStringToFile Writes the string to the file path, attempting to overwrite any existing file at th...
Definition: util.cpp:270
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveGIF |
( |
| ) |
const |
|
inline |
149 const std::uint32_t scaleFactor{3};
153 auto frameSkipPredicate = [](
const std::size_t frameIdx) {
154 if(frameIdx % 2 == 0) {
165 height * scaleFactor,
QString openSaveGIFPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:149
Bitmap & getCurrent()
getCurrent Gets the current bitmap.
Definition: imagetask.cpp:265
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.
Definition: gifexporter.cpp:80
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveHTML5WebpageButton |
( |
| ) |
const |
|
inline |
QString openSaveCanvasPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:157
std::string exportCanvasWebpage(const std::vector< geometrize::ShapeResult > &data)
exportCanvasWebpage Exports shape data to a HTML5 canvas-based webpage.
Definition: webpageexporter.cpp:55
bool writeStringToFile(const std::string &str, const std::string &path)
writeStringToFile Writes the string to the file path, attempting to overwrite any existing file at th...
Definition: util.cpp:270
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveRasterizedSVG |
( |
| ) |
const |
|
inline |
74 const std::uint32_t scaleFactor{3};
bool exportRasterizedSvg(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, const std::string &filePath)
exportRasterizedSvg Exports the shape data as an image by rasterizing an SVG rendered from the shape ...
Definition: imageexporter.cpp:74
Bitmap & getCurrent()
getCurrent Gets the current bitmap.
Definition: imagetask.cpp:265
QString openSaveRasterizedSVGPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:127
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveRasterizedSVGs |
( |
| ) |
const |
|
inline |
99 const std::uint32_t scaleFactor{3};
107 height * scaleFactor,
QString openSaveRasterizedSVGsPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:135
Bitmap & getCurrent()
getCurrent Gets the current bitmap.
Definition: imagetask.cpp:265
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 dat...
Definition: imageexporter.cpp:86
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveSVG |
( |
| ) |
const |
|
inline |
QString openSaveSVGPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:119
Bitmap & getCurrent()
getCurrent Gets the current bitmap.
Definition: imagetask.cpp:265
bool writeStringToFile(const std::string &str, const std::string &path)
writeStringToFile Writes the string to the file path, attempting to overwrite any existing file at th...
Definition: util.cpp:270
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::saveWebGLWebpageButton |
( |
| ) |
const |
|
inline |
QString openSaveWebGLPathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:165
std::string exportWebGLWebpage(const std::vector< geometrize::ShapeResult > &data)
exportWebGLWebpage Exports shape data to a WebGL-based webpage.
Definition: webpageexporter.cpp:60
bool writeStringToFile(const std::string &str, const std::string &path)
writeStringToFile Writes the string to the file path, attempting to overwrite any existing file at th...
Definition: util.cpp:270
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::setImageTask |
( |
const task::ImageTask * |
task, |
|
|
const std::vector< geometrize::ShapeResult > * |
shapes |
|
) |
| |
|
inline |
void geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::showExportMisconfiguredMessage |
( |
| ) |
const |
|
inlineprivate |
215 QMessageBox::warning(
q, tr(
"Failed to run exporter",
"Title of error message shown when an attempt to save/export a file failed"),
216 tr(
"Failed to run exporter. Exporter was misconfigured.",
"Error message text shown when an attempt to save/export a file failed"));
const std::vector<geometrize::ShapeResult>* geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::m_shapes |
|
private |
std::unique_ptr<Ui::ImageTaskExportWidget> geometrize::dialog::ImageTaskExportWidget::ImageTaskExportWidgetImpl::ui |
|
private |
The documentation for this class was generated from the following file: