ImagesView.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 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 _IMAGESVIEW_HH_
18 #define _IMAGESVIEW_HH_
19 
20 #include <string>
21 #include <utility>
22 #include <vector>
23 
24 #include <boost/thread/mutex.hpp>
25 
26 #include "gazebo/common/Time.hh"
27 #include "gazebo/msgs/msgs.hh"
28 
30 
31 #include "gazebo/gui/qt.h"
34 #include "gazebo/util/system.hh"
35 
36 namespace gazebo
37 {
38  namespace gui
39  {
40  class ImagesViewPrivate;
41 
43  {
44  Q_OBJECT
45 
48  public: ImagesView(QWidget *_parent = NULL);
49 
51  public: virtual ~ImagesView();
52 
53  // Documentation inherited
54  public: virtual void SetTopic(const std::string &_topicName);
55 
56  // Documentation inherited
57  private: virtual void UpdateImpl();
58 
61  private: void OnImages(ConstImagesStampedPtr &_msg);
62 
66  private: void AddImage(int _width, int _height);
67 
69  private: ImagesViewPrivate *dataPtr;
70  };
71  }
72 }
73 #endif
Forward declarations for transport.
Definition: ImagesView.hh:42
Base class for widgets that display topic data.
Definition: TopicView.hh:76
#define NULL
Definition: CommonTypes.hh:30
Private data for the ImagesView class.
Definition: ImagesViewPrivate.hh:32
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48