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
#include <string>
12
13
namespace
Mercator {
14
19
class
Plant
{
20
private
:
22
WFMath::Point<2>
m_displacement
;
24
WFMath::Quaternion
m_orientation
;
26
float
m_height
;
27
public
:
29
Plant
();
31
~Plant
();
32
34
const
WFMath::Point<2> &
getDisplacement
()
const
{
35
return
m_displacement
;
36
}
37
39
void
setDisplacement
(
const
WFMath::Point<2> & d) {
40
m_displacement
= d;
41
}
42
44
const
WFMath::Quaternion &
getOrientation
()
const
{
45
return
m_orientation
;
46
}
47
49
void
setOrientation
(
const
WFMath::Quaternion & o) {
50
m_orientation
= o;
51
}
52
54
const
float
getHeight
()
const
{
55
return
m_height
;
56
}
57
59
void
setHeight
(
float
h) {
60
m_height
= h;
61
}
62
64
void
setParameter
(
const
std::string &,
float
) { }
65
};
66
67
}
68
69
#endif // MERCATOR_PLANT_H
Generated for Mercator by
1.8.3.1