Public Member Functions | Protected Member Functions | List of all members
pqVectorWidgetImpl< T, S > Class Template Reference

pqVectorWidgetImpl is a templated class inherited from pqVectorWidget to be used with QVector classes or QQuaternion. More...

#include <pqVectorWidget.h>

Inheritance diagram for pqVectorWidgetImpl< T, S >:
Inheritance graph
[legend]
Collaboration diagram for pqVectorWidgetImpl< T, S >:
Collaboration graph
[legend]

Public Member Functions

 pqVectorWidgetImpl (const T &value, QWidget *parent=nullptr)
 
value () const
 
void setValue (int index, float value) override
 Set the value at index index of the QVariant with value. More...
 
- Public Member Functions inherited from pqVectorWidget
 pqVectorWidget (const QVariant &value, QWidget *parent=nullptr)
 
 ~pqVectorWidget () override=default
 
const QVariant & value () const
 Get the value directly in vector form. More...
 

Protected Member Functions

float getValue (int index) override
 
- Protected Member Functions inherited from pqVectorWidget
void CreateUI (unsigned int nbElem)
 This function creates an horizontal layout with nbElem spinboxes. More...
 

Additional Inherited Members

- Public Slots inherited from pqVectorWidget
- Signals inherited from pqVectorWidget
void valueChanged (const QVariant &)
 Signal emitted when any component value changed. More...
 
- Protected Attributes inherited from pqVectorWidget
QVariant Vector
 
- Properties inherited from pqVectorWidget
QVariant value
 

Detailed Description

template<class T, unsigned int S>
class pqVectorWidgetImpl< T, S >

pqVectorWidgetImpl is a templated class inherited from pqVectorWidget to be used with QVector classes or QQuaternion.

Definition at line 64 of file pqVectorWidget.h.

Constructor & Destructor Documentation

◆ pqVectorWidgetImpl()

template<class T , unsigned int S>
pqVectorWidgetImpl< T, S >::pqVectorWidgetImpl ( const T &  value,
QWidget *  parent = nullptr 
)
inline

Definition at line 67 of file pqVectorWidget.h.

Member Function Documentation

◆ value()

template<class T , unsigned int S>
T pqVectorWidgetImpl< T, S >::value ( ) const
inline

Definition at line 74 of file pqVectorWidget.h.

◆ setValue()

template<class T , unsigned int S>
void pqVectorWidgetImpl< T, S >::setValue ( int  index,
float  value 
)
inlineoverridevirtual

Set the value at index index of the QVariant with value.

Must be overidden to cast to the specialized QVariant.

Implements pqVectorWidget.

Definition at line 76 of file pqVectorWidget.h.

◆ getValue()

template<class T , unsigned int S>
float pqVectorWidgetImpl< T, S >::getValue ( int  index)
inlineoverrideprotectedvirtual

Implements pqVectorWidget.

Definition at line 85 of file pqVectorWidget.h.


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