ImFusion SDK 4.3
ParamControl Class Referenceabstract

#include <ImFusion/GUI/PropertiesWidgetParamControls.h>

Base class for parameter controls. More...

+ Inheritance diagram for ParamControl:

Detailed Description

Base class for parameter controls.

Signals

void valueChanged ()
 Emitted when the parameter value was changed by the user.
 

Public Member Functions

 ParamControl (Properties::ParamType t, const std::string &n)
 Each control can only be used for a fixed type and parameter.
 
 ~ParamControl () override=default
 Subclasses are expected to delete their widget.
 
virtual void updateValue (const std::string &value, const std::vector< Properties::Attribute > &attributes)=0
 Updates the current value and adjusts the attributes.
 
virtual void retrieveValue (Properties *p) const =0
 Retrieves the value from the widget and writes it into the properties.
 
virtual QWidget * widget () const =0
 Returns the widget for this control.
 

Public Attributes

const Properties::ParamType type
 
const std::string name
 
std::vector< Properties::Attributeattributes
 

Member Function Documentation

◆ updateValue()

◆ retrieveValue()

◆ widget()

virtual QWidget * widget ( ) const
pure virtual

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close