Ignore:
Timestamp:
06/07/06 10:59:55 (18 years ago)
Author:
mattausch
Message:

debug run: fixing memory holes

File:
1 edited

Legend:

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

    r1001 r1002  
    170170        void AddViewCell(ViewCell *viewCell); 
    171171 
    172         /** Derive view cells from objects. The view ells are created by taking the object 
     172        /** Derive view cells from scene objects. The view ells are created by taking the object 
    173173                geometry into account. 
    174174        */ 
    175         void DeriveViewCells(const ObjectContainer &objects,  
    176                                                  ViewCellContainer &viewCells,  
    177                                                  const int maxViewCells) const; 
     175        void DeriveViewCellsFromObjects(const ObjectContainer &objects,  
     176                                                                        ViewCellContainer &viewCells,  
     177                                                                        const int maxViewCells) const; 
    178178 
    179179        /** Sets maximal number of samples used for the  
     
    206206        int GetPostProcessSamples() const; 
    207207 
    208         /** Returns true if view cells wer already constructed. 
     208        /** Returns true if view cells are already constructed. 
    209209        */ 
    210210        virtual bool ViewCellsConstructed() const = 0; 
     
    405405        */ 
    406406        float EvalRenderCost(Intersectable *obj) const; 
    407  
    408407    
    409          
     408        /** Sets pvs size of view cell as a scalar. Used when storing pvs only in the leaves 
     409                of the hierarchy. 
     410        */ 
     411        inline void SetScalarPvsSize(ViewCell *vc, const int pvsSize) const; 
     412 
     413 
    410414        /** Returns bounding box of a view cell. 
    411415        */ 
     
    420424        bool LoadBoundingBoxes(const string filename, IndexedBoundingBoxContainer &boxes) const; 
    421425 
    422         bool GetExportPvs() const  
    423         { 
    424                 return mExportPvs; 
    425         } 
     426        /** Returns true if pvs should be exported together with the view cells. 
     427        */ 
     428        bool GetExportPvs() const; 
    426429 
    427430        /** Loads view cells from file. The view cells manager is created with  
    428431                respect to the loaded view cells. 
    429432 
     433                @param filename the filename of the view cells 
     434                @param objects the scene objects 
     435                @param env an environment file containing more parameters 
     436                @param finalizeViewCells if the view cells should be post processed, i.e. 
     437                        a mesh is created representing the geometry 
     438                @param bconverter a conversion routine working with the similarities of bounding 
     439                boxes: if there is a certain similarity of overlap between bounding boxes, two tested 
     440                candidate objects are considered to be the same objects 
    430441                @returns the view cells manager if loading was successful, false otherwise 
    431442        */ 
     
    522533        virtual void ExportColor(Exporter *exporter, ViewCell *vc) const = 0; 
    523534 
    524  
     535        /** Returns volume of the view space. 
     536        */ 
    525537        virtual float GetViewSpaceVolume(); 
    526538         
     
    553565        virtual void UpdatePvsForEvaluation(ViewCell *root, ObjectPvs &pvs) = 0; 
    554566 
    555  
     567         
    556568        //////////////////////////////////////////////// 
    557569 
     
    570582        /// Loaded view cells 
    571583        ViewCellContainer mViewCells; 
    572  
     584        /// the corresponding view cell tree holding the logical description of view cells 
    573585        ViewCellsTree *mViewCellsTree; 
    574  
     586        /// if empty view cells should be pruned (i.e., invalidated) from this point on 
    575587        bool mPruneEmptyViewCells; 
    576588 
     589        /// if the pvss in the view cell leaves and the interiors are up to date 
    577590        bool mViewCellPvsIsUpdated; 
     591 
    578592        /// maximum number of samples taken for construction of the view cells 
    579593        int mConstructionSamples; 
     
    595609        bool mCompressViewCells; 
    596610 
     611        /// holds the current view cell statistics 
    597612        ViewCellsStatistics mCurrentViewCellsStats; 
    598613        /// the scene bounding box 
     
    602617        bool mExportViewCells; 
    603618 
    604         //bool mMarchTree); 
     619        // if only valid view cells should be considered for processing 
    605620        bool mOnlyValidViewCells; 
    606621 
    607622        /// if rays should be used to collect merge candidates 
    608623        bool mUseRaysForMerge; 
    609         /// merge the view cells? 
     624        /// if there should be an additional merge step after the subdivision 
    610625        bool mMergeViewCells; 
    611626 
     
    616631        //-- visualization options 
    617632         
    618         /// color code for view cells 
     633        /// color code for view cells visualization 
    619634        int mColorCode; 
    620635        bool mExportGeometry; 
     
    638653        bool mExportPvs; 
    639654 
     655        /// the pointer to the environment 
    640656        Environment *mEnvironment; 
    641657}; 
    642  
    643658 
    644659 
     
    729744        void ExportBspPvs(const ObjectContainer &objects); 
    730745 
     746        /** test if subdivision is valid in terms of volume / area. 
     747        */ 
    731748        void TestSubdivision(); 
    732749}; 
     
    9941011                                          const VssRayContainer &rays); 
    9951012 
     1013        /** test if subdivision is valid in terms of volume / area. 
     1014        */ 
    9961015        void TestSubdivision(); 
    9971016}; 
    9981017 
    9991018 
    1000 class ViewCellsManagerFactory 
     1019/*class ViewCellsManagerFactory 
    10011020{ 
    1002  
    10031021public: 
    1004  
    10051022        ViewCellsManager *Create(const string mName); 
    1006  
    1007 }; 
     1023};*/ 
    10081024 
    10091025} 
Note: See TracChangeset for help on using the changeset viewer.