29 #ifndef VECTOR_PROPERTY_H 30 #define VECTOR_PROPERTY_H 32 #include <OgreVector3.h> 47 const char *changed_slot = 0,
48 QObject* receiver = 0 );
50 virtual bool setVector(
const Ogre::Vector3& vector );
54 virtual bool setValue(
const QVariant& new_value );
79 #endif // VECTOR_PROPERTY_H
virtual bool setVector(const Ogre::Vector3 &vector)
A single element of a property tree, with a name, value, description, and possibly children...
bool ignore_child_updates_
bool add(const Ogre::Vector3 &offset)
Configuration data storage class.
virtual void setReadOnly(bool read_only)
Overridden from Property to propagate read-only-ness to children.
virtual Ogre::Vector3 getVector() const
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...
void updateFromChildren()
virtual void save(Config config) const
Write the value of this property and/or its children into the given Config reference.
VectorProperty(const QString &name=QString(), const Ogre::Vector3 &default_value=Ogre::Vector3::ZERO, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
virtual void load(const Config &config)
Load the value of this property and/or its children from the given Config reference.