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
{
35
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
;
46
MaterialData
material
;
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
mars::interfaces::terrainStruct::targetWidth
double targetWidth
Definition:
terrainStruct.h:49
mars::interfaces::terrainStruct::mesh
int mesh
Definition:
terrainStruct.h:54
mars::interfaces::terrainStruct
terrainStruct is a struct to exchange height maps between the GUI and the simulation ...
Definition:
terrainStruct.h:34
mars::interfaces::terrainStruct::terrainStruct
terrainStruct()
Definition:
terrainStruct.h:35
mars::interfaces::MaterialData
MaterialData is a struct to exchange material information of nodes.
Definition:
MaterialData.h:35
mars::interfaces::terrainStruct::material
MaterialData material
Definition:
terrainStruct.h:46
mars::interfaces::terrainStruct::targetHeight
double targetHeight
Definition:
terrainStruct.h:50
mars::interfaces::terrainStruct::texScaleY
double texScaleY
Definition:
terrainStruct.h:52
mars
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Definition:
GraphicsTimer.cpp:25
mars::interfaces::terrainStruct::pixelData
double * pixelData
Definition:
terrainStruct.h:53
mars::interfaces::terrainStruct::width
int width
Definition:
terrainStruct.h:47
mars::interfaces::terrainStruct::height
int height
Definition:
terrainStruct.h:48
mars::interfaces::terrainStruct::scale
double scale
Definition:
terrainStruct.h:51
mars::interfaces::terrainStruct::texScaleX
double texScaleX
Definition:
terrainStruct.h:52
mars::interfaces::terrainStruct::srcname
std::string srcname
Definition:
terrainStruct.h:45
MaterialData.h
mars::interfaces::terrainStruct::name
std::string name
Definition:
terrainStruct.h:44
interfaces
src
terrainStruct.h
Generated on Fri May 25 2018 11:46:21 by
1.8.13