Ignition Rendering

API Reference

0.1.0
OgreConversions.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #ifndef IGNITION_RENDERING_OGRE_OGRECONVERSIONS_HH_
18 #define IGNITION_RENDERING_OGRE_OGRECONVERSIONS_HH_
19 
20 #include <ignition/math/Color.hh>
21 #include <ignition/math/Matrix4.hh>
22 #include <ignition/math/Quaternion.hh>
23 #include <ignition/math/Vector3.hh>
24 
27 #include "ignition/rendering/ogre/Export.hh"
28 
29 namespace ignition
30 {
31  namespace rendering
32  {
35 
39  class IGNITION_RENDERING_OGRE_VISIBLE OgreConversions
40  {
44  public: static Ogre::ColourValue Convert(
45  const math::Color &_color);
46 
50  public: static math::Color Convert(
51  const Ogre::ColourValue &_color);
52 
56  public: static Ogre::Vector3 Convert(const math::Vector3d &_vector);
57 
61  public: static math::Vector3d Convert(const Ogre::Vector3 &_vector);
62 
66  public: static Ogre::Quaternion Convert(const math::Quaterniond &_quat);
67 
71  public: static math::Quaterniond Convert(const Ogre::Quaternion &_quat);
72 
76  public: static Ogre::Radian Convert(const math::Angle &_angle);
77 
81  public: static math::Angle Convert(const Ogre::Radian &_angle);
82 
86  public: static math::Matrix4d Convert(const Ogre::Matrix4 &_m);
87 
91  public: static Ogre::Matrix4 Convert(const math::Matrix4d &_m);
92 
96  public: static Ogre::PixelFormat Convert(PixelFormat _format);
97 
98  private: static const Ogre::PixelFormat ogrePixelFormats[PF_COUNT];
99  };
100 
102  }
103 }
104 #endif
PixelFormat
Definition: PixelFormat.hh:29
< Number of pixel format types
Definition: PixelFormat.hh:48
Conversions Conversions.hh rendering/Conversions.hh.
Definition: OgreConversions.hh:39
Definition: ArrowVisual.hh:22