##

Conversions Class Reference
Rendering

Conversions Conversions.hh rendering/Conversions.hh. More...

`#include <Conversions.hh>`

## Static Public Member Functions

static Ogre::ColourValue | Convert (const common::Color &_clr) GAZEBO_DEPRECATED(9.0)
| Return the equivalent ogre color. More...
static Ogre::ColourValue | Convert (const ignition::math::Color &_clr)
| Return the equivalent ogre color. More...
static Ogre::Matrix4 | Convert (const ignition::math::Matrix4d &_m)
| Ignition math Matrix4d to Ogre Matrix4. More...
static Ogre::Quaternion | Convert (const ignition::math::Quaterniond &_q)
| ignition::math::Quaterniond to Ogre quaternion More...
static Ogre::Vector3 | Convert (const ignition::math::Vector3d &_v)
| Return Ogre Vector3 from ignition::math::Vector3d. More...
static ignition::math::Color | Convert (const Ogre::ColourValue &_clr)
| Return the equivalent color. More...
static ReferenceFrame | Convert (const Ogre::Node::TransformSpace &_ts)
| Return the equivalent gazebo reference frame. More...
static Ogre::Node::TransformSpace | Convert (const ReferenceFrame &_rf)
| Return the equivalent ogre transform space. More...
static ignition::math::Matrix4d | ConvertIgn (const Ogre::Matrix4 &_m)
| Ogre Matrix4 to ignition math Matrix4d. More...
static ignition::math::Quaterniond | ConvertIgn (const Ogre::Quaternion &_q)
| Ogre quaternion to ignition::math::Quaterniond. More...
static ignition::math::Vector3d | ConvertIgn (const Ogre::Vector3 &_v)
| Return ignition::math::Vector3d from Ogre Vector3. More...

## Detailed Description

Conversions Conversions.hh rendering/Conversions.hh.

A set of utility function to convert between Gazebo and Ogre data types

## Member Function Documentation

## Convert() [1/8]

static Ogre::ColourValue Convert | ( | const common::Color & | _clr | ) |

static

Return the equivalent ogre color.

Parameters

  [in] | _clr | Gazebo color to convert

Returns
  Ogre color value

Deprecated:
  use ignition::math::Color

## Convert() [2/8]

static Ogre::ColourValue Convert | ( | const ignition::math::Color & | _clr | ) |

static

Return the equivalent ogre color.

Parameters

  [in] | _clr | color to convert

Returns
  Ogre color value

## Convert() [3/8]

static Ogre::Matrix4 Convert | ( | const ignition::math::Matrix4d & | _m | ) |

static

Ignition math Matrix4d to Ogre Matrix4.

Parameters

  [in] | _m | ignition math Matrix4d

Returns
  Ogre Matrix4

## Convert() [4/8]

static Ogre::Quaternion Convert | ( | const ignition::math::Quaterniond & | _q | ) |

static

ignition::math::Quaterniond to Ogre quaternion

Parameters

  [in] | _q | Ignition math quaternion

Returns
  Ogre quaternion

## Convert() [5/8]

static Ogre::Vector3 Convert | ( | const ignition::math::Vector3d & | _v | ) |

static

Return Ogre Vector3 from ignition::math::Vector3d.

Parameters

  [in] | _v | Ignition math Vector3d

Returns
  Ogre Vector3

## Convert() [6/8]

static ignition::math::Color Convert | ( | const Ogre::ColourValue & | _clr | ) |

static

Return the equivalent color.

Parameters

  [in] | _clr | Ogre color to convert

Returns
  igntion math color value

## Convert() [7/8]

static ReferenceFrame Convert | ( | const Ogre::Node::TransformSpace & | _ts | ) |

static

Return the equivalent gazebo reference frame.

Parameters

  [in] | _ts | Ogre node transform space to convert

Returns
  Gazebo reference frame

## Convert() [8/8]

static Ogre::Node::TransformSpace Convert | ( | const ReferenceFrame & | _rf | ) |

static

Return the equivalent ogre transform space.

Parameters

  [in] | _rf | gazebo reference frame to convert

Returns
  Ogre node transform space

## ConvertIgn() [1/3]

static ignition::math::Matrix4d ConvertIgn | ( | const Ogre::Matrix4 & | _m | ) |

static

Ogre Matrix4 to ignition math Matrix4d.

Parameters

  [in] | _m | Ogre Matrix4

Returns
  ignition math Matrix4d

## ConvertIgn() [2/3]

static ignition::math::Quaterniond ConvertIgn | ( | const Ogre::Quaternion & | _q | ) |

static

Ogre quaternion to ignition::math::Quaterniond.

Parameters

  [in] | _q | Ogre quaternion

Returns
  Ignition math quaternion

## ConvertIgn() [3/3]

static ignition::math::Vector3d ConvertIgn | ( | const Ogre::Vector3 & | _v | ) |

static

Return ignition::math::Vector3d from Ogre Vector3.

Parameters

  [in] | _v | Ogre Vector3

Returns
  Ignition math Vector3d

The documentation for this class was generated from the following file:

- rendering/Conversions.hh