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

#include <MaterialPropertySlider.h>

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

Public Member Functions

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

Protected Member Functions

void init ()
 
- Protected Member Functions inherited from QCustomSlider
fltp08 sliderScale () const
 
void init ()
 
- 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 ()
 

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 files: