API Documentation
Loading...
Searching...
No Matches
MaterialWidget Class Reference

A simple widget showing some visual properties of a Material or Model. More...

#include <MaterialWidget.h>

Inheritance diagram for MaterialWidget:
[legend]
Collaboration diagram for MaterialWidget:
[legend]

Signals

void colorChannelChosenSignal ()
 
void computedColorChosenSignal ()
 
void solidColorChosenSignal ()
 

Public Member Functions

 MaterialWidget (const DynamicPointer< QTDesignObject > &material, QWidget *parent=nullptr)
 
 MaterialWidget (QWidget *parent=nullptr)
 
void setTarget (const DynamicPointer< QTDesignObject > &target)
 

Protected Member Functions

void setup ()
 
void updateFromColor ()
 
void updateFromMaterial (const Model &model, const Material &mat)
 

Protected Attributes

TimeSpan m_animation_time
 
ColorChannelCombom_color_channel_combo
 
ColorChooserButtonm_color_chooser_button
 
QCustomComboBoxm_color_combo
 
PropertiesButtonm_properties_button
 
DynamicPointer< QTDesignObjectm_target
 

Detailed Description

A simple widget showing some visual properties of a Material or Model.


Constructor & Destructor Documentation

◆ MaterialWidget() [1/2]

MaterialWidget ( QWidget * parent = nullptr)

◆ MaterialWidget() [2/2]

MaterialWidget ( const DynamicPointer< QTDesignObject > & material,
QWidget * parent = nullptr )

Member Function Documentation

◆ colorChannelChosenSignal

void colorChannelChosenSignal ( )
signal

◆ computedColorChosenSignal

void computedColorChosenSignal ( )
signal

◆ setTarget()

void setTarget ( const DynamicPointer< QTDesignObject > & target)

◆ setup()

void setup ( )
protected

◆ solidColorChosenSignal

void solidColorChosenSignal ( )
signal

◆ updateFromColor()

void updateFromColor ( )
protected

◆ updateFromMaterial()

void updateFromMaterial ( const Model & model,
const Material & mat )
protected

Member Data Documentation

◆ m_animation_time

TimeSpan m_animation_time
protected

◆ m_color_channel_combo

ColorChannelCombo* m_color_channel_combo
protected

◆ m_color_chooser_button

ColorChooserButton* m_color_chooser_button
protected

◆ m_color_combo

QCustomComboBox* m_color_combo
protected

◆ m_properties_button

PropertiesButton* m_properties_button
protected

◆ m_target

DynamicPointer<QTDesignObject> m_target
protected

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