##

gui/Conversions.hh
Go to the documentation of this file.
/*
* Copyright (C) 2015 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_CONVERSIONS_HH_
#define GAZEBO_GUI_CONVERSIONS_HH_
#include <ignition/math/Color.hh>
#include <ignition/math/Vector2.hh>
#include <ignition/math/Vector3.hh>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace common
{
class Color;
}
namespace gui
{
class GZ_GUI_VISIBLE Conversions
{
public: static QColor Convert(const common::Color &_color)
GAZEBO_DEPRECATED(9.0);
public: static QColor Convert(const ignition::math::Color &_color);
public: static ignition::math::Color Convert(const QColor &_color);
public: static QPointF Convert(const ignition::math::Vector2d &_pt);
public: static ignition::math::Vector2d Convert(const QPointF &_pt);
public: static QVector3D Convert(const ignition::math::Vector3d &_vec);
public: static ignition::math::Vector3d Convert(const QVector3D &_vec);
};
}
}
#endif
gazebo::gui::Conversions::Convert
static QColor Convert(const common::Color &_color) GAZEBO_DEPRECATED(9.0)
Return the equivalent Qt color.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::Conversions
Conversions Conversions.hh gui/Conversions.hh.
Definition: gui/Conversions.hh:43
common
common
Definition: FuelModelDatabase.hh:37
gazebo::msgs::Convert
GAZEBO_VISIBLE msgs::Vector3d Convert(const ignition::math::Vector3d &_v)
Convert a ignition::math::Vector3 to a msgs::Vector3d.
system.hh
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::common::Color
Defines a color.
Definition: Color.hh:36
GAZEBO_DEPRECATED
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:328