1 | //#include <string>
|
---|
2 | //#include <exception>
|
---|
3 | //#include "vertexdata.h"
|
---|
4 |
|
---|
5 | #ifndef _GEOLODSTREELIBRARY
|
---|
6 | #define _GEOLODSTREELIBRARY
|
---|
7 |
|
---|
8 | #include "GeoMesh.h"
|
---|
9 | #include "GeoLodStripsLibrary.h"
|
---|
10 |
|
---|
11 | class Arbol;
|
---|
12 | class Foliage;
|
---|
13 | class Point3D;
|
---|
14 |
|
---|
15 | namespace Geometry
|
---|
16 | {
|
---|
17 | class IndexData;
|
---|
18 | class VertexData;
|
---|
19 | class LodTreeLibrary
|
---|
20 | {
|
---|
21 | public:
|
---|
22 | /* LodTreeLibrary( const LodTreeLibrary &);
|
---|
23 | LodTreeLibrary(LodTreeLibrary*);*/
|
---|
24 | LodTreeLibrary( std::string trunkSimpSeqFile,
|
---|
25 | std::string leafSimpSeqFile,
|
---|
26 | Geometry::Mesh *treeGeoMesh,
|
---|
27 | uint32 leafSubMeshID
|
---|
28 | /*std::string foliage_verts,
|
---|
29 | std::string foliage_leafs,
|
---|
30 | std::string foliage_simpl/*,
|
---|
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; }
|
---|
37 |
|
---|
38 | // funciones ya descritas en la API
|
---|
39 | uint32 GoToTrunkLod(uint32 newlod);
|
---|
40 | uint32 MinTrunkLod(void) const;
|
---|
41 | uint32 MaxTrunkLod(void) const;
|
---|
42 | uint32 GoToFoliageLod(uint32 newlod);
|
---|
43 | uint32 MinFoliageLod(void) const;
|
---|
44 | uint32 MaxFoliageLod(void) const;
|
---|
45 |
|
---|
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;*/
|
---|
54 |
|
---|
55 | // uint32 Get_Foliage_VertexCount(void) const;
|
---|
56 | uint32 Get_Foliage_MaxIndexCount(void) const;
|
---|
57 | uint32 CurrentLOD_Foliage_IndexCount(void) const;
|
---|
58 | const IndexData* CurrentLOD_Foliage_Indices(void) const;
|
---|
59 | const VertexData* Get_Foliage_VertexData(void) const;
|
---|
60 |
|
---|
61 | // Geometry::IndexData *trunk_all_indices;
|
---|
62 | // unsigned int *indices_offsets;
|
---|
63 |
|
---|
64 | const Geometry::SmallIntVector & GetStrip(uint32 istrip) const { return trunk->mStrips[istrip]; }
|
---|
65 |
|
---|
66 | private:
|
---|
67 | uint32 uniqueID;
|
---|
68 | Geometry::LodStripsLibrary *trunk;
|
---|
69 | Arbol *arbol;
|
---|
70 | Foliage *foliage;
|
---|
71 |
|
---|
72 | };
|
---|
73 | }
|
---|
74 |
|
---|
75 | #endif |
---|