[700] | 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> |
---|
[959] | 11 | #include <LBBCDiffuseColorPointClusterGenerator.h> |
---|
[700] | 12 | #include <LBBCKdTreeClusterSerializer.h> |
---|
| 13 | #include <LBBCKMeansClusterSerializer.h> |
---|
| 14 | #include <LBBCSampleConfigFile.h> |
---|
[958] | 15 | #include <BBCColladaMeshSerializer.h> |
---|
[700] | 16 | |
---|
| 17 | namespace LBBC { |
---|
| 18 | |
---|
[731] | 19 | class _BBCExport LBBCManager : public BBC::BBCManager { |
---|
[700] | 20 | public: |
---|
[731] | 21 | LBBCManager(); |
---|
[700] | 22 | |
---|
[731] | 23 | ~LBBCManager(); |
---|
[700] | 24 | |
---|
[721] | 25 | void loadSampleConfigFile(Ogre::String sampleConfigFile); |
---|
| 26 | |
---|
[700] | 27 | SampleConfigFile* getSampleConfigFile(); |
---|
[721] | 28 | |
---|
[745] | 29 | void initialize(); |
---|
| 30 | |
---|
[721] | 31 | void setSampleConfigFile(SampleConfigFile *sampleConfigFile); |
---|
[700] | 32 |
|
---|
| 33 | void generateEntityDistribution();
|
---|
| 34 | |
---|
| 35 | void loadEntityDistribution(); |
---|
| 36 | |
---|
| 37 | void saveEntityDistributionSplitted(); |
---|
| 38 | |
---|
| 39 | void createEntityDistribution(); |
---|
| 40 | |
---|
| 41 | void saveEntityDistributionXML(); |
---|
| 42 |
|
---|
| 43 | void generateEntityClusters(); |
---|
| 44 | |
---|
| 45 | void createEntityClusters(); |
---|
| 46 |
|
---|
| 47 | void saveEntityClusters(); |
---|
| 48 | |
---|
| 49 | void saveSingleEntity(); |
---|
| 50 | |
---|
| 51 | void generateBillboardCloud();
|
---|
| 52 |
|
---|
[900] | 53 | void saveBillboardCloudGroupedIndirectTexturing();
|
---|
[709] | 54 |
|
---|
[900] | 55 | void saveBillboardCloudGroupedDiffuseColor();
|
---|
| 56 |
|
---|
[700] | 57 | void saveBillboardCloudSplitted(); |
---|
| 58 | |
---|
[900] | 59 | void saveBillboardCloudGroupedDiffuseColorXML(); |
---|
[700] | 60 | |
---|
[900] | 61 | void saveBillboardCloudGroupedIndirectTexturingXML(); |
---|
[700] | 62 | |
---|
[900] | 63 | void saveBillboardCloudSplittedXML(); |
---|
[745] | 64 | |
---|
[700] | 65 | Leaves* getLeaves(); |
---|
| 66 | |
---|
[900] | 67 | void loadBillboardCloudSplittedXML(); |
---|
[745] | 68 | |
---|
[900] | 69 | void loadBillboardCloudGroupedDiffuseColorXML(); |
---|
[745] | 70 | |
---|
[900] | 71 | void loadBillboardCloudGroupedIndirectTexturingXML(); |
---|
[745] | 72 | |
---|
[959] | 73 | void saveBillboardCloudDiffuseColorPointCluster(); |
---|
[745] | 74 | |
---|
[959] | 75 | void generateBillboardCloudDiffuseColorPointCluster(); |
---|
| 76 | |
---|
[700] | 77 | protected: |
---|
| 78 | |
---|
[959] | 79 | LBBC::Leaves* mLeaves; |
---|
[700] | 80 | |
---|
[959] | 81 | LBBC::LeafDistributionSerializer* mLeafDistributionSerializer; |
---|
[700] | 82 | |
---|
[959] | 83 | LBBC::LeafDistributionGenerator* mLeafDistributionGenerator; |
---|
[700] | 84 | |
---|
[959] | 85 | BBC::BillboardCloudGenerator* mBillboardCloudGenerator; |
---|
[700] | 86 | |
---|
[959] | 87 | BBC::BillboardCloudSerializer* mBillboardCloudSerializer; |
---|
[700] | 88 | |
---|
[959] | 89 | BBC::BillboardCloudUVMapper* mBillboardCloudUVMapper; |
---|
[700] | 90 | |
---|
[959] | 91 | BBC::ColladaMeshSerializer* mColladaMeshSerializer; |
---|
[950] | 92 | |
---|
[959] | 93 | BBC::OgreMeshSerializer* mOgreMeshSerializer; |
---|
[700] | 94 | |
---|
[959] | 95 | SampleConfigFile* mSampleConfigFile; |
---|
[700] | 96 | |
---|
[959] | 97 | Ogre::ConfigFile* mConfigFile; |
---|
[721] | 98 | |
---|
[959] | 99 | DiffuseColorPointClusterGenerator* mDiffuseColorPointClusterGenerator; |
---|
| 100 | |
---|
[700] | 101 | }; |
---|
| 102 | |
---|
| 103 | } |
---|
| 104 | #endif |
---|