Esempio n. 1
0
QWidget* KoSelectShapeAction::createWidget( QWidget* parent )
{
    QToolButton* toolButton = new QToolButton( parent );
    toolButton->setPopupMode( QToolButton::InstantPopup );
    toolButton->setMenu( createShapeMenu() );
    return toolButton;
}
ShapeMarker::ShapeMarker(boost::shared_ptr<interactive_markers::InteractiveMarkerServer> im_server,
    cob_3d_mapping_msgs::Shape& shape,std::vector<unsigned int>& moved_shapes_indices,std::vector<unsigned int>& interacted_shapes,
    std::vector<unsigned int>& deleted_markers_indices, bool arrows,bool deleted) ://, unsigned int& deleted) :
    interacted_shapes_(interacted_shapes) , moved_shapes_indices_(moved_shapes_indices) , deleted_markers_indices_(deleted_markers_indices)
{
  arrows_ = arrows ;
  deleted_ = deleted ;
  im_server_ = im_server;
  shape_ = shape;
  id_ = shape.id;
  createShapeMenu ();
  createInteractiveMarker();
}