NDEVR
API Documentation
PhotoDrapingSettings.h
1#pragma once
2#include <NDEVR/MaterialRaster.h>
3#include <NDEVR/Angle.h>
4#include <QWidget>
5namespace Ui
6{
7 class PhotoDrapingSettingsUI;
8}
9namespace NDEVR
10{
11 struct RasterInfo;
16 class PhotoDrapingSettings : public QWidget
17 {
18 Q_OBJECT
19 public:
22 PhotoDrapingSettings(QWidget* parent = nullptr);
25 void setRasterInfo(const RasterInfo& info);
31 void setResolutionAspectRatio(fltp08 aspect_ratio);
32 protected:
36 signals:
39 protected slots:
42 protected:
45 Ui::PhotoDrapingSettingsUI* ui;
46 };
47}
void onEditedSignal()
Emitted when the user modifies any setting.
Vector< 2, uint04 > resolution() const
Get the current resolution from the UI controls.
void setRasterInfo(const RasterInfo &info)
Set the raster info to display.
PhotoDrapingSettings(QWidget *parent=nullptr)
Construct the photo draping settings widget.
RasterInfo m_info
Current raster configuration.
fltp08 m_resolution_aspect_ratio
Resolution aspect ratio constraint.
Ui::PhotoDrapingSettingsUI * ui
Auto-generated UI form.
void refreshFromUISlot()
Refresh internal state from the UI controls.
void setResolutionAspectRatio(fltp08 aspect_ratio)
Set the aspect ratio constraint on the resolution.
RasterInfo rasterInfo() const
Get the current raster info from the UI.
A fixed-size array with N dimensions used as the basis for geometric and mathematical types.
Definition Vector.hpp:62
The primary namespace for the NDEVR SDK.
double fltp08
Defines an alias representing an 8 byte floating-point number.
Stores information for painting pixels at a time into a 2D texture used with MaterialRaster.