Line | |
---|
1 | |
---|
2 | #include "LBBCLeafDistribution.h" |
---|
3 | |
---|
4 | namespace LBBC { |
---|
5 | |
---|
6 | LeafDistribution::LeafDistribution() { |
---|
7 | } |
---|
8 | |
---|
9 | LeafDistribution::~LeafDistribution() |
---|
10 | { |
---|
11 | for (unsigned int iLeaf = 0; iLeaf < getNumEntities(); iLeaf++) |
---|
12 | { |
---|
13 | Leaf *leaf = (Leaf*)getEntity(iLeaf); |
---|
14 | delete leaf; |
---|
15 | } |
---|
16 | } |
---|
17 | |
---|
18 | void LeafDistribution::setMinD(float value) |
---|
19 | { |
---|
20 | mMinD = value; |
---|
21 | } |
---|
22 | |
---|
23 | void LeafDistribution::setMaxD(float value) |
---|
24 | { |
---|
25 | mMaxD = value; |
---|
26 | } |
---|
27 | |
---|
28 | float LeafDistribution::getMinD() |
---|
29 | { |
---|
30 | return mMinD; |
---|
31 | } |
---|
32 | |
---|
33 | float LeafDistribution::getMaxD() |
---|
34 | { |
---|
35 | return mMaxD; |
---|
36 | } |
---|
37 | |
---|
38 | void LeafDistribution::setMinNormal(Ogre::Vector3 value) |
---|
39 | { |
---|
40 | mMinNormal = value; |
---|
41 | } |
---|
42 | |
---|
43 | Ogre::Vector3 LeafDistribution::getMinNormal() |
---|
44 | { |
---|
45 | return mMinNormal; |
---|
46 | } |
---|
47 | |
---|
48 | void LeafDistribution::setMaxNormal(Ogre::Vector3 value) |
---|
49 | { |
---|
50 | mMaxNormal = value; |
---|
51 | } |
---|
52 | |
---|
53 | Ogre::Vector3 LeafDistribution::getMaxNormal() |
---|
54 | { |
---|
55 | return mMaxNormal; |
---|
56 | } |
---|
57 | |
---|
58 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.