33#include <NDEVR/QTDesignObject.h>
34#include <NDEVR/QCustomComboBox.h>
118 void onTargetUpdatedSlot();
122 void onComboChanged();
DesignParameter currentParameter() const
Returns the currently selected design parameter for the color channel.
void refreshFromModel()
Refreshes the combo state from the current model data.
TimeSpan m_animation_time
Duration of color transition animations.
bool m_has_solid_color
Whether a solid color option is available.
UVType m_uv_type
The UV type being configured.
void setHasDefault(bool has_default)
Sets whether a default option is available in the combo.
ColorChannelCombo(const DynamicPointer< QTDesignObject > &target, QCustomComboBox *combo)
Constructs a ColorChannelCombo with a target design object and combo box.
void setHasSolidColor(bool has_solid_color)
Sets whether a solid color option is available in the combo.
void init()
Initializes the combo box items and signal connections.
bool m_has_contrast_color
Whether a contrast color option is available.
bool m_has_default
Whether a default option is available.
void setUVType(const UVType &target)
Sets the UV type for color channel configuration.
bool m_has_image
Whether an image coloring option is available.
void refreshFromMaterial(const Material &mat)
Refreshes the combo state from the given material.
void computedColorChosenSignal()
Emitted when computed color mode is chosen.
void setTarget(const DynamicPointer< QTDesignObject > &target)
Sets the target design object for color channel selection.
void setAlwaysAllowImage(bool always_allow_image)
Sets whether the image option is always available regardless of data.
bool m_has_color_by_model
Whether a color-by-model option is available.
void solidColorChosenSignal()
Emitted when solid color mode is chosen.
QCustomComboBox * m_combo
The combo box widget for selection.
ColorChannelCombo(const DynamicPointer< QTDesignObject > &target, UVType uv, QCustomComboBox *combo)
Constructs a ColorChannelCombo with a target, UV type, and combo box.
DynamicPointer< QTDesignObject > m_target
The target design object for color configuration.
void colorChannelChosenSignal()
Emitted when a specific color channel is chosen.
bool isSetToImage() const
Returns whether the current selection is set to image mode.
bool m_always_allow_image
Whether the image option is always shown.
bool m_needs_item_refresh
Whether the combo items need to be refreshed.
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events for the combo box to handle custom interactions.
A definition of data that is logically stored in the Model hierarchy.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Container responsible for storing and setting the appearance of a Model or Geometry within the NDEVR ...
A compact way to present a list of options to the user.
Stores a time span, or difference between two times, with an optional start time.
The primary namespace for the NDEVR SDK.
UVType
Channels that describe how an object should interact with light.