NDEVR
API Documentation
UVChannelEditWidget

A widget allowing the user to set the properties for a single channel of UVType for a Material. More...

Collaboration diagram for UVChannelEditWidget:
[legend]

Public Member Functions

 UVChannelEditWidget (const DynamicPointer< QTDesignObject > &material, UVType uv_type, QWidget *parent=nullptr)
 Constructs a UV channel edit widget for a specific material and UV type.
void clearTexture ()
 Slot that clears the currently assigned texture from the channel.
Material material () const
 Returns the Material object being edited.
QSize minimumSizeHint () const override
 Returns the minimum size hint for this widget.
void onDelete ()
 Slot invoked to delete this UV channel from the material.
void refreshWidget ()
 Slot that refreshes the widget display from the current material state.
void resizeEvent (QResizeEvent *) override
 Handles resize events to update the image layout.
void setColor (RGBColor color)
 Slot that sets the flat color for the channel.
void setupChannelDialog ()
 Sets up the channel-specific dialog elements based on the UV type.
void showAerialImageDialog (PopupInfo info)
 Shows a dialog for configuring aerial image settings.
void showDataDialog ()
 Slot that shows the data channel dialog for numeric data visualization.
void showImageEditDialog (PopupInfo info)
 Shows a dialog for editing the current texture image.
void showImageFileDialog (PopupInfo info)
 Shows a file browser dialog for selecting a texture image from disk.
void showImageMemoryDialog (PopupInfo info)
 Shows a dialog for selecting a texture image from memory.
void showVectorColorDialog ()
 Slot that shows the vector color assignment dialog.
QSize sizeHint () const override
 Returns the preferred size hint for this widget.
void updateImageLayout ()
 Updates the layout of image preview elements to fit the current widget size.
void updateIntensity ()
 Slot that updates the intensity value for the channel.
void useChannel (bool use_channel)
 Slot that enables or disables the UV channel.

Protected Attributes

AerialImageSettingsm_aerial_settings = nullptr
 Aerial image configuration dialog.
ColorChannelCombom_channel_combo = nullptr
 Combo box for selecting color channel data sources.
QCustomColorDialogm_color_dialog = nullptr
 Color picker dialog.
ImageChooserGallerym_image_chooser_gallery = nullptr
 Gallery dialog for choosing images from memory.
QTImageEditorm_image_editor = nullptr
 Image editor dialog.
FileChooserDialogm_image_file_dialog = nullptr
 File browser dialog for image selection.
bool m_is_updating = false
 Guard flag to prevent recursive updates.
LayerDrawModes m_layer_draw_mode
 The current layer drawing mode.
DynamicPointer< QTDesignObjectm_target
 The material design object being edited.
UVType m_uv_channel
 The UV channel type being edited.
Ui::LightingValueUI * ui
 The auto-generated UI form for lighting value editing.

Detailed Description

A widget allowing the user to set the properties for a single channel of UVType for a Material.


Definition at line 52 of file UVChannelEditWidget.h.

Constructor & Destructor Documentation

◆ UVChannelEditWidget()

UVChannelEditWidget::UVChannelEditWidget ( const DynamicPointer< QTDesignObject > & material,
UVType uv_type,
QWidget * parent = nullptr )

Constructs a UV channel edit widget for a specific material and UV type.

Parameters
[in]materialThe material design object to edit.
[in]uv_typeThe UV channel type to configure.
[in]parentThe parent widget.

References UVChannelEditWidget(), and material().

Referenced by UVChannelEditWidget().

Member Function Documentation

◆ material()

Material UVChannelEditWidget::material ( ) const

Returns the Material object being edited.

Returns
The current Material.

Referenced by UVChannelEditWidget().

◆ minimumSizeHint()

QSize UVChannelEditWidget::minimumSizeHint ( ) const
override

Returns the minimum size hint for this widget.

Returns
The minimum recommended size.

◆ setColor()

void UVChannelEditWidget::setColor ( RGBColor color)

Slot that sets the flat color for the channel.

Parameters
[in]colorThe color to apply.

◆ showAerialImageDialog()

void UVChannelEditWidget::showAerialImageDialog ( PopupInfo info)

Shows a dialog for configuring aerial image settings.

Parameters
[in]infoThe popup configuration for the dialog.

◆ showImageEditDialog()

void UVChannelEditWidget::showImageEditDialog ( PopupInfo info)

Shows a dialog for editing the current texture image.

Parameters
[in]infoThe popup configuration for the dialog.

◆ showImageFileDialog()

void UVChannelEditWidget::showImageFileDialog ( PopupInfo info)

Shows a file browser dialog for selecting a texture image from disk.

Parameters
[in]infoThe popup configuration for the dialog.

◆ showImageMemoryDialog()

void UVChannelEditWidget::showImageMemoryDialog ( PopupInfo info)

Shows a dialog for selecting a texture image from memory.

Parameters
[in]infoThe popup configuration for the dialog.

◆ sizeHint()

QSize UVChannelEditWidget::sizeHint ( ) const
override

Returns the preferred size hint for this widget.

Returns
The recommended size.

◆ useChannel()

void UVChannelEditWidget::useChannel ( bool use_channel)

Slot that enables or disables the UV channel.

Parameters
[in]use_channelWhether the channel should be active.

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