Ignore:
Timestamp:
01/25/06 17:45:45 (18 years ago)
Author:
mattausch
Message:

fixed loading function: the view cell manager is chosen depending on
the type in the file. the view space box is saved with the file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h

    r575 r577  
    120120                @return true on success 
    121121    */ 
    122     virtual bool LoadViewCells(const string filename, ObjectContainer *objects); 
    123  
     122    virtual bool LoadViewCellsGeometry(const string filename); 
     123 
     124         
    124125        /** Constructs view cell from base triangle. The ViewCell is extruded along the normal vector. 
    125126                @param the base triangle 
     
    314315        virtual void FinalizeViewCells(const bool createMesh); 
    315316 
     317 
     318        /** Loads view cells from file. The view cells manager is created with respect to the loaded 
     319                view cells. 
     320 
     321                @returns the view cells manager if loading was successful, false otherwise 
     322        */ 
     323        static ViewCellsManager *LoadViewCells(const string filename, ObjectContainer *objects); 
     324 
    316325protected: 
    317326 
     
    366375        void ExportViewCell(ViewCell *viewCell, ofstream &stream); 
    367376 
    368         /// the view cell corresponding to space ouside the valid view space 
    369         //ViewCell *mOutOfBoundsCell; 
     377 
     378        /**  
     379                Takes different measures to prepares the view cells after loading them from disc. 
     380        */ 
     381        virtual void PrepareLoadedViewCells() {}; 
    370382 
    371383        /// Renders the view cells. 
     
    641653        void CreateMesh(ViewCell *vc); 
    642654 
    643         bool LoadViewCells(const string filename, ObjectContainer *objects); 
     655        //bool LoadViewCellsGeometry(const string filename, ObjectContainer *objects); 
    644656        bool ExportViewCells(const string filename); 
    645657 
     
    671683        void ExportColor(Exporter *exporter, ViewCell *vc) const; 
    672684 
     685        void PrepareLoadedViewCells(); 
     686 
    673687        /// the view space partition BSP tree. 
    674688        VspBspTree *mVspBspTree; 
Note: See TracChangeset for help on using the changeset viewer.