Gazebo Rendering

API Reference

6.6.3
gz/rendering/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/common/SuppressWarning.hh>
23 
24 #include "gz/rendering/config.hh"
25 #include "gz/rendering/Export.hh"
26 
27 namespace ignition
28 {
29  namespace common
30  {
31  class Mesh;
32  }
33 }
34 
35 namespace ignition
36 {
37  namespace rendering
38  {
39  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
40  //
44  struct IGNITION_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 
65  public: const common::Mesh *mesh = nullptr;
66 
71 
77 
79  public: bool centerSubMesh = false;
80  };
81  }
82  }
83 }
84 #endif
STL class.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Describes how a Mesh should be loaded.
Definition: gz/rendering/MeshDescriptor.hh:44
bool centerSubMesh
Denotes if the loaded sub-mesh vertices should be centered.
Definition: gz/rendering/MeshDescriptor.hh:79
std::string subMeshName
Name of the sub-mesh to be loaded. An empty string signifies all sub-meshes should be loaded.
Definition: gz/rendering/MeshDescriptor.hh:75
std::string meshName
Name of the registered Mesh.
Definition: gz/rendering/MeshDescriptor.hh:69
void Load()
Ensures both the meshName and mesh member variables have been assigned. If mesh is not null,...
const common::Mesh * mesh
common::Mesh object
Definition: gz/rendering/MeshDescriptor.hh:65
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING