Privacy
An open-source, flexible 3D physical simulation framework
terrainStruct.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center
3  *
4  * This file is part of the MARS simulation framework.
5  *
6  * MARS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3
9  * of the License, or (at your option) any later version.
10  *
11  * MARS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MARS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef MARS_CORE_TERRAIN_STRUCT_H
22 #define MARS_CORE_TERRAIN_STRUCT_H
23 
24 #include "MaterialData.h"
25 #include <string>
26 
27 namespace mars {
28 
29  namespace interfaces {
30 
34  struct terrainStruct {
36  : width(0), height(0),
37  targetWidth(0), targetHeight(0),
38  scale(1.0),
39  texScaleX(0.1),
40  texScaleY(0.1),
41  pixelData(NULL),
42  mesh(0) {}
43 
44  std::string name; //the joints name
45  std::string srcname;
47  int width;
48  int height;
49  double targetWidth;
50  double targetHeight;
51  double scale;
52  double texScaleX, texScaleY; // texture scaling - a value of 0 will fit the complete terrain
53  double *pixelData;
54  int mesh;
55 
56  }; // end of struct terrainStruct
57 
58  } // end of namespace interfaces
59 
60 } // end of namespace mars
61 
62 #endif
terrainStruct is a struct to exchange height maps between the GUI and the simulation ...
Definition: terrainStruct.h:34
MaterialData is a struct to exchange material information of nodes.
Definition: MaterialData.h:35
Copyright 2012, DFKI GmbH Robotics Innovation Center.