Go to the documentation of this file.
30 #ifndef RVIZ_DISPLAY_VISIBILITY_PROPERTY_H_
31 #define RVIZ_DISPLAY_VISIBILITY_PROPERTY_H_
49 class DisplayVisibilityProperty;
61 const QString& name = QString(),
66 template <
typename Func,
typename R>
71 const QString& description,
77 connect(receiver, std::forward<Func>(changed_slot));
81 template <
typename Func,
typename P>
86 const QString& description,
91 connect(parent, std::forward<Func>(changed_slot));
104 bool setValue(
const QVariant& new_value)
override;
bool setValue(const QVariant &new_value) override
Property specialized to provide getter for booleans.
DisplayVisibilityProperty(uint32_t vis_bit, Display *display, const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr)
QMetaObject::Connection connect(const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection)
Connect changed() signal to given slot of receiver.
DisplayVisibilityProperty(uint32_t vis_bit, Display *display, const QString &name, bool default_value, const QString &description, P *parent, Func &&changed_slot)
A single element of a property tree, with a name, value, description, and possibly children.
~DisplayVisibilityProperty() override
DisplayVisibilityProperty(uint32_t vis_bit, Display *display, const QString &name, bool default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver)
bool getBool() const override
Qt::ItemFlags getViewFlags(int column) const override
Return item flags appropriate for the given column (0 or 1) for this Property.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09