Ignore:
Timestamp:
10/16/06 17:17:42 (18 years ago)
Author:
mattausch
Message:

added kd tree loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h

    r1625 r1626  
    216216        /** Exports object space hierarchy for visualization. 
    217217        */ 
    218         void ExportObjectSpaceHierarchy( 
    219                 Exporter *exporter,  
    220                 const ObjectContainer &objects, 
    221                 const AxisAlignedBox3 *bbox, 
    222                 const bool exportBounds = true) const; 
     218        void ExportObjectSpaceHierarchy(Exporter *exporter,  
     219                                                                        const ObjectContainer &objects, 
     220                                                                        const AxisAlignedBox3 *bbox, 
     221                                                                        const bool exportBounds = true) const; 
    223222 
    224223        /** Returns intersectable pierced by this ray. 
    225224        */ 
    226         Intersectable *GetIntersectable( 
    227                 const VssRay &ray,  
    228                 const bool isTermination) const; 
     225        Intersectable *GetIntersectable(const VssRay &ray, const bool isTermination) const; 
     226 
     227        /** Export object space partition bounding boxes. 
     228        */ 
     229        void ExportBoundingBoxes(OUT_STREAM &stream, const ObjectContainer &objects); 
    229230 
    230231        friend ostream &operator<<(ostream &s, const HierarchyManager &hm)  
     
    233234                return s; 
    234235        }  
    235  
    236         void ExportBoundingBoxes(OUT_STREAM &stream, const ObjectContainer &objects); 
    237  
    238236 
    239237protected: 
     
    386384                for the next split. 
    387385        */ 
    388         void ConstructInterleaved( 
    389                 const VssRayContainer &sampleRays, 
    390                 const ObjectContainer &objects, 
    391                 AxisAlignedBox3 *forcedViewSpace); 
     386        void ConstructInterleaved(const VssRayContainer &sampleRays, 
     387                                                          const ObjectContainer &objects, 
     388                                                          AxisAlignedBox3 *forcedViewSpace); 
    392389 
    393390        /** Construct object space partition interleaved with view space partition. 
     
    399396                next number of split. 
    400397        */ 
    401         void ConstructInterleaved2( 
    402                 const VssRayContainer &sampleRays, 
    403                 const ObjectContainer &objects, 
    404                 AxisAlignedBox3 *forcedViewSpace); 
     398        void ConstructInterleavedWithGradient(const VssRayContainer &sampleRays, 
     399                                                                                  const ObjectContainer &objects, 
     400                                                                                  AxisAlignedBox3 *forcedViewSpace); 
    405401 
    406402        /** Use iteration to construct the object space hierarchy. 
    407403        */ 
    408         void ConstructMultiLevel( 
    409                 const VssRayContainer &sampleRays, 
    410                 const ObjectContainer &objects, 
    411                 AxisAlignedBox3 *forcedViewSpace); 
     404        void ConstructMultiLevel(const VssRayContainer &sampleRays, 
     405                                                         const ObjectContainer &objects, 
     406                                                         AxisAlignedBox3 *forcedViewSpace); 
    412407 
    413408        /** Reset the object space subdivision.  
Note: See TracChangeset for help on using the changeset viewer.