Gazebo Rendering

API Reference

8.2.1
MeshDescriptor.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 GZ_RENDERING_MESHDESCRIPTOR_HH_
18 #define GZ_RENDERING_MESHDESCRIPTOR_HH_
19 
20 #include <string>
21 
22 #include <gz/utils/SuppressWarning.hh>
23 
24 #include "gz/rendering/config.hh"
25 #include "gz/rendering/Export.hh"
26 
27 namespace gz
28 {
29  namespace common
30  {
31  class Mesh;
32  }
33 }
34 
35 namespace gz
36 {
37  namespace rendering
38  {
39  inline namespace GZ_RENDERING_VERSION_NAMESPACE {
40  //
44  struct GZ_RENDERING_VISIBLE MeshDescriptor
45  {
47  public: MeshDescriptor();
48 
52  public: explicit MeshDescriptor(const std::string &_meshName);
53 
56  public: explicit MeshDescriptor(const common::Mesh *_mesh);
57 
61  public: void Load();
62 
63  GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
65  public: const common::Mesh *mesh = nullptr;
66 
67  GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
70  GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
71 
72  GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
76  GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
77 
79  public: bool centerSubMesh = false;
80  };
81  }
82  }
83 }
84 #endif