##

Conversions Class Reference
GUI

Conversions Conversions.hh gui/Conversions.hh. More...

`#include <Conversions.hh>`

## Static Public Member Functions

static QColor | Convert (const common::Color &_color) GAZEBO_DEPRECATED(9.0)
| Return the equivalent Qt color. More...
static QColor | Convert (const ignition::math::Color &_color)
| Return the equivalent Qt color. More...
static QPointF | Convert (const ignition::math::Vector2d &_pt)
| Return the equivalent QPointF. More...
static QVector3D | Convert (const ignition::math::Vector3d &_vec)
| Return the equivalent qt vector 3d. More...
static ignition::math::Color | Convert (const QColor &_color)
| Return the equivalent Ignition Math color. More...
static ignition::math::Vector2d | Convert (const QPointF &_pt)
| Return the equivalent ignition vector. More...
static ignition::math::Vector3d | Convert (const QVector3D &_vec)
| Return the equivalent ignition vector 3d. More...

## Detailed Description

Conversions Conversions.hh gui/Conversions.hh.

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

## Member Function Documentation

## Convert() [1/7]

static QColor Convert | ( | const common::Color & | _color | ) |

static

Return the equivalent Qt color.

Parameters

  [in] | _color | Gazebo color to convert

Returns
  Qt color value

Deprecated:
  See function that uses ignition::math::Color

## Convert() [2/7]

static QColor Convert | ( | const ignition::math::Color & | _color | ) |

static

Return the equivalent Qt color.

Parameters

  [in] | _color | Gazebo color to convert

Returns
  Qt color value

## Convert() [3/7]

static QPointF Convert | ( | const ignition::math::Vector2d & | _pt | ) |

static

Return the equivalent QPointF.

Parameters

  [in] | _point | Ignition vector to convert.

Returns
  QPointF.

## Convert() [4/7]

static QVector3D Convert | ( | const ignition::math::Vector3d & | _vec | ) |

static

Return the equivalent qt vector 3d.

Parameters

  [in] | _vec | Ignition vector 3d to convert.

Returns
  Qt vector 3d value.

## Convert() [5/7]

static ignition::math::Color Convert | ( | const QColor & | _color | ) |

static

Return the equivalent Ignition Math color.

Parameters

  [in] | _color | Qt color to convert

Returns
  Ignition math color value

## Convert() [6/7]

static ignition::math::Vector2d Convert | ( | const QPointF & | _pt | ) |

static

Return the equivalent ignition vector.

Parameters

  [in] | _color | QPointF to convert

Returns
  Ignition Vector2d.

## Convert() [7/7]

static ignition::math::Vector3d Convert | ( | const QVector3D & | _vec | ) |

static

Return the equivalent ignition vector 3d.

Parameters

  [in] | _vec | Qt vector 3d to convert.

Returns
  Ignition vector 3d value

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

- gui/Conversions.hh