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

Can adjust the properties of a material using a QCustomSlider widget. More...

#include <MaterialPropertySlider.h>

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

Public Member Functions

void addTarget (const DynamicPointer< QTDesignObject > &object) override
 
 MaterialPropertySlider (const DynamicPointer< QTDesignObject > &object, Material::MaterialProperties property, QWidget *parent=nullptr)
 
 MaterialPropertySlider (Material::MaterialProperties property, QWidget *parent=nullptr)
 
void onObjectDeletedSlot ()
 
void onTargetUpdated (UUID id) override
 
void refreshFromMaterial (const Material &mat)
 
void removeTarget (const DynamicPointer< QTDesignObject > &object) override
 
- Public Member Functions inherited from QCustomSlider
fltp08 getValue () const
 
 QCustomSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 
 QCustomSlider (QWidget *parent=nullptr)
 
void setMaximum (fltp08 value)
 
void setMinimum (fltp08 value)
 
void setRange (fltp08 min, fltp08 max)
 
void setValue (fltp08 value)
 
- Public Member Functions inherited from DesignObjectWidgetInterface
virtual Bounds< 3, fltp08bounds () const
 
void clearTargets ()
 
 DesignObjectWidgetInterface ()
 
QTModelManagermanager () const
 
Buffer< Modelmodels () const
 
void setTarget (const DynamicPointer< QTDesignObject > &object)
 
void setTargetID (const UUID &object)
 
void setTargetIDs (const Buffer< UUID > &objects)
 
void setTargets (const Buffer< DynamicPointer< QTDesignObject > > &objects)
 
Buffer< UUIDtargetIDs () const
 
virtual ~DesignObjectWidgetInterface ()
 

Protected Member Functions

void init ()
 
- Protected Member Functions inherited from QCustomSlider
void init ()
 
fltp08 sliderScale () const
 
- Protected Member Functions inherited from DesignObjectWidgetInterface
const Dictionary< UUID, DynamicPointer< QTDesignObject > > & targets () const
 

Protected Attributes

Material::MaterialProperties m_property
 
- Protected Attributes inherited from DesignObjectWidgetInterface
DesignObjectInterfacem_interface
 

Additional Inherited Members

- Signals inherited from QCustomSlider
void edited (fltp08 percent)
 
void editedingFinished ()
 
- Protected Slots inherited from QCustomSlider
void onEditedSlot ()
 

Detailed Description

Can adjust the properties of a material using a QCustomSlider widget.


Constructor & Destructor Documentation

◆ MaterialPropertySlider() [1/2]

MaterialPropertySlider ( const DynamicPointer< QTDesignObject > & object,
Material::MaterialProperties property,
QWidget * parent = nullptr )

◆ MaterialPropertySlider() [2/2]

MaterialPropertySlider ( Material::MaterialProperties property,
QWidget * parent = nullptr )

Member Function Documentation

◆ addTarget()

void addTarget ( const DynamicPointer< QTDesignObject > & object)
inlineoverridevirtual

Reimplemented from DesignObjectWidgetInterface.

◆ init()

void init ( )
protected

◆ onObjectDeletedSlot()

void onObjectDeletedSlot ( )
inline

◆ onTargetUpdated()

void onTargetUpdated ( UUID id)
overridevirtual

Reimplemented from DesignObjectWidgetInterface.

◆ refreshFromMaterial()

void refreshFromMaterial ( const Material & mat)
inline

◆ removeTarget()

void removeTarget ( const DynamicPointer< QTDesignObject > & object)
inlineoverridevirtual

Reimplemented from DesignObjectWidgetInterface.

Member Data Documentation

◆ m_property

Material::MaterialProperties m_property
protected

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