#include <Export.h>
|
std::unique_ptr< Ui::Export > | ui_ |
|
omni::ui::Export::Export |
( |
QWidget * |
_parent = nullptr | ) |
|
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void setup()
Definition: Export.cpp:127
omni::ui::Export::~Export |
( |
| ) |
|
void omni::ui::Export::dataModelChanged |
( |
| ) |
|
|
signal |
void omni::ui::Export::dataToFrontend |
( |
| ) |
|
|
privatevirtual |
Pure virtual method which determines how data model is represented in frontend.
Implements omni::ui::mixin::DataModel< DATAMODEL, SHARED >.
pointer_type dataModel()
Return pointer to data model.
Definition: DataModel.h:118
void renderPreview()
Definition: Export.cpp:85
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void omni::ui::Export::exportToFile |
( |
| ) |
|
|
slot |
46 using namespace render;
50 switch(
dataModel()->exportSettings().outputType()) {
51 case OutputType::OMNI_CALIBRATION:
54 _filename = QFileDialog::getSaveFileName(
this,
55 "Save Calibration...",
57 "Omni Calibration (*.omnic)");
58 if (_filename.isEmpty())
return;
59 _renderer.renderOmniCalibration(_filename);
63 case OutputType::PLAIN_IMAGE:
65 _filename = QFileDialog::getSaveFileName(
this,
66 "Save Calibration Image...",
68 "Calibration Images (*.png)");
69 if (_filename.isEmpty())
return;
75 ui_->editExportFilename->setText(_filename);
77 QMessageBox::information(
this,
"Calibration data exported.",
79 "Calibration data has been exported to '%1'").arg(
pointer_type dataModel()
Return pointer to data model.
Definition: DataModel.h:118
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
bool omni::ui::Export::frontendToData |
( |
| ) |
|
|
inlineprivatevirtual |
void omni::ui::Export::getExportSettings |
( |
| ) |
|
|
slot |
94 using namespace omni::render;
95 auto& _exportSettings =
dataModel()->exportSettings();
97 _exportSettings.setExcludeUnassignedProjectors(
98 ui_->chkExcludeNonSelectedScreens->isChecked());
100 if (
ui_->rbOmniCalibration->isChecked()) {
101 _exportSettings.setOutputType(OutputType::OMNI_CALIBRATION);
103 if (
ui_->rbPlainImage->isChecked()) {
104 _exportSettings.setOutputType(OutputType::PLAIN_IMAGE);
107 if (
ui_->rbSepNone->isChecked())
109 _exportSettings.setSeparationMode(SeparationMode::NONE);
111 if (
ui_->rbSepScreens->isChecked())
113 _exportSettings.setSeparationMode(SeparationMode::SCREENS);
115 if (
ui_->rbSepProj->isChecked())
117 _exportSettings.setSeparationMode(SeparationMode::PROJECTORS);
pointer_type dataModel()
Return pointer to data model.
Definition: DataModel.h:118
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void omni::ui::Export::renderPreview |
( |
| ) |
|
|
slot |
87 ui_->outputPreview->triggerUpdate();
void getExportSettings()
Definition: Export.cpp:90
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void omni::ui::Export::selectOmniCalibration |
( |
bool |
_selected | ) |
|
|
slot |
155 ui_->lbSeparateOutput->setVisible(!_selected);
156 ui_->frameSeparation->setVisible(!_selected);
void renderPreview()
Definition: Export.cpp:85
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void omni::ui::Export::selectPlainImage |
( |
bool |
_selected | ) |
|
|
slot |
149 ui_->lbSeparateOutput->setVisible(_selected);
150 ui_->frameSeparation->setVisible(_selected);
void renderPreview()
Definition: Export.cpp:85
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void omni::ui::Export::setup |
( |
| ) |
|
|
private |
129 connect(
ui_->btnExport, SIGNAL(clicked()),
this,
132 connect(
ui_->rbOmniCalibration, SIGNAL(clicked(
bool)),
this,
134 connect(
ui_->rbPlainImage, SIGNAL(clicked(
bool)),
this,
138 std::vector<QWidget *>({
ui_->chkExcludeNonSelectedScreens,
142 connect(_widget, SIGNAL(clicked()),
this, SLOT(
renderPreview()));
void exportToFile()
Definition: Export.cpp:42
void renderPreview()
Definition: Export.cpp:85
void selectOmniCalibration(bool)
Definition: Export.cpp:154
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void selectPlainImage(bool)
Definition: Export.cpp:148
std::unique_ptr<Ui::Export> omni::ui::Export::ui_ |
|
private |
The documentation for this class was generated from the following files: