##

rendering/Conversions.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_RENDERING_CONVERSIONS_HH_
#define GAZEBO_RENDERING_CONVERSIONS_HH_
#include <ignition/math/Color.hh>
#include <ignition/math/Matrix4.hh>
#include <ignition/math/Quaternion.hh>
#include <ignition/math/Vector3.hh>
#include "gazebo/rendering/ogre_gazebo.h"
#include "gazebo/common/Color.hh"
#include "gazebo/rendering/RenderTypes.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace rendering
{
class GZ_RENDERING_VISIBLE Conversions
{
public: static Ogre::ColourValue Convert(const common::Color &_clr)
GAZEBO_DEPRECATED(9.0);
public: static Ogre::ColourValue Convert(
const ignition::math::Color &_clr);
public: static ignition::math::Color Convert(
const Ogre::ColourValue &_clr);
public: static ignition::math::Vector3d ConvertIgn(
const Ogre::Vector3 &_v);
public: static Ogre::Vector3 Convert(const ignition::math::Vector3d &_v);
public: static ignition::math::Quaterniond ConvertIgn(
const Ogre::Quaternion &_q);
public: static Ogre::Quaternion Convert(
const ignition::math::Quaterniond &_q);
public: static ignition::math::Matrix4d ConvertIgn(
const Ogre::Matrix4 &_m);
public: static Ogre::Matrix4 Convert(const ignition::math::Matrix4d &_m);
public: static Ogre::Node::TransformSpace Convert(
const ReferenceFrame &_rf);
public: static ReferenceFrame Convert(
const Ogre::Node::TransformSpace &_ts);
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::rendering::ReferenceFrame
ReferenceFrame
Frame of reference.
Definition: RenderTypes.hh:244
gazebo::msgs::Convert
GAZEBO_VISIBLE msgs::Vector3d Convert(const ignition::math::Vector3d &_v)
Convert a ignition::math::Vector3 to a msgs::Vector3d.
gazebo::msgs::ConvertIgn
GAZEBO_VISIBLE ignition::math::Vector3d ConvertIgn(const msgs::Vector3d &_v)
Convert a msgs::Vector3d to an ignition::math::Vector.
system.hh
gazebo::rendering::Conversions
Conversions Conversions.hh rendering/Conversions.hh.
Definition: rendering/Conversions.hh:41
RenderTypes.hh
Color.hh
rendering
rendering
Definition: RenderEngine.hh:31
ogre_gazebo.h
gazebo::common::Color
Defines a color.
Definition: Color.hh:36
gazebo::rendering::Conversions::Convert
static Ogre::ColourValue Convert(const common::Color &_clr) GAZEBO_DEPRECATED(9.0)
Return the equivalent ogre color.
gazebo::rendering::Conversions::ConvertIgn
static ignition::math::Vector3d ConvertIgn(const Ogre::Vector3 &_v)
Return ignition::math::Vector3d from Ogre Vector3.
GAZEBO_DEPRECATED
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:328