Go to the documentation of this file.
51 const QString& description,
54 , display_group_(display_group)
55 , parent_display_(parent_display)
62 for (
int i = 0; i < display_group->
numDisplays(); i++)
65 if (display != parent_display)
77 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.begin();
91 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.find(display);
102 DisplayGroup* display_group = qobject_cast<DisplayGroup*>(display);
108 "Uncheck to hide everything in this Display Group",
this);
121 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.find(display);
void displayAdded(rviz::Display *display)
void onDisplayAdded(rviz::Display *display)
DisplayGroupVisibilityProperty(uint32_t vis_bit, DisplayGroup *display_group, Display *parent_display, const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr)
virtual Display * getDisplayAt(int index) const
Return the index-th Display in this group, or NULL if the index is invalid.
virtual void addChild(Property *child, int index=-1)
Add a child property.
void setDisableChildrenIfFalse(bool disable)
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.
A single element of a property tree, with a name, value, description, and possibly children.
void displayRemoved(rviz::Display *display)
std::map< rviz::Display *, DisplayVisibilityProperty * > disp_vis_props_
DisplayGroup * display_group_
virtual int numDisplays() const
Return the number of child Displays.
void setParent(Property *new_parent)
Set parent property, without telling the parent.
void onDisplayRemoved(rviz::Display *display)
~DisplayGroupVisibilityProperty() override
Display * parent_display_
Property * takeChild(Property *child)
Remove a given child object and return a pointer to it.
A Display object which stores other Displays as children.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02