Go to the documentation of this file.
29 #ifndef QUATERNION_PROPERTY_H
30 #define QUATERNION_PROPERTY_H
32 #include <OgreQuaternion.h>
43 const Ogre::Quaternion&
default_value = Ogre::Quaternion::IDENTITY,
47 template <
typename Func,
typename R>
49 const Ogre::Quaternion& default_value,
50 const QString& description,
56 connect(receiver, std::forward<Func>(changed_slot));
60 template <
typename Func,
typename P>
62 const Ogre::Quaternion& default_value,
63 const QString& description,
68 connect(parent, std::forward<Func>(changed_slot));
71 virtual bool setQuaternion(
const Ogre::Quaternion& quaternion);
77 bool setValue(
const QVariant& new_value)
override;
105 #endif // QUATERNION_PROPERTY_H
void updateFromChildren()
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,...
QuaternionProperty(const QString &name=QString(), const Ogre::Quaternion &default_value=Ogre::Quaternion::IDENTITY, const QString &description=QString(), Property *parent=nullptr)
void setReadOnly(bool read_only) override
Overridden from Property to propagate read-only-ness to children.
QuaternionProperty(const QString &name, const Ogre::Quaternion &default_value, const QString &description, P *parent, Func &&changed_slot)
QMetaObject::Connection connect(const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection)
Connect changed() signal to given slot of receiver.
A single element of a property tree, with a name, value, description, and possibly children.
void load(const Config &config) override
Load the value of this property and/or its children from the given Config node.
QuaternionProperty(const QString &name, const Ogre::Quaternion &default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver)
bool ignore_child_updates_
virtual bool setQuaternion(const Ogre::Quaternion &quaternion)
Ogre::Quaternion quaternion_
virtual Ogre::Quaternion getQuaternion() const
void save(Config config) const override
Write the value of this property and/or its children into the given Config reference.
Configuration data storage class.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02