Changeset 1056


Ignore:
Timestamp:
06/26/06 11:42:59 (18 years ago)
Author:
gumbau
Message:

GeoLodObject? added as a parent class for GeoLodStripsLibrary? and GeoLodTreeLibrary?

Location:
GTP/trunk/Lib/Geom/shared/GTGeometry
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/GTGeometry.vcproj

    r1026 r1056  
    360360                        </File> 
    361361                        <File 
     362                                RelativePath=".\include\GeoLodObject.h"> 
     363                        </File> 
     364                        <File 
    362365                                RelativePath=".\include\GeoLodStripsConstructor.h"> 
    363366                        </File> 
  • GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodStripsLibrary.h

    r1018 r1056  
    1717#include        <time.h> 
    1818#include        "VertexData.h" 
     19#include "GeoLodObject.h" 
    1920 
    2021namespace Geometry 
     
    7071 
    7172        */ 
    72         class LodStripsLibrary 
     73        class LodStripsLibrary : public Geometry::LodObject 
    7374        { 
    7475                private: 
     
    157158 
    158159                        /// Returns de current LOD and changes to the specified LOD. 
    159                         uint32  GoToLod(uint32); 
     160                        virtual uint32  GoToLod(uint32); 
    160161 
    161162                        /// Establishes the new LOD range. 
  • GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodTreeLibrary.h

    r1019 r1056  
    88#include "GeoMesh.h" 
    99#include "GeoLodStripsLibrary.h" 
     10#include "GeoLodObject.h" 
    1011 
    1112class Arbol; 
     
    1718        class IndexData; 
    1819        class VertexData; 
    19         class LodTreeLibrary 
     20        class LodTreeLibrary : public Geometry::LodObject 
    2021        { 
    2122        public: 
     
    3435                                                CREATEMULTIINDEXDATAFUNC midfun=NULL*/); // throws a FileNotFound exception 
    3536                ~LodTreeLibrary(void); 
    36                 uint32 GetUniqueID(void) const { return  uniqueID; } 
    3737 
    3838                // funciones ya descritas en la API 
     
    4343                uint32 MinFoliageLod(void) const; 
    4444                uint32 MaxFoliageLod(void) const; 
     45 
     46                // changes the lod of the entire object (trunk and leaves) 
     47                virtual uint32 GoToLod(uint32); 
    4548 
    4649                // new proposed functions 
     
    6568 
    6669        private: 
    67                 uint32 uniqueID; 
    6870                Geometry::LodStripsLibrary *trunk; 
    6971                Arbol *arbol; 
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodTreeLibrary.cpp

    r1019 r1056  
    55 
    66using namespace Geometry; 
    7  
    8 uint32 uniqueIDgen = 0; 
    97 
    108Geometry::LodTreeLibrary::LodTreeLibrary(std::string trunkSimpSeqFile, 
     
    2018                                                           CREATEMULTIINDEXDATAFUNC midfun*/) 
    2119{ 
    22         uniqueID = uniqueIDgen++; 
    23  
    2420        // Cargar el tronco 
    2521        trunk = new LodStripsLibrary(trunkSimpSeqFile,treeGeoMesh); 
Note: See TracChangeset for help on using the changeset viewer.