Developer Documentation
VSI::Vec4DWidget Class Reference

#include <Plugin-VSI/types/vec4dWidget.hh>

Inheritance diagram for VSI::Vec4DWidget:
VSI::TypeWidget

Public Member Functions

 Vec4DWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
 ~Vec4DWidget ()
 Destructor. More...
 
QString toValue () override
 Convert current value to string. More...
 
void fromValue (QString _from) override
 Read value from string. More...
 
void toDefault () override
 Reset to default. More...
 
- Public Member Functions inherited from VSI::TypeWidget
 TypeWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
virtual ~TypeWidget ()
 Destructor. More...
 
virtual QString toValue ()=0
 Return the type configuration result to a string. More...
 
virtual void fromValue (QString _from)=0
 Set configuration to the value of the given string. More...
 
virtual void toDefault ()=0
 reset the widget to default More...
 

Private Slots

void editingFinished ()
 

Private Attributes

float current_ [4]
 
float default_ [4]
 
QLineEdit * fields_ [4]
 

Detailed Description

Widget to configure number inputs

Definition at line 60 of file vec4dWidget.hh.

Constructor & Destructor Documentation

◆ Vec4DWidget()

VSI::Vec4DWidget::Vec4DWidget ( QMap< QString, QString > &  _hints,
const QString &  _typeName,
QWidget *  _parent = NULL 
)

Constructor.

Definition at line 60 of file vec4dWidget.cc.

◆ ~Vec4DWidget()

VSI::Vec4DWidget::~Vec4DWidget ( )

Destructor.

Definition at line 112 of file vec4dWidget.cc.

Member Function Documentation

◆ editingFinished

void VSI::Vec4DWidget::editingFinished ( )
privateslot

Definition at line 161 of file vec4dWidget.cc.

◆ fromValue()

void VSI::Vec4DWidget::fromValue ( QString  _from)
overridevirtual

Read value from string.

Implements VSI::TypeWidget.

Definition at line 132 of file vec4dWidget.cc.

◆ toDefault()

void VSI::Vec4DWidget::toDefault ( )
overridevirtual

Reset to default.

Implements VSI::TypeWidget.

Definition at line 181 of file vec4dWidget.cc.

◆ toValue()

QString VSI::Vec4DWidget::toValue ( )
overridevirtual

Convert current value to string.

Implements VSI::TypeWidget.

Definition at line 119 of file vec4dWidget.cc.

Member Data Documentation

◆ current_

float VSI::Vec4DWidget::current_[4]
private

Definition at line 84 of file vec4dWidget.hh.

◆ default_

float VSI::Vec4DWidget::default_[4]
private

Definition at line 85 of file vec4dWidget.hh.

◆ fields_

QLineEdit* VSI::Vec4DWidget::fields_[4]
private

Definition at line 87 of file vec4dWidget.hh.


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