[829] | 1 | //#include <string>
|
---|
| 2 | //#include <exception>
|
---|
| 3 | //#include "vertexdata.h"
|
---|
[774] | 4 |
|
---|
[829] | 5 | #ifndef _GEOLODSTREELIBRARY
|
---|
| 6 | #define _GEOLODSTREELIBRARY
|
---|
[774] | 7 |
|
---|
[829] | 8 | #include "GeoMesh.h"
|
---|
| 9 | #include "GeoLodStripsLibrary.h"
|
---|
[774] | 10 |
|
---|
[829] | 11 | class Arbol;
|
---|
| 12 | class Foliage;
|
---|
| 13 | class Point3D;
|
---|
[831] | 14 |
|
---|
[829] | 15 | namespace Geometry
|
---|
| 16 | {
|
---|
[831] | 17 | class IndexData;
|
---|
[895] | 18 | class VertexData;
|
---|
[774] | 19 | class LodTreeLibrary
|
---|
| 20 | {
|
---|
| 21 | public:
|
---|
[829] | 22 | /* LodTreeLibrary( const LodTreeLibrary &);
|
---|
| 23 | LodTreeLibrary(LodTreeLibrary*);*/
|
---|
| 24 | LodTreeLibrary( std::string trunkSimpSeqFile,
|
---|
[895] | 25 | std::string leafSimpSeqFile,
|
---|
[831] | 26 | Geometry::Mesh *treeGeoMesh,
|
---|
[895] | 27 | uint32 leafSubMeshID
|
---|
| 28 | /*std::string foliage_verts,
|
---|
[829] | 29 | std::string foliage_leafs,
|
---|
[831] | 30 | std::string foliage_simpl/*,
|
---|
[829] | 31 | uint32 leafSubMeshID,
|
---|
| 32 | CREATEVERTEXDATAFUNC vdfun=NULL,
|
---|
| 33 | CREATEINDEXDATAFUNC idfun=NULL,
|
---|
| 34 | CREATEMULTIINDEXDATAFUNC midfun=NULL*/); // throws a FileNotFound exception
|
---|
| 35 | ~LodTreeLibrary(void);
|
---|
| 36 | uint32 GetUniqueID(void) const { return uniqueID; }
|
---|
[774] | 37 |
|
---|
[829] | 38 | // funciones ya descritas en la API
|
---|
| 39 | uint32 GoToTrunkLod(uint32 newlod);
|
---|
| 40 | uint32 MinTrunkLod(void) const;
|
---|
| 41 | uint32 MaxTrunkLod(void) const;
|
---|
[831] | 42 | uint32 GoToFoliageLod(uint32 newlod);
|
---|
[829] | 43 | uint32 MinFoliageLod(void) const;
|
---|
[831] | 44 | uint32 MaxFoliageLod(void) const;
|
---|
[774] | 45 |
|
---|
[829] | 46 | // funciones nuevas propuestas
|
---|
| 47 | // uint32 Get_Trunk_VertexCount(void) const;
|
---|
| 48 | // uint32 Get_Trunk_MaxIndexCount(uint32 istrip) const;
|
---|
| 49 | uint32 CurrentLOD_Trunk_StripCount(void) const;
|
---|
| 50 | // uint32 CurrentLOD_Trunk_IndexCount(void) const;
|
---|
| 51 | uint32 CurrentLOD_Trunk_IndexCountByStrip(uint32 istrip) const;
|
---|
| 52 | /* const VertexData* Get_Trunk_VertexData(void) const;
|
---|
| 53 | // const MultiIndexData* CurrentLOD_Trunk_Indices(void) const;*/
|
---|
[774] | 54 |
|
---|
[829] | 55 | // uint32 Get_Foliage_VertexCount(void) const;
|
---|
[831] | 56 | uint32 Get_Foliage_MaxIndexCount(void) const;
|
---|
| 57 | uint32 CurrentLOD_Foliage_IndexCount(void) const;
|
---|
| 58 | const IndexData* CurrentLOD_Foliage_Indices(void) const;
|
---|
[895] | 59 | const VertexData* Get_Foliage_VertexData(void) const;
|
---|
| 60 |
|
---|
[829] | 61 | // Geometry::IndexData *trunk_all_indices;
|
---|
| 62 | // unsigned int *indices_offsets;
|
---|
[774] | 63 |
|
---|
[829] | 64 | const Geometry::SmallIntVector & GetStrip(uint32 istrip) const { return trunk->mStrips[istrip]; }
|
---|
[774] | 65 |
|
---|
[829] | 66 | private:
|
---|
| 67 | uint32 uniqueID;
|
---|
| 68 | Geometry::LodStripsLibrary *trunk;
|
---|
[831] | 69 | Arbol *arbol;
|
---|
| 70 | Foliage *foliage;
|
---|
[774] | 71 |
|
---|
| 72 | };
|
---|
| 73 | }
|
---|
[829] | 74 |
|
---|
| 75 | #endif |
---|