RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
|
#include <vec3fproperty.h>
Public Member Functions | |
Vec3fProperty (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0) | |
QVariant | value (int role=Qt::UserRole) const |
virtual void | setValue (const QVariant &value) |
void | setEditorHints (const QString &hints) |
float | x () const |
void | setX (float x) |
float | y () const |
void | setY (float y) |
float | z () const |
void | setZ (float z) |
![]() | |
Property (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0) | |
QObject * | propertyObject () |
bool | isRoot () |
bool | isReadOnly () |
int | row () |
QString | editorHints () |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
virtual QVariant | editorData (QWidget *editor) |
virtual bool | setEditorData (QWidget *editor, const QVariant &data) |
Property * | findPropertyObject (QObject *propertyObject) |
Properties | |
float | x |
float | y |
float | z |
Additional Inherited Members | |
![]() | |
void | propertyChanged (QObject *, QString, QVariant, QVariant) |
![]() | |
QObject * | m_propertyObject |
QString | m_hints |
A custom property for Vec3f
This class provides a QLineEdit editor for all three values of a Vec3f struct (x, y, z) and also contains three QDoubleSpinBox instances to manipulate each value separately
Definition at line 24 of file vec3fproperty.h.
Vec3fProperty::Vec3fProperty | ( | const QString & | name = QString() , |
QObject * | propertyObject = 0 , |
||
QObject * | parent = 0 |
||
) |
Definition at line 18 of file vec3fproperty.cpp.
|
virtual |
Sets properties for the editor widget that is used to manipulate the data value managed by this instance
hints | a string containing property settings for the editor widget that manipulates this property |
Reimplemented from Property.
Definition at line 74 of file vec3fproperty.cpp.
|
virtual |
Sets the value stored by this property
value | the data converted to a QVariant |
Reimplemented from Property.
Definition at line 42 of file vec3fproperty.cpp.
void Vec3fProperty::setX | ( | float | x | ) |
Definition at line 86 of file vec3fproperty.cpp.
void Vec3fProperty::setY | ( | float | y | ) |
Definition at line 96 of file vec3fproperty.cpp.
void Vec3fProperty::setZ | ( | float | z | ) |
Definition at line 106 of file vec3fproperty.cpp.
|
virtual |
The value stored by this property
Reimplemented from Property.
Definition at line 26 of file vec3fproperty.cpp.
float Vec3fProperty::x | ( | ) | const |
float Vec3fProperty::y | ( | ) | const |
float Vec3fProperty::z | ( | ) | const |
|
readwrite |
Definition at line 27 of file vec3fproperty.h.
|
readwrite |
Definition at line 28 of file vec3fproperty.h.
|
readwrite |
Definition at line 29 of file vec3fproperty.h.