Ignore:
Timestamp:
08/11/06 17:39:54 (18 years ago)
Author:
mattausch
Message:

added loader for osp trees

File:
1 edited

Legend:

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

    r1189 r1201  
    733733        /** Writes tree to output stream 
    734734        */ 
    735 #if ZIPPED_VIEWCELLS 
    736         bool Export(ogzstream &stream); 
    737 #else 
    738         bool Export(ofstream &stream); 
    739 #endif 
     735        bool Export(OUT_STREAM &stream); 
    740736 
    741737        /** Casts beam, i.e. a 5D frustum of rays, into tree. 
     
    10331029                @note: should be implemented as visitor. 
    10341030        */ 
    1035 #if ZIPPED_VIEWCELLS 
    1036         void ExportNode(VspNode *node, ogzstream &stream); 
    1037 #else 
    1038         void ExportNode(VspNode *node, ofstream &stream); 
    1039 #endif 
     1031        void ExportNode(VspNode *node, OUT_STREAM &stream); 
    10401032 
    10411033        /** Returns estimated memory usage of tree. 
     
    13351327        void CollectLeaves(vector<KdLeaf *> &leaves) const; 
    13361328 
    1337  
    13381329        /** Returns bounding box of the whole tree (= bbox of root node) 
    13391330        */ 
     
    13901381        /** Writes tree to output stream 
    13911382        */ 
    1392 #if ZIPPED_VIEWCELLS 
    1393         bool Export(ogzstream &stream); 
    1394 #else 
    1395         bool Export(ofstream &stream); 
    1396 #endif 
     1383        bool Export(OUT_STREAM &stream); 
    13971384 
    13981385        /** Returns or creates a new intersectable for use in a kd based pvs. 
     
    14231410        float EvalRenderCost(const VssRayContainer &myrays); 
    14241411        float EvalLeafCost(const OspTraversalData &tData); 
     1412 
     1413        /** Adds this objects to the kd leaf objects. 
     1414                @warning: Can corrupt the tree 
     1415        */ 
     1416        void InsertObjects(KdNode *node, const ObjectContainer &objects); 
    14251417 
    14261418protected: 
     
    16211613                @note: should be implemented as visitor. 
    16221614        */ 
    1623 #if ZIPPED_VIEWCELLS 
    1624         void ExportNode(KdNode *node, ogzstream &stream); 
    1625 #else 
    1626         void ExportNode(KdNode *node, ofstream &stream); 
    1627 #endif 
     1615        void ExportNode(KdNode *node, OUT_STREAM &stream); 
    16281616 
    16291617        /** Returns estimated memory usage of tree. 
Note: See TracChangeset for help on using the changeset viewer.