Ignition Rendering

API Reference

5.0.0
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 IGNITION_RENDERING_MESHDESCRIPTOR_HH_
18 #define IGNITION_RENDERING_MESHDESCRIPTOR_HH_
19 
20 #include <string>
21 
23 
24 #include "ignition/rendering/config.hh"
25 #include "ignition/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
Describes how a Mesh should be loaded.
Definition: MeshDescriptor.hh:44
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
STL class.
std::string meshName
Name of the registered Mesh.
Definition: MeshDescriptor.hh:69
std::string subMeshName
Name of the sub-mesh to be loaded. An empty string signifies all sub-meshes should be loaded...
Definition: MeshDescriptor.hh:75
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING