Ignore:
Timestamp:
06/26/06 12:37:41 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.h

    r1019 r1057  
    22#define FOLIAGE_H 
    33 
    4  
    5 #include "Activas.h" 
    64#include "GeoSubMesh.h" 
    75#include "tlista.h" 
     
    108#include "Leaf.h" 
    119 
     10class ActiveLeafNode 
     11{ 
     12        public : 
     13                // Variable members 
     14        int  index;// Array of pointers to vertices 
     15                int  prev; 
     16                int  next; 
     17                 
     18                ActiveLeafNode (void){ index = prev = next = -1; } // Constructor 
     19}; 
     20 
    1221class Foliage 
    1322{ 
    1423        public : 
    1524 
    16                 Activas  *Acth; // primera hoja activa 
     25                ActiveLeafNode  *Acth; // first active leaf 
    1726                int ppio, final; 
    1827                int nhactivas; 
     
    2635                void Culling (float frustum[6][4]); 
    2736                bool LeafinFrustum ( int i, float frustum[6][4]); 
    28                  
    29                 // resolucion variable 
    30                 bool EsActivo (  int num); 
    31                 int  DondeEsta (  float x, float y, float z, float rva, float rvb,float rvc, float rvd); 
    32                 bool Criterio ( Leaf &, char ch, float rva, float rvb,float rvc, float rvd, float radio); 
     37 
     38                bool IsActive( int num) const; 
    3339                int  ResolucionV ( char c, float rva, float rvb,float rvc, float rvd, float radio); 
    3440                void ColapsaHoja (int, int&); 
    35                 bool Forzar_Colapse (int hoja,  int &hpost,  char ch, float rva, float rvb,float rvc, float rvd, float radio); 
    3641                void SplitHoja (int, int&); 
    37                 int  Chequea_Split(int, char, float rva, float rvb,float rvc, float rvd, float radio); 
    3842                bool Forzar_Split(int, int, int&); 
    3943                int  AnteriorActivo (int h); 
     
    5155 
    5256                Leaf   *Leaves; 
    53                 Activas  *MinDet; // primera hoja activa 
     57                ActiveLeafNode  *MinDet; // primera hoja activa 
    5458                int nHojas; 
    5559                int TotHojas; 
Note: See TracChangeset for help on using the changeset viewer.