##

ImageFrame.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_IMAGEFRAME_HH_
#define GAZEBO_GUI_VIEWERS_IMAGEFRAME_HH_
#include <memory>
#include "gazebo/gui/qt.h"
#include "gazebo/msgs/msgs.hh"
namespace gazebo
{
namespace gui
{
class ImageFramePrivate;
class ImageFrame : public QFrame
{
Q_OBJECT
public: explicit ImageFrame(QWidget *_parent);
public: virtual ~ImageFrame();
public: void OnImage(const msgs::Image &_msg);
protected: void paintEvent(QPaintEvent *_event);
private: std::unique_ptr<ImageFramePrivate> dataPtr;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::ImageFrame::ImageFrame
ImageFrame(QWidget *_parent)
Constructor.
msgs.hh
gazebo::gui::ImageFrame::paintEvent
void paintEvent(QPaintEvent *_event)
Event used to paint the image.
gazebo::gui::ImageFrame::~ImageFrame
virtual ~ImageFrame()
Destructor.
gazebo::gui::ImageFrame::OnImage
void OnImage(const msgs::Image &_msg)
Receives incoming image messages.
gazebo::gui::ImageFrame
Frame that draws an image when a paintevent is received.
Definition: ImageFrame.hh:32
gui
gui
Definition: KeyEventHandler.hh:29