gui/DiagnosticsPrivate.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_DIAGNOSTICSPRIVATE_HH_
18 #define _GAZEBO_GUI_DIAGNOSTICSPRIVATE_HH_
19 
20 #include <list>
21 #include <map>
22 #include <mutex>
23 #include <vector>
24 
25 #include "gazebo/gui/qt.h"
27 
28 namespace gazebo
29 {
30  namespace gui
31  {
32  class IncrementalPlot;
33 
36  {
38  public: using PointMap = std::map<QString, std::list<QPointF> >;
39 
42 
45 
47  public: QListWidget *labelList;
48 
51 
53  public: bool paused;
54 
56  public: std::mutex mutex;
57 
59  public: std::vector<IncrementalPlot *> plots;
60 
62  public: QVBoxLayout *plotLayout;
63  };
64  }
65 }
66 #endif
PointMap selectedLabels
The currently selected label.
Definition: gui/DiagnosticsPrivate.hh:50
transport::NodePtr node
Node for communications.
Definition: gui/DiagnosticsPrivate.hh:41
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
QListWidget * labelList
The list of diagnostic labels.
Definition: gui/DiagnosticsPrivate.hh:47
Forward declarations for transport.
bool paused
True when plotting is paused.
Definition: gui/DiagnosticsPrivate.hh:53
std::map< QString, std::list< QPointF > > PointMap
Definition: gui/DiagnosticsPrivate.hh:38
std::mutex mutex
Mutex to protect the point map.
Definition: gui/DiagnosticsPrivate.hh:56
transport::SubscriberPtr sub
Subscribes to diagnostic info.
Definition: gui/DiagnosticsPrivate.hh:44
QVBoxLayout * plotLayout
Layout to hold all the plots.
Definition: gui/DiagnosticsPrivate.hh:62
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
Private data for the Diagnostics class.
Definition: gui/DiagnosticsPrivate.hh:35
std::vector< IncrementalPlot * > plots
Plotting widget.
Definition: gui/DiagnosticsPrivate.hh:59