예제 #1
0
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();
    }
}
예제 #2
0
void UnknownObject::uboxCallback(const InteractiveMarkerFeedbackConstPtr &feedback)
{
  defaultCallback(feedback);

  if (show_scale_control_)
  {
    updateScaleControls();
    server_->applyChanges();
  }
}