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 | #include "GeoLodObject.h"
|
---|
11 |
|
---|
12 | class Arbol;
|
---|
13 | class Foliage;
|
---|
14 | class Point3D;
|
---|
15 |
|
---|
16 | namespace Geometry
|
---|
17 | {
|
---|
18 | class IndexData;
|
---|
19 | class VertexData;
|
---|
20 | class LodTreeLibrary : public Geometry::LodObject
|
---|
21 | {
|
---|
22 | public:
|
---|
23 | /* LodTreeLibrary( const LodTreeLibrary &);
|
---|
24 | LodTreeLibrary(LodTreeLibrary*);*/
|
---|
25 | LodTreeLibrary( std::string trunkSimpSeqFile,
|
---|
26 | std::string leafSimpSeqFile,
|
---|
27 | Geometry::Mesh *treeGeoMesh,
|
---|
28 | uint32 leafSubMeshID
|
---|
29 | /*std::string foliage_verts,
|
---|
30 | std::string foliage_leafs,
|
---|
31 | std::string foliage_simpl/*,
|
---|
32 | uint32 leafSubMeshID,
|
---|
33 | CREATEVERTEXDATAFUNC vdfun=NULL,
|
---|
34 | CREATEINDEXDATAFUNC idfun=NULL,
|
---|
35 | CREATEMULTIINDEXDATAFUNC midfun=NULL*/); // throws a FileNotFound exception
|
---|
36 | ~LodTreeLibrary(void);
|
---|
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 | // changes the lod of the entire object (trunk and leaves)
|
---|
47 | virtual uint32 GoToLod(uint32);
|
---|
48 |
|
---|
49 | // new proposed functions
|
---|
50 | // uint32 Get_Trunk_VertexCount(void) const;
|
---|
51 | // uint32 Get_Trunk_MaxIndexCount(uint32 istrip) const;
|
---|
52 | uint32 CurrentLOD_Trunk_StripCount(void) const;
|
---|
53 | // uint32 CurrentLOD_Trunk_IndexCount(void) const;
|
---|
54 | uint32 CurrentLOD_Trunk_IndexCountByStrip(uint32 istrip) const;
|
---|
55 | /* const VertexData* Get_Trunk_VertexData(void) const;*/
|
---|
56 | const MultiIndexData* CurrentLOD_Trunk_Indices(void) const;
|
---|
57 |
|
---|
58 | // uint32 Get_Foliage_VertexCount(void) const;
|
---|
59 | uint32 Get_Foliage_MaxIndexCount(void) const;
|
---|
60 | uint32 CurrentLOD_Foliage_IndexCount(void) const;
|
---|
61 | const IndexData* CurrentLOD_Foliage_Indices(void) const;
|
---|
62 | const VertexData* Get_Foliage_VertexData(void) const;
|
---|
63 |
|
---|
64 | // Geometry::IndexData *trunk_all_indices;
|
---|
65 | // unsigned int *indices_offsets;
|
---|
66 |
|
---|
67 | // const Geometry::SmallIntVector & GetStrip(uint32 istrip) const { return trunk->mStrips[istrip]; }
|
---|
68 |
|
---|
69 | private:
|
---|
70 | Geometry::LodStripsLibrary *trunk;
|
---|
71 | Arbol *arbol;
|
---|
72 | Foliage *foliage;
|
---|
73 |
|
---|
74 | };
|
---|
75 | }
|
---|
76 |
|
---|
77 | #endif |
---|