Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
pqVectorWidget Class Referenceabstract

pqVectorWidget is an abstract widget that can be used to edit a vector. More...

#include <pqVectorWidget.h>

Inheritance diagram for pqVectorWidget:
Inheritance graph
[legend]

Public Slots

virtual void setValue (int index, float value)=0
 Set the value at index index of the QVariant with value. More...
 

Signals

void valueChanged (const QVariant &)
 Signal emitted when any component value changed. More...
 

Public Member Functions

 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

void CreateUI (unsigned int nbElem)
 This function creates an horizontal layout with nbElem spinboxes. More...
 
virtual float getValue (int index)=0
 

Protected Attributes

QVariant Vector
 

Properties

QVariant value
 

Detailed Description

pqVectorWidget is an abstract widget that can be used to edit a vector.

Definition at line 45 of file pqVectorWidget.h.

Constructor & Destructor Documentation

◆ pqVectorWidget()

pqVectorWidget::pqVectorWidget ( const QVariant &  value,
QWidget *  parent = nullptr 
)

◆ ~pqVectorWidget()

pqVectorWidget::~pqVectorWidget ( )
overridedefault

Member Function Documentation

◆ value()

const QVariant& pqVectorWidget::value ( ) const
inline

Get the value directly in vector form.

Definition at line 57 of file pqVectorWidget.h.

◆ valueChanged

void pqVectorWidget::valueChanged ( const QVariant &  )
signal

Signal emitted when any component value changed.

◆ setValue

virtual void pqVectorWidget::setValue ( int  index,
float  value 
)
pure virtualslot

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

Must be overidden to cast to the specialized QVariant.

Implemented in pqVectorWidgetImpl< T, S >.

◆ CreateUI()

void pqVectorWidget::CreateUI ( unsigned int  nbElem)
protected

This function creates an horizontal layout with nbElem spinboxes.

◆ getValue()

virtual float pqVectorWidget::getValue ( int  index)
protectedpure virtual

Implemented in pqVectorWidgetImpl< T, S >.

Member Data Documentation

◆ Vector

QVariant pqVectorWidget::Vector
protected

Definition at line 74 of file pqVectorWidget.h.

Property Documentation

◆ value

QVariant pqVectorWidget::value
read

Definition at line 48 of file pqVectorWidget.h.


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