Ignore:
Timestamp:
06/26/06 17:36:46 (18 years ago)
Author:
gumbau
Message:

LODs parameters changed to the range 1-0 (max-min)

Location:
GTP/trunk/Lib/Geom/shared/GTGeometry/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodObject.h

    r1056 r1058  
    1212                } 
    1313                uint32 GetUniqueID(void) const { return  uniqueID; } 
    14                 virtual uint32 GoToLod(uint32)=0; 
     14                virtual void GoToLod(Real)=0; 
    1515 
    1616        private: 
  • GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodStripsLibrary.h

    r1056 r1058  
    1515#include        "GeoMesh.h" 
    1616#include        <vector> 
    17 #include        <time.h> 
    1817#include        "VertexData.h" 
    1918#include "GeoLodObject.h" 
     
    8079                        //      Structures with the data read from the file 
    8180                        //      We won't work with these structures 
    82                         SmallIntVector                                                                  mFileVertices; 
    83                         std::vector     <LODRegisterType>               mFileChangesLOD; 
    84                         std::vector     <SmallIntVector>                mFileStrips; 
    85                         LongVector                                                                                      mData; 
     81                        SmallIntVector                                  mFileVertices; 
     82                        std::vector     <LODRegisterType>       mFileChangesLOD; 
     83                        std::vector     <SmallIntVector>        mFileStrips; 
     84                        LongVector                                              mData; 
    8685 
    8786                        //      Structures with the data to work with 
     
    105104 
    106105                        //      For the efficient version. 
    107                         SmallInt                                mTotalFaces; 
    108                         SmallInt                                *mCurrentData; 
    109                         SmallInt                                *mStripsChanges; 
     106                        SmallInt        mTotalFaces; 
     107                        SmallInt        *mCurrentData; 
     108                        SmallInt        *mStripsChanges; 
    110109                        LODRegisterType *mCurrentRegLOD; 
    111                         SmallInt                                *mVertex; 
     110                        SmallInt        *mVertex; 
     111 
     112                        SmallInt        minFaces, maxFaces; 
    112113                 
    113114                        //      Changes of Strips in LOD file (p). 
     
    145146                        ~LodStripsLibrary(void); 
    146147 
    147                         /// Copy constructor 
    148                         //LodStripsLibrary(const LodStripsLibrary&); 
    149  
    150                         /// Assignment operator 
    151                         //LodStripsLibrary& operator =(const LodStripsLibrary&); 
    152  
    153148                        /// Returns the highest LOD. 
    154149                        uint32  MaxLod(); 
     
    158153 
    159154                        /// Returns de current LOD and changes to the specified LOD. 
    160                         virtual uint32  GoToLod(uint32); 
     155                        virtual void GoToLod(Real); 
    161156 
    162157                        /// Establishes the new LOD range. 
     
    175170                        /// Returns the number of vertices of the lowest LOD. 
    176171                        uint32  MinVertices(); 
    177  
    178 /*                      //      (New)   Get the number of strips. 
    179                         uint32  GetStripCount() const; 
    180                         uint32  GetIndexCountByStrip(uint32) const;*/ 
    181172        }; 
    182173} 
  • GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodTreeLibrary.h

    r1056 r1058  
    1010#include "GeoLodObject.h" 
    1111 
    12 class Arbol; 
    1312class Foliage; 
    14 class Point3D; 
    1513 
    1614namespace Geometry 
     
    3735 
    3836                // funciones ya descritas en la API 
    39                 uint32 GoToTrunkLod(uint32 newlod); 
     37/*              uint32 GoToTrunkLod(uint32 newlod); 
    4038                uint32 MinTrunkLod(void) const; 
    4139                uint32 MaxTrunkLod(void) const; 
    4240                uint32 GoToFoliageLod(uint32 newlod); 
    4341                uint32 MinFoliageLod(void) const; 
    44                 uint32 MaxFoliageLod(void) const; 
     42                uint32 MaxFoliageLod(void) const;*/ 
     43 
     44                void GoToTrunkLod(Real); 
     45                void GoToFoliageLod(Real); 
    4546 
    4647                // changes the lod of the entire object (trunk and leaves) 
    47                 virtual uint32 GoToLod(uint32); 
     48                virtual void GoToLod(Real); 
    4849 
    4950                // new proposed functions 
     
    6970        private: 
    7071                Geometry::LodStripsLibrary *trunk; 
    71                 Arbol *arbol; 
    7272                Foliage *foliage; 
    7373 
Note: See TracChangeset for help on using the changeset viewer.