Ignore:
Timestamp:
07/10/06 15:57:11 (18 years ago)
Author:
mattausch
Message:

working on vsp osp (should I create view cells in each step?)

File:
1 edited

Legend:

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

    r1106 r1108  
    7272        virtual void EvalPriority() = 0; 
    7373        virtual int Type() const = 0; 
     74        virtual bool GlobalTerminationCriteriaMet() const = 0; 
    7475}; 
    7576 
     
    554555        {   
    555556        public: 
     557 
    556558                static VspTree* sVspTree; 
     559 
    557560                /// parent node traversal data 
    558561                VspTraversalData mParentData; 
     
    566569                { 
    567570                        sVspTree->EvalSplitCandidate(*this);     
     571                } 
     572 
     573                bool GlobalTerminationCriteriaMet() const 
     574                { 
     575                        return sVspTree->GlobalTerminationCriteriaMet(mParentData); 
    568576                } 
    569577 
     
    969977 
    970978        void ProcessViewCellObjects(ViewCell *parent, ViewCell *front, ViewCell *back) const; 
     979 
     980        void CreateViewCell(VspTraversalData &tData); 
    971981 
    972982protected: 
     
    11691179                } 
    11701180 
     1181                bool GlobalTerminationCriteriaMet() const 
     1182                { 
     1183                        return sOspTree->GlobalTerminationCriteriaMet(mParentData); 
     1184                } 
     1185 
     1186 
    11711187                OspSplitCandidate(const AxisAlignedPlane &plane, const OspTraversalData &tData):  
    11721188                SplitCandidate(plane), mParentData(tData) 
     
    13791395                @returns the root of the subdivision 
    13801396        */ 
    1381         KdInterior *SubdivideNode(KdLeaf *leaf, 
     1397        KdInterior *SubdivideNode( 
    13821398                const AxisAlignedPlane &splitPlane, 
    1383                 const AxisAlignedBox3 &box, 
     1399                const OspTraversalData &tData, 
    13841400                OspTraversalData &frontData, 
    13851401                OspTraversalData &backData); 
Note: See TracChangeset for help on using the changeset viewer.