Ignition Rendering

API Reference

0.1.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 #include "ignition/rendering/Export.hh"
22 
23 namespace ignition
24 {
25  namespace common
26  {
27  class Mesh;
28  }
29 }
30 
31 namespace ignition
32 {
33  namespace rendering
34  {
38  struct IGNITION_RENDERING_VISIBLE MeshDescriptor
39  {
41  public: MeshDescriptor();
42 
46  public: explicit MeshDescriptor(const std::string &_meshName);
47 
50  public: explicit MeshDescriptor(const common::Mesh *_mesh);
51 
55  public: void Load();
56 
58  public: const common::Mesh *mesh = nullptr;
59 
62 
66 
68  public: bool centerSubMesh = false;
69  };
70  }
71 }
72 #endif
Describes how a Mesh should be loaded.
Definition: MeshDescriptor.hh:38
STL class.
std::string meshName
Name of the registered Mesh.
Definition: MeshDescriptor.hh:61
std::string subMeshName
Name of the sub-mesh to be loaded. An empty string signifies all sub-meshes should be loaded...
Definition: MeshDescriptor.hh:65
Definition: ArrowVisual.hh:22