##

ImagesView.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_VIEWERS_IMAGESVIEW_HH_
#define GAZEBO_GUI_VIEWERS_IMAGESVIEW_HH_
#include <string>
#include "gazebo/util/system.hh"
#include "gazebo/msgs/msgs.hh"
#include "gazebo/gui/qt.h"
#include "gazebo/gui/viewers/TopicView.hh"
namespace gazebo
{
namespace gui
{
class ImagesViewPrivate;
class GZ_GUI_VISIBLE ImagesView : public TopicView
{
Q_OBJECT
public: explicit ImagesView(QWidget *_parent = nullptr);
public: virtual ~ImagesView();
// Documentation inherited
public: virtual void SetTopic(const std::string &_topicName);
// Documentation inherited
private: virtual void UpdateImpl();
private: void OnImages(ConstImagesStampedPtr &_msg);
private: void AddImage(int _width, int _height);
private: ImagesViewPrivate *dataPtr;
};
}
}
#endif
gazebo::gui::ImagesView::SetTopic
virtual void SetTopic(const std::string &_topicName)
Set the name of the topic to get data from.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
TopicView.hh
system.hh
gazebo::gui::ImagesView::ImagesView
ImagesView(QWidget *_parent=nullptr)
Constructor.
msgs.hh
gazebo::gui::ImagesView::~ImagesView
virtual ~ImagesView()
Destructor.
gazebo::gui::ImagesView
Definition: ImagesView.hh:33
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::TopicView
Base class for widgets that display topic data.
Definition: TopicView.hh:78