GeomUtils.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-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 _GEOMUTILS_HH_
18 #define _GEOMUTILS_HH_
19 
20 #include <OgreString.h>
21 #include <OgreVertexIndexData.h>
22 #include "gazebo/util/system.hh"
23 
24 namespace gazebo
25 {
26  namespace rendering
27  {
29  {
32  public: static void CreateSphere(const Ogre::String &_strName,
33  float _radius, int _nRings, int _nSegments, bool _bNormals,
34  bool _bTexCoords);
35 
38  public: static void CreateSphere(Ogre::VertexData *&_vertexData,
39  Ogre::IndexData *&_indexData, float _radius, int _nRings,
40  int _nSegments, bool _bNormals, bool _bTexCoords);
41 
45  public: static void CreateCone(const Ogre::String &_strName,
46  float _radius, float _height, int _nVerticesInBase);
47 
50  public: static void CreateCone(Ogre::VertexData *&_vertexData,
51  Ogre::IndexData *&_indexData,
52  float _radius, float _height,
53  int _nVerticesInBase);
54 
56  public: static void CreateQuad(Ogre::VertexData *&_vertexData);
57  };
58  }
59 }
60 #endif
Definition: GeomUtils.hh:28
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48