]> git.mxchange.org Git - simgear.git/blob - simgear/bvh/BVHMaterial.hxx
Fix removal of directories.
[simgear.git] / simgear / bvh / BVHMaterial.hxx
1 // Copyright (C) 2008 - 2012  Mathias Froehlich - Mathias.Froehlich@web.de
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Library General Public
5 // License as published by the Free Software Foundation; either
6 // version 2 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Library General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
16 //
17
18 #ifndef BVHMaterial_hxx
19 #define BVHMaterial_hxx
20
21 #include <simgear/structure/SGReferenced.hxx>
22
23 namespace simgear {
24
25 class BVHMaterial : public SGReferenced {
26 public:
27     BVHMaterial();
28     virtual ~BVHMaterial();
29
30     /**
31      * Return if the surface material is solid, if it is not solid, a fluid
32      * can be assumed, that is usually water.
33      */
34     bool get_solid () const { return _solid; }
35     
36     /**
37      * Get the friction factor for that material
38      */
39     double get_friction_factor () const { return _friction_factor; }
40     
41     /**
42      * Get the rolling friction for that material
43      */
44     double get_rolling_friction () const { return _rolling_friction; }
45     
46     /**
47      * Get the bumpines for that material
48      */
49     double get_bumpiness () const { return _bumpiness; }
50     
51     /**
52      * Get the load resistance
53      */
54     double get_load_resistance () const { return _load_resistance; }
55
56 protected:    
57     // True if the material is solid, false if it is a fluid
58     bool _solid;
59     
60     // the friction factor of that surface material
61     double _friction_factor;
62     
63     // the rolling friction of that surface material
64     double _rolling_friction;
65     
66     // the bumpiness of that surface material
67     double _bumpiness;
68     
69     // the load resistance of that surface material
70     double _load_resistance;
71 };
72
73 }
74
75 #endif