29 #ifndef QUATERNION_PROPERTY_H 30 #define QUATERNION_PROPERTY_H 32 #include <OgreQuaternion.h> 43 const Ogre::Quaternion&
default_value = Ogre::Quaternion::IDENTITY,
46 const char* changed_slot =
nullptr,
47 QObject* receiver =
nullptr);
49 virtual bool setQuaternion(
const Ogre::Quaternion& quaternion);
55 bool setValue(
const QVariant& new_value)
override;
83 #endif // QUATERNION_PROPERTY_H
A single element of a property tree, with a name, value, description, and possibly children...
void setReadOnly(bool read_only) override
Overridden from Property to propagate read-only-ness to children.
bool ignore_child_updates_
void updateFromChildren()
Configuration data storage class.
virtual bool setQuaternion(const Ogre::Quaternion &quaternion)
void save(Config config) const override
Write the value of this property and/or its children into the given Config reference.
void load(const Config &config) override
Load the value of this property and/or its children from the given Config node.
Ogre::Quaternion quaternion_
QuaternionProperty(const QString &name=QString(), const Ogre::Quaternion &default_value=Ogre::Quaternion::IDENTITY, const QString &description=QString(), Property *parent=nullptr, const char *changed_slot=nullptr, QObject *receiver=nullptr)
bool setValue(const QVariant &new_value) override
Set the new value for this property. Returns true if the new value is different from the old value...
virtual Ogre::Quaternion getQuaternion() const