Mercator
Main Page
Classes
Files
File List
Mercator
Plant.h
1
// This file may be redistributed and modified only under the terms of
2
// the GNU General Public License (See COPYING for details).
3
// Copyright (C) 2004 Alistair Riddoch
4
5
#ifndef MERCATOR_PLANT_H
6
#define MERCATOR_PLANT_H
7
8
#include <wfmath/point.h>
9
#include <wfmath/quaternion.h>
10
11
namespace
Mercator {
12
17
class
Plant
{
18
private
:
20
WFMath::Point<2>
m_displacement
;
22
WFMath::Quaternion
m_orientation
;
24
float
m_height
;
25
public
:
27
Plant
();
29
~Plant
();
30
32
const
WFMath::Point<2> &
getDisplacement
()
const
{
33
return
m_displacement
;
34
}
35
37
void
setDisplacement
(
const
WFMath::Point<2> & d) {
38
m_displacement
= d;
39
}
40
42
const
WFMath::Quaternion &
getOrientation
()
const
{
43
return
m_orientation
;
44
}
45
47
void
setOrientation
(
const
WFMath::Quaternion & o) {
48
m_orientation
= o;
49
}
50
52
const
float
getHeight
()
const
{
53
return
m_height
;
54
}
55
57
void
setHeight
(
float
h) {
58
m_height
= h;
59
}
60
62
void
setParameter
(
const
std::string &,
float
) { }
63
};
64
65
}
66
67
#endif // MERCATOR_PLANT_H
Generated by
1.8.1.1