Ignore:
Timestamp:
06/09/06 01:26:46 (18 years ago)
Author:
mattausch
Message:

started viewspace-objectspace subdivision
removed memory leaks

File:
1 edited

Legend:

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

    r1004 r1006  
    1919class BspTree; 
    2020class KdTree; 
    21 class VspKdTree; 
     21class VspOspTree; 
    2222class VspBspTree; 
    2323class KdNode; 
    2424class KdLeaf; 
    25 class VspKdTree; 
    2625class AxisAlignedBox3; 
    2726class BspLeaf; 
     
    813812 
    814813/** 
    815         Manages different higher order operations on the view cells  
    816         for vsp kd tree view cells. 
    817 */ 
    818 class VspKdViewCellsManager: public ViewCellsManager 
    819 { 
    820  
    821 public: 
    822  
    823         VspKdViewCellsManager(VspKdTree *vspKdTree); 
    824  
    825         int ConstructSubdivision(const ObjectContainer &objects,  
    826                                   const VssRayContainer &rays); 
    827  
    828  
    829         int PostProcess(const ObjectContainer &objects,  
    830                                         const VssRayContainer &rays); 
    831  
    832         void Visualize(const ObjectContainer &objects, 
    833                                    const VssRayContainer &sampleRays); 
    834  
    835         int GetType() const; 
    836          
    837         bool ViewCellsConstructed() const; 
    838  
    839         //virtual void PrintStatistics(ostream &s) const; 
    840  
    841         ViewCell *GenerateViewCell(Mesh *mesh) const; 
    842  
    843  
    844     int CastLineSegment(const Vector3 &origin, 
    845                                                 const Vector3 &termination, 
    846                                                 ViewCellContainer &viewcells); 
    847  
    848         ViewCell *GetViewCell(const Vector3 &point, const bool active = false) const { return NULL; } 
    849  
    850         float GetProbability(ViewCell *viewCell); 
    851  
    852  
    853         void CreateMesh(ViewCell *vc); 
    854  
    855         void ExportViewCellGeometry(Exporter *exporter,  
    856                                                                 ViewCell *vc, 
    857                                                                 const Plane3 *clipPlane = NULL) const; 
    858  
    859         void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 
    860  
    861         virtual void UpdatePvsForEvaluation(ViewCell *root, ObjectPvs &pvs) {}; 
    862  
    863  
    864 protected: 
    865  
    866         void ExportLeaves(const ObjectContainer &objects, 
    867                                           const VssRayContainer &sampleRays); 
    868  
    869         void CollectViewCells(); 
    870  
    871         void ExportColor(Exporter *exporter, ViewCell *vc) const; 
    872  
    873  
    874  
    875         /// the BSP tree. 
    876         VspKdTree *mVspKdTree; 
    877 }; 
    878  
    879  
    880  
    881 /** 
    882814        Manages different higher order operations on the view cells. 
    883815*/ 
Note: See TracChangeset for help on using the changeset viewer.