ModelListWidgetPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #ifndef _GAZEBO_GUI_MODELLISTWIDGETPRIVATE_HH_
18 #define _GAZEBO_GUI_MODELLISTWIDGETPRIVATE_HH_
19 
20 #include <string>
21 #include <list>
22 #include <vector>
23 #include <deque>
24 #include <sdf/sdf.hh>
25 
26 #include "gazebo/gui/qt.h"
27 #include "gazebo/msgs/msgs.hh"
29 
33 
34 namespace gazebo
35 {
36  namespace gui
37  {
39  {
40  public: QTreeWidget *modelTreeWidget;
42 
49 
52 
54  public: QTreeWidgetItem *guiItem;
55 
57  public: QTreeWidgetItem *sceneItem;
58 
60  public: QTreeWidgetItem *physicsItem;
61 
63  public: QTreeWidgetItem *modelsItem;
64 
66  public: QTreeWidgetItem *lightsItem;
67 
69  public: QTreeWidgetItem *sphericalCoordItem;
70 
73  public: std::mutex *propMutex, *receiveMutex;
74  public: sdf::ElementPtr sdfElement;
75  public: std::string selectedEntityName;
76  public: bool fillingPropertyTree;
78 
79  public: msgs::Request *requestMsg;
80 
81  public: std::vector<event::ConnectionPtr> connections;
82 
83  typedef std::list<msgs::Model> ModelMsgs_L;
85 
86  typedef std::list<msgs::Light> LightMsgs_L;
88 
89  typedef std::list<std::string> RemoveEntity_L;
91 
92  public: msgs::Model modelMsg;
93  public: msgs::Link linkMsg;
94  public: msgs::Scene sceneMsg;
95  public: msgs::Joint jointMsg;
96  public: msgs::Physics physicsMsg;
97  public: msgs::Light lightMsg;
98  public: msgs::SphericalCoordinates sphericalCoordMsg;
99 
100  public: bool fillPropertyTree;
101  public: std::deque<std::string> fillTypes;
102 
103  public: msgs::Light::LightType lightType;
104 
106  public: msgs::Physics_Type physicsType;
107  };
108  }
109 }
110 #endif
std::string selectedEntityName
Definition: ModelListWidgetPrivate.hh:75
msgs::Physics_Type physicsType
Type of physics engine.
Definition: ModelListWidgetPrivate.hh:106
msgs::Light::LightType lightType
Definition: ModelListWidgetPrivate.hh:103
std::list< msgs::Light > LightMsgs_L
Definition: ModelListWidgetPrivate.hh:86
msgs::Joint jointMsg
Definition: ModelListWidgetPrivate.hh:95
QtVariantPropertyManager * variantManager
Definition: ModelListWidgetPrivate.hh:71
QTreeWidgetItem * modelsItem
Models tree item.
Definition: ModelListWidgetPrivate.hh:63
transport::SubscriberPtr responseSub
Definition: ModelListWidgetPrivate.hh:50
RemoveEntity_L removeEntityList
Definition: ModelListWidgetPrivate.hh:90
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Definition: qtvariantproperty.h:92
msgs::Light lightMsg
Definition: ModelListWidgetPrivate.hh:97
bool fillPropertyTree
Definition: ModelListWidgetPrivate.hh:100
Forward declarations for transport.
Definition: qttreepropertybrowser.h:142
QTreeWidgetItem * guiItem
GUI tree item.
Definition: ModelListWidgetPrivate.hh:54
LightMsgs_L lightMsgs
Definition: ModelListWidgetPrivate.hh:87
transport::PublisherPtr lightPub
Definition: ModelListWidgetPrivate.hh:48
transport::PublisherPtr scenePub
Definition: ModelListWidgetPrivate.hh:46
std::mutex * receiveMutex
Definition: ModelListWidgetPrivate.hh:73
QtProperty * selectedProperty
Definition: ModelListWidgetPrivate.hh:77
Definition: ModelListWidgetPrivate.hh:38
QtVariantEditorFactory * variantFactory
Definition: ModelListWidgetPrivate.hh:72
msgs::SphericalCoordinates sphericalCoordMsg
Definition: ModelListWidgetPrivate.hh:98
sdf::ElementPtr sdfElement
Definition: ModelListWidgetPrivate.hh:74
msgs::Model modelMsg
Definition: ModelListWidgetPrivate.hh:92
msgs::Scene sceneMsg
Definition: ModelListWidgetPrivate.hh:94
QTreeWidgetItem * sphericalCoordItem
Spherical coordinates tree item.
Definition: ModelListWidgetPrivate.hh:69
QTreeWidget * modelTreeWidget
Definition: ModelListWidgetPrivate.hh:40
transport::NodePtr node
Definition: ModelListWidgetPrivate.hh:43
transport::PublisherPtr physicsPub
Definition: ModelListWidgetPrivate.hh:47
std::vector< event::ConnectionPtr > connections
Definition: ModelListWidgetPrivate.hh:81
bool fillingPropertyTree
Definition: ModelListWidgetPrivate.hh:76
std::mutex * propMutex
Definition: ModelListWidgetPrivate.hh:73
msgs::Physics physicsMsg
Definition: ModelListWidgetPrivate.hh:96
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
QTreeWidgetItem * sceneItem
Scene tree item.
Definition: ModelListWidgetPrivate.hh:57
std::deque< std::string > fillTypes
Definition: ModelListWidgetPrivate.hh:101
msgs::Link linkMsg
Definition: ModelListWidgetPrivate.hh:93
Definition: qtpropertybrowser.h:77
Definition: qtvariantproperty.h:302
transport::PublisherPtr modelPub
Definition: ModelListWidgetPrivate.hh:45
std::list< msgs::Model > ModelMsgs_L
Definition: ModelListWidgetPrivate.hh:83
msgs::Request * requestMsg
Definition: ModelListWidgetPrivate.hh:79
std::list< std::string > RemoveEntity_L
Definition: ModelListWidgetPrivate.hh:89
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
transport::SubscriberPtr requestSub
Definition: ModelListWidgetPrivate.hh:51
QTreeWidgetItem * physicsItem
Physics tree item.
Definition: ModelListWidgetPrivate.hh:60
QtTreePropertyBrowser * propTreeBrowser
Definition: ModelListWidgetPrivate.hh:41
QTreeWidgetItem * lightsItem
Lights tree item.
Definition: ModelListWidgetPrivate.hh:66
ModelMsgs_L modelMsgs
Definition: ModelListWidgetPrivate.hh:84
transport::PublisherPtr requestPub
Definition: ModelListWidgetPrivate.hh:44