NDEVR
API Documentation
PhotoDrapingSettings

A widget for configuring photo draping (texture projection) settings during scanning, including raster resolution and aspect ratio. More...

Collaboration diagram for PhotoDrapingSettings:
[legend]

Public Member Functions

 PhotoDrapingSettings (QWidget *parent=nullptr)
 Construct the photo draping settings widget.
void onEditedSignal ()
 Emitted when the user modifies any setting.
RasterInfo rasterInfo () const
 Get the current raster info from the UI.
void setRasterInfo (const RasterInfo &info)
 Set the raster info to display.
void setResolutionAspectRatio (fltp08 aspect_ratio)
 Set the aspect ratio constraint on the resolution.

Protected Member Functions

void refreshFromUISlot ()
 Refresh internal state from the UI controls.
Vector< 2, uint04resolution () const
 Get the current resolution from the UI controls.

Protected Attributes

RasterInfo m_info
 Current raster configuration.
fltp08 m_resolution_aspect_ratio
 Resolution aspect ratio constraint.
Ui::PhotoDrapingSettingsUI * ui
 Auto-generated UI form.

Detailed Description

A widget for configuring photo draping (texture projection) settings during scanning, including raster resolution and aspect ratio.


Definition at line 16 of file PhotoDrapingSettings.h.

Constructor & Destructor Documentation

◆ PhotoDrapingSettings()

PhotoDrapingSettings::PhotoDrapingSettings ( QWidget * parent = nullptr)

Construct the photo draping settings widget.

Parameters
[in]parentOptional parent widget.

Member Function Documentation

◆ rasterInfo()

RasterInfo PhotoDrapingSettings::rasterInfo ( ) const

Get the current raster info from the UI.

Returns
The configured raster info.

◆ resolution()

Vector< 2, uint04 > PhotoDrapingSettings::resolution ( ) const
protected

Get the current resolution from the UI controls.

Returns
Width and height in pixels.

◆ setRasterInfo()

void PhotoDrapingSettings::setRasterInfo ( const RasterInfo & info)

Set the raster info to display.

Parameters
[in]infoThe raster configuration.

◆ setResolutionAspectRatio()

void PhotoDrapingSettings::setResolutionAspectRatio ( fltp08 aspect_ratio)

Set the aspect ratio constraint on the resolution.

Parameters
[in]aspect_ratioThe width-to-height ratio.

The documentation for this class was generated from the following file: