17 #ifndef _MODELRIGHTMENU_HH_
18 #define _MODELRIGHTMENU_HH_
23 #include <ignition/transport/Node.hh>
71 public:
void Run(
const std::string &_entityName,
const QPoint &_pt,
72 EntityTypes _type = MODEL);
75 private slots:
void OnMoveTo();
78 private slots:
void OnFollow();
81 private slots:
void OnEdit();
84 private slots:
void OnApplyWrench();
88 private slots:
void OnDelete(
const std::string &_name=
"");
100 private:
void OnRequest(ConstRequestPtr &_msg);
104 private:
void OnWindowMode(
const std::string &_mode);
113 private: std::string entityName;
116 private: QAction *moveToAct;
119 private: QAction *followAct;
122 private: QAction *editAct;
125 private: QAction *applyWrenchAct;
128 private: std::vector<event::ConnectionPtr> connections;
131 private: std::string windowMode;
138 private: std::vector<ViewState*> viewStates;
156 const std::string &_checkRequest,
157 const std::string &_uncheckRequest);
178 public slots:
void Callback();
184 private: ignition::transport::Node nodeIgn;
std::map< std::string, bool > modelStates
State of all the models for this view.
Definition: ModelRightMenu.hh:160
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
Forward declarations for transport.
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
ModelRightMenu * parent
Pointer to the ModelRightMenu.
Definition: ModelRightMenu.hh:169
std::string checkRequest
Name of the request to send when checked.
Definition: ModelRightMenu.hh:172
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
std::string uncheckRequest
Name of the request to send when unchecked.
Definition: ModelRightMenu.hh:175
A class for managing view visualization states.
Definition: ModelRightMenu.hh:147
QAction * action
Action for this view.
Definition: ModelRightMenu.hh:163
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
bool globalEnable
True if the view visualization is enabled globally.
Definition: ModelRightMenu.hh:166