54 const QString& description,
56 const char *changed_slot,
59 , display_group_(display_group)
60 , parent_display_(parent_display)
65 for(
int i = 0; i < display_group->
numDisplays(); i++ )
68 if ( display != parent_display )
80 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.begin();
94 std::map<rviz::Display*, DisplayVisibilityProperty*>::iterator it =
disp_vis_props_.find( display );
121 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.
void onDisplayRemoved(rviz::Display *display)
DisplayVisibilityProperty(uint32_t vis_bit, Display *display, const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
std::map< rviz::Display *, DisplayVisibilityProperty * > disp_vis_props_
Property * takeChild(Property *child)
Remove a given child object and return a pointer to it.
DisplayGroup * display_group_
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=0, const char *changed_slot=0, QObject *receiver=0)
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 ~DisplayGroupVisibilityProperty()
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_