ImagesView.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 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_VIEWERS_IMAGESVIEW_HH_
18 #define GAZEBO_GUI_VIEWERS_IMAGESVIEW_HH_
19 
20 #include <string>
21 
22 #include "gazebo/util/system.hh"
23 #include "gazebo/msgs/msgs.hh"
24 #include "gazebo/gui/qt.h"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
31  class ImagesViewPrivate;
32 
33  class GZ_GUI_VISIBLE ImagesView : public TopicView
34  {
35  Q_OBJECT
36 
39  public: ImagesView(QWidget *_parent = nullptr);
40 
42  public: virtual ~ImagesView();
43 
44  // Documentation inherited
45  public: virtual void SetTopic(const std::string &_topicName);
46 
47  // Documentation inherited
48  private: virtual void UpdateImpl();
49 
52  private: void OnImages(ConstImagesStampedPtr &_msg);
53 
57  private: void AddImage(int _width, int _height);
58 
60  private: ImagesViewPrivate *dataPtr;
61  };
62  }
63 }
64 #endif
Definition: ImagesView.hh:33
Base class for widgets that display topic data.
Definition: TopicView.hh:78