source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/LBBCLeafDistribution.cpp @ 699

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