Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 33383a9c authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Minor modifications in UIParamFunction, UIParamLightDirection and UIParamGradient.

parent dd8875e5
......@@ -25,7 +25,6 @@ public:
const QString& name,
const QString& description );
//inline void SetValue( float value ) { ((QDoubleSpinBox*)m_Widget)->setValue( value ); }
inline void Value( QVector<float> &funcSamples ) const { m_FuncWidget->getFunction(funcSamples); }
inline const QWidget* Widget() const { return m_Widget; }
......
......@@ -19,25 +19,25 @@
class UIParamGradient : public UIParam
{
public:
inline UIParamGradient( const QString& id,
const QString& name,
const QString& description,
const QColor& color0,
const QColor& color1 );
inline UIParamGradient( const QString& id,
const QString& name,
const QString& description,
const QList<QColor>& colors,
const QList<float>& values );
inline UIParamGradient( const QString& id,
const QString& name,
const QString& description,
const QColor& color0,
const QColor& color1 );
inline UIParamGradient( const QString& id,
const QString& name,
const QString& description,
const QList<QColor>& colors,
const QList<float>& values );
//inline void SetValue( const QVector3D& value ) { ((GradientWidget*) m_Widget)->setDirection( value ); }
inline QColor Value( float v ) const { return ((GradientWidget*) m_Widget)->getColor(v); }
inline QColor Value( float v ) const { return Widget()->getColor(v); }
inline const QString& GLSLFunction( const QString& fName) const { return Widget()->getShaderFunctionGLSL(fName); }
inline const QWidget* Widget() const { return m_Widget; }
inline QWidget* Widget() { return m_Widget; }
inline const GradientWidget* Widget() const { return (const GradientWidget*) m_Widget; }
inline GradientWidget* Widget() { return (GradientWidget*) m_Widget; }
inline void ArrangeInLayout( QGridLayout *l, int line );
inline void ConnectModificationSignal();
inline void ArrangeInLayout( QGridLayout *l, int line );
inline void ConnectModificationSignal();
};
......
......@@ -19,18 +19,18 @@
class UIParamLightDirection : public UIParam
{
public:
inline UIParamLightDirection( const QString& id,
const QString& name,
const QString& description );
inline UIParamLightDirection( const QString& id,
const QString& name,
const QString& description );
inline void SetValue( const QVector3D& value ) { ((LightDirectionWidget*) m_Widget)->setDirection( value ); }
inline QVector3D Value() const { return ((LightDirectionWidget*) m_Widget)->getDirection(); }
inline void SetValue( const QVector3D& value ) { Widget()->setDirection( value ); }
inline QVector3D Value() const { return Widget()->getDirection(); }
inline const QWidget* Widget() const { return m_Widget; }
inline QWidget* Widget() { return m_Widget; }
inline const LightDirectionWidget* Widget() const { return (const LightDirectionWidget*) m_Widget; }
inline LightDirectionWidget* Widget() { return (LightDirectionWidget*) m_Widget; }
inline void ArrangeInLayout( QGridLayout *l, int line );
inline void ConnectModificationSignal();
inline void ArrangeInLayout( QGridLayout *l, int line );
inline void ConnectModificationSignal();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment