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