Tome
A generic data editor for games supporting arbitrary input and output formats.
Public Member Functions | List of all members
Tome::Vector3RWidget Class Reference

Allows editing three-dimensional vectors with real components. More...

#include <vector3rwidget.h>

Inheritance diagram for Tome::Vector3RWidget:

Public Member Functions

 Vector3RWidget (QWidget *parent=0)
 Constructs a new widget for editing three-dimensional vectors with real components. More...
 
QVariant getValue () const
 Returns the vector as QVariantMap with keys BuiltInType::Vector::X, BuiltInType::Vector::Y and BuiltInType::Vector::Z. More...
 
void setValue (const QVariant &v)
 Sets the current vector. More...
 

Detailed Description

Allows editing three-dimensional vectors with real components.

Constructor & Destructor Documentation

◆ Vector3RWidget()

Vector3RWidget::Vector3RWidget ( QWidget *  parent = 0)
explicit

Constructs a new widget for editing three-dimensional vectors with real components.

Parameters
parentOptional owner widget.

Member Function Documentation

◆ getValue()

QVariant Vector3RWidget::getValue ( ) const

Returns the vector as QVariantMap with keys BuiltInType::Vector::X, BuiltInType::Vector::Y and BuiltInType::Vector::Z.

Returns
Current vector.

◆ setValue()

void Vector3RWidget::setValue ( const QVariant &  v)

Sets the current vector.

Parameters
vVector as QVariantMap with keys BuiltInType::Vector::X, BuiltInType::Vector::Y and BuiltInType::Vector::Z.

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