void Primitive::updateControls() { if (show_measure_control_) { removeMeasureControl(); addMeasureControl(); } if (show_rotation_control_) { removeRotationControls(); addRotationControls(); } if (show_movement_control_) { removeMovementControls(); addMovementControls(); } if (show_description_control_) { removeDescriptionControl(); addDescriptionControl(); } if (show_scale_control_) { updateScaleControls(); } }
void UnknownObject::uboxCallback(const InteractiveMarkerFeedbackConstPtr &feedback) { defaultCallback(feedback); if (show_scale_control_) { updateScaleControls(); server_->applyChanges(); } }