51 const QString& description,
53 const char* changed_slot,
63 , display_group_(display_group)
64 , parent_display_(parent_display)
66 connect(display_group, SIGNAL(displayAdded(
rviz::Display*)),
this,
68 connect(display_group, SIGNAL(displayRemoved(
rviz::Display*)),
this,
71 for (
int i = 0; i < display_group->
numDisplays(); i++)
74 if (display != parent_display)
86 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.begin();
100 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.find(display);
117 "Uncheck to hide everything in this Display Group",
this);
130 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.find(display);
void setDisableChildrenIfFalse(bool disable)
A single element of a property tree, with a name, value, description, and possibly children...
virtual int numDisplays() const
Return the number of child Displays.
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, const char *changed_slot=nullptr, QObject *receiver=nullptr)
void onDisplayRemoved(rviz::Display *display)
std::map< rviz::Display *, DisplayVisibilityProperty * > disp_vis_props_
~DisplayGroupVisibilityProperty() override
Property * takeChild(Property *child)
Remove a given child object and return a pointer to it.
DisplayVisibilityProperty(uint32_t vis_bit, Display *display, const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr, const char *changed_slot=nullptr, QObject *receiver=nullptr)
DisplayGroup * display_group_
void setParent(Property *new_parent)
Set parent property, without telling the parent.
A Display object which stores other Displays as children.
void onDisplayAdded(rviz::Display *display)
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.
Display * parent_display_