1 | #ifndef _LBBCMANAGER_H |
---|
2 | #define _LBBCMANAGER_H |
---|
3 | |
---|
4 | #include <LBBCPrerequisites.h> |
---|
5 | #include <LBBCLeaves.h> |
---|
6 | #include <LBBCLeafDistribution.h> |
---|
7 | #include <LBBCLeafDistributionGenerator.h> |
---|
8 | #include <LBBCLeafDistributionSerializer.h> |
---|
9 | #include <LBBCKdTreeClusterGenerator.h> |
---|
10 | #include <LBBCKMeansClusterGenerator.h> |
---|
11 | #include <LBBCKdTreeClusterSerializer.h> |
---|
12 | #include <LBBCKMeansClusterSerializer.h> |
---|
13 | #include <LBBCSampleConfigFile.h> |
---|
14 | |
---|
15 | namespace LBBC { |
---|
16 | |
---|
17 | class _BBCExport LBBCManager : public BBC::BBCManager { |
---|
18 | public: |
---|
19 | LBBCManager(); |
---|
20 | |
---|
21 | ~LBBCManager(); |
---|
22 | |
---|
23 | void loadSampleConfigFile(Ogre::String sampleConfigFile); |
---|
24 | |
---|
25 | SampleConfigFile* getSampleConfigFile(); |
---|
26 | |
---|
27 | void initialize(); |
---|
28 | |
---|
29 | void setSampleConfigFile(SampleConfigFile *sampleConfigFile); |
---|
30 |
|
---|
31 | void generateEntityDistribution();
|
---|
32 | |
---|
33 | void loadEntityDistribution(); |
---|
34 | |
---|
35 | void saveEntityDistributionSplitted(); |
---|
36 | |
---|
37 | void createEntityDistribution(); |
---|
38 | |
---|
39 | void saveEntityDistributionXML(); |
---|
40 |
|
---|
41 | void generateEntityClusters(); |
---|
42 | |
---|
43 | void createEntityClusters(); |
---|
44 |
|
---|
45 | void saveEntityClusters(); |
---|
46 | |
---|
47 | void saveSingleEntity(); |
---|
48 | |
---|
49 | void generateBillboardCloud();
|
---|
50 |
|
---|
51 | void saveBillboardCloudGroupedIndirectTexturing();
|
---|
52 |
|
---|
53 | void saveBillboardCloudGroupedDiffuseColor();
|
---|
54 |
|
---|
55 | void saveBillboardCloudSplitted(); |
---|
56 | |
---|
57 | void saveBillboardCloudGroupedDiffuseColorXML(); |
---|
58 | |
---|
59 | void saveBillboardCloudGroupedIndirectTexturingXML(); |
---|
60 | |
---|
61 | void saveBillboardCloudSplittedXML(); |
---|
62 | |
---|
63 | Leaves* getLeaves(); |
---|
64 | |
---|
65 | void loadBillboardCloudSplittedXML(); |
---|
66 | |
---|
67 | void loadBillboardCloudGroupedDiffuseColorXML(); |
---|
68 | |
---|
69 | void loadBillboardCloudGroupedIndirectTexturingXML(); |
---|
70 | |
---|
71 | void saveBillboardCloudIndirectSplittedPointMeshName(); |
---|
72 | |
---|
73 | protected: |
---|
74 | |
---|
75 | LBBC::Leaves *mLeaves; |
---|
76 | |
---|
77 | LBBC::LeafDistributionSerializer *mLeafDistributionSerializer; |
---|
78 | |
---|
79 | LBBC::LeafDistributionGenerator *mLeafDistributionGenerator; |
---|
80 | |
---|
81 | BBC::BillboardCloudGenerator *mBillboardCloudGenerator; |
---|
82 | |
---|
83 | BBC::BillboardCloudSerializer *mBillboardCloudSerializer; |
---|
84 | |
---|
85 | BBC::BillboardCloudUVMapper *mBillboardCloudUVMapper; |
---|
86 | |
---|
87 | BBC::OgreMeshSerializer *mOgreMeshSerializer; |
---|
88 | |
---|
89 | SampleConfigFile *mSampleConfigFile; |
---|
90 | |
---|
91 | Ogre::ConfigFile *mConfigFile; |
---|
92 | |
---|
93 | }; |
---|
94 | |
---|
95 | } |
---|
96 | #endif |
---|