#include <quaternion_property.h>
Public Member Functions | |
virtual Ogre::Quaternion | getQuaternion () const |
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 void | save (Config config) const |
Write the value of this property and/or its children into the given Config reference. | |
virtual bool | setQuaternion (const Ogre::Quaternion &quaternion) |
virtual void | setReadOnly (bool read_only) |
Overridden from Property to propagate read-only-ness to children. | |
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, false if same. | |
Private Slots | |
void | emitAboutToChange () |
void | updateFromChildren () |
Private Member Functions | |
void | updateString () |
Private Attributes | |
bool | ignore_child_updates_ |
Ogre::Quaternion | quaternion_ |
Property * | w_ |
Property * | x_ |
Property * | y_ |
Property * | z_ |
Definition at line 39 of file quaternion_property.h.
rviz::QuaternionProperty::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 |
||
) |
Definition at line 37 of file quaternion_property.cpp.
void rviz::QuaternionProperty::emitAboutToChange | ( | ) | [private, slot] |
Definition at line 114 of file quaternion_property.cpp.
virtual Ogre::Quaternion rviz::QuaternionProperty::getQuaternion | ( | ) | const [inline, virtual] |
Definition at line 51 of file quaternion_property.h.
void rviz::QuaternionProperty::load | ( | const Config & | config | ) | [virtual] |
Load the value of this property and/or its children from the given Config node.
Reimplemented from rviz::Property.
Definition at line 131 of file quaternion_property.cpp.
void rviz::QuaternionProperty::save | ( | Config | config | ) | const [virtual] |
Write the value of this property and/or its children into the given Config reference.
Reimplemented from rviz::Property.
Definition at line 147 of file quaternion_property.cpp.
bool rviz::QuaternionProperty::setQuaternion | ( | const Ogre::Quaternion & | quaternion | ) | [virtual] |
Definition at line 62 of file quaternion_property.cpp.
void rviz::QuaternionProperty::setReadOnly | ( | bool | read_only | ) | [virtual] |
Overridden from Property to propagate read-only-ness to children.
Reimplemented from rviz::Property.
Definition at line 157 of file quaternion_property.cpp.
bool rviz::QuaternionProperty::setValue | ( | const QVariant & | new_value | ) | [virtual] |
Set the new value for this property. Returns true if the new value is different from the old value, false if same.
new_value | The new value to store. |
If the new value is different from the old value, this emits aboutToChange() before changing the value and emits changed() after.
If the value set is an invalid QVariant (QVariant::isValid() returns false), the value will not be editable in a PropertyTreeWidget.
Reimplemented from rviz::Property.
Definition at line 80 of file quaternion_property.cpp.
void rviz::QuaternionProperty::updateFromChildren | ( | ) | [private, slot] |
Definition at line 101 of file quaternion_property.cpp.
void rviz::QuaternionProperty::updateString | ( | ) | [private] |
Definition at line 122 of file quaternion_property.cpp.
bool rviz::QuaternionProperty::ignore_child_updates_ [private] |
Definition at line 76 of file quaternion_property.h.
Ogre::Quaternion rviz::QuaternionProperty::quaternion_ [private] |
Definition at line 71 of file quaternion_property.h.
Property* rviz::QuaternionProperty::w_ [private] |
Definition at line 75 of file quaternion_property.h.
Property* rviz::QuaternionProperty::x_ [private] |
Definition at line 72 of file quaternion_property.h.
Property* rviz::QuaternionProperty::y_ [private] |
Definition at line 73 of file quaternion_property.h.
Property* rviz::QuaternionProperty::z_ [private] |
Definition at line 74 of file quaternion_property.h.