Allows the user to select a method to color a particular channel.
More...
|
|
void | init () |
| | Initializes the combo box items and signal connections.
|
|
|
bool | m_always_allow_image = false |
| | Whether the image option is always shown.
|
|
TimeSpan | m_animation_time |
| | Duration of color transition animations.
|
|
QCustomComboBox * | m_combo |
| | The combo box widget for selection.
|
|
bool | m_has_color_by_model |
| | Whether a color-by-model option is available.
|
|
bool | m_has_contrast_color |
| | Whether a contrast color option is available.
|
|
bool | m_has_default |
| | Whether a default option is available.
|
|
bool | m_has_image |
| | Whether an image coloring option is available.
|
|
bool | m_has_solid_color |
| | Whether a solid color option is available.
|
|
bool | m_needs_item_refresh |
| | Whether the combo items need to be refreshed.
|
|
DynamicPointer< QTDesignObject > | m_target |
| | The target design object for color configuration.
|
|
UVType | m_uv_type |
| | The UV type being configured.
|
Allows the user to select a method to color a particular channel.
Definition at line 41 of file ColorChannelCombo.h.
◆ ColorChannelCombo() [1/2]
Constructs a ColorChannelCombo with a target design object and combo box.
- Parameters
-
| [in] | target | The design object whose color channel is being selected. |
| [in] | combo | The combo box widget for channel selection. |
◆ ColorChannelCombo() [2/2]
Constructs a ColorChannelCombo with a target, UV type, and combo box.
- Parameters
-
| [in] | target | The design object whose color channel is being selected. |
| [in] | uv | The UV type to configure coloring for. |
| [in] | combo | The combo box widget for channel selection. |
◆ currentParameter()
Returns the currently selected design parameter for the color channel.
- Returns
- The active DesignParameter.
◆ eventFilter()
| virtual bool ColorChannelCombo::eventFilter |
( |
QObject * | watched, |
|
|
QEvent * | event ) |
|
virtual |
Filters events for the combo box to handle custom interactions.
- Parameters
-
| [in] | watched | The object being watched. |
| [in] | event | The event to filter. |
- Returns
- True if the event was handled.
◆ isSetToImage()
| bool ColorChannelCombo::isSetToImage |
( |
| ) |
const |
Returns whether the current selection is set to image mode.
- Returns
- True if image coloring is selected.
◆ refreshFromMaterial()
| void ColorChannelCombo::refreshFromMaterial |
( |
const Material & | mat | ) |
|
Refreshes the combo state from the given material.
- Parameters
-
| [in] | mat | The material to read color channel data from. |
◆ setAlwaysAllowImage()
| void ColorChannelCombo::setAlwaysAllowImage |
( |
bool | always_allow_image | ) |
|
Sets whether the image option is always available regardless of data.
- Parameters
-
| [in] | always_allow_image | Whether to always show the image option. |
◆ setHasDefault()
| void ColorChannelCombo::setHasDefault |
( |
bool | has_default | ) |
|
Sets whether a default option is available in the combo.
- Parameters
-
| [in] | has_default | Whether to include a default option. |
◆ setHasSolidColor()
| void ColorChannelCombo::setHasSolidColor |
( |
bool | has_solid_color | ) |
|
Sets whether a solid color option is available in the combo.
- Parameters
-
| [in] | has_solid_color | Whether to include a solid color option. |
◆ setTarget()
Sets the target design object for color channel selection.
- Parameters
-
| [in] | target | The design object to target. |
◆ setUVType()
| void ColorChannelCombo::setUVType |
( |
const UVType & | target | ) |
|
Sets the UV type for color channel configuration.
- Parameters
-
| [in] | target | The UV type to use. |
The documentation for this class was generated from the following file: