SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::gui::qt::materialdatawidget_h::MaterialDataWidget Class Reference

#include <MaterialDataWidget.h>

Inheritance diagram for sofa::gui::qt::materialdatawidget_h::MaterialDataWidget:

Protected Attributes

QLineEdit_nameEdit
 
QRGBAColorPicker * _ambientPicker
 
QRGBAColorPicker * _emissivePicker
 
QRGBAColorPicker * _specularPicker
 
QRGBAColorPicker * _diffusePicker
 
QLineEdit_shininessEdit
 
QCheckBox * _ambientCheckBox
 
QCheckBox * _emissiveCheckBox
 
QCheckBox * _specularCheckBox
 
QCheckBox * _diffuseCheckBox
 
QCheckBox * _shininessCheckBox
 
- Protected Attributes inherited from sofa::gui::qt::TDataWidget< Material >
MyTDataTdata
 
- Protected Attributes inherited from sofa::gui::qt::DataWidget
core::objectmodel::BaseDatabaseData
 
bool dirty
 
int counter
 
bool m_isFilled
 tell if DataWidget has been filled from Data true by default More...
 
bool m_toFill
 bool to warn action is needed to fill Data, false by default More...
 

Public Member Functions

 MaterialDataWidget (QWidget *parent, const char *name, Data< Material > *data)
 
virtual bool createWidgets ()
 
virtual void setDataReadOnly (bool readOnly)
 This method is called after createWidgets to configure whether the created widgets should be read-only. More...
 
virtual unsigned int numColumnWidget ()
 Helper method for colum. More...
 
- Public Member Functions inherited from sofa::gui::qt::TDataWidget< Material >
 TDataWidget (QWidget *parent, const char *name, MyTData *d)
 
sofa::core::objectmodel::Data< Material > * getData ()
 
const sofa::core::objectmodel::Data< Material > * getData () const
 
virtual void setData (MyTData *d)
 
- Public Member Functions inherited from sofa::gui::qt::DataWidget
 DataWidget (QWidget *parent, const char *name, MyData *d)
 
 ~DataWidget () override
 
virtual void setData (MyData *d)
 
const core::objectmodel::BaseDatagetBaseData () const
 BaseData pointer accessor function. More...
 
core::objectmodel::BaseDatagetBaseData ()
 
void updateVisibility ()
 
bool isDirty ()
 
bool isFilled ()
 return if DataWidget as been filled More...
 
void setFilled (bool value)
 method to warn if Data has not been filled at constructor. More...
 
virtual unsigned int sizeWidget ()
 Helper method to give a size. More...
 

Protected Member Functions

virtual void readFromData ()
 The implementation of this method tells how the widget reads the value of the data. More...
 
virtual void writeToData ()
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::gui::qt::TDataWidget< Material >
static RealObject * create (RealObject *, CreatorArgument &arg)
 
- Static Public Member Functions inherited from sofa::gui::qt::DataWidget
template<class T >
static T * create (T *, const CreatorArgument &arg)
 
static DataWidgetCreateDataWidget (const DataWidget::CreatorArgument &dwarg)
 
- Signals inherited from sofa::gui::qt::DataWidget
void WidgetDirty (bool)
 
void DataOwnerDirty (bool)
 
void dataValueChanged (QString dataValueString)
 
- Public Slots inherited from sofa::gui::qt::DataWidget
void updateDataValue ()
 
void updateWidgetValue ()
 
void setWidgetDirty (bool b=true)
 
void fillFromData ()
 

Attribute details

QCheckBox* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_ambientCheckBox
protected
QRGBAColorPicker* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_ambientPicker
protected
QCheckBox* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_diffuseCheckBox
protected
QRGBAColorPicker* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_diffusePicker
protected
QCheckBox* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_emissiveCheckBox
protected
QRGBAColorPicker* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_emissivePicker
protected
QLineEdit* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_nameEdit
protected
QCheckBox* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_shininessCheckBox
protected
QLineEdit* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_shininessEdit
protected
QCheckBox* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_specularCheckBox
protected
QRGBAColorPicker* sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::_specularPicker
protected

Constructor details

sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::MaterialDataWidget ( QWidget parent,
const char *  name,
Data< Material > *  data 
)
inline

Function details

bool sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::createWidgets ( )
virtual

The implementation of this method holds the widget creation and the signal / slot connections.

Implements sofa::gui::qt::DataWidget.

virtual unsigned int sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::numColumnWidget ( )
inlinevirtual

Helper method for colum.

Reimplemented from sofa::gui::qt::DataWidget.

void sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::readFromData ( )
protectedvirtual

The implementation of this method tells how the widget reads the value of the data.

Implements sofa::gui::qt::DataWidget.

void sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::setDataReadOnly ( bool  readOnly)
virtual

This method is called after createWidgets to configure whether the created widgets should be read-only.

Implements sofa::gui::qt::DataWidget.

void sofa::gui::qt::materialdatawidget_h::MaterialDataWidget::writeToData ( )
protectedvirtual

The implementation of this methods needs to tell how the widget can write its value in the data

Implements sofa::gui::qt::DataWidget.