Ignore:
Timestamp:
11/29/05 00:01:43 (19 years ago)
Author:
mattausch
Message:

added vview cell manager functionality

File:
1 edited

Legend:

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

    r429 r439  
    1414class SceneGraph; 
    1515class Exporter; 
     16class ViewCellsManager; 
     17 
    1618 
    1719/** Namespace for the external visibility preprocessor 
     
    4042  virtual bool LoadScene(const string filename); 
    4143   
    42   /** Load the input viewcells. The input viewcells should be given as a collection 
    43       of meshes. Each mesh is assume to form a bounded polyhedron defining the interior of 
    44       the viewcell. The method then builds a BSP tree of these view cells. 
    45         @param filename file to load 
    46         @return true on success 
    47   */ 
    48   virtual bool LoadViewCells(const string filename); 
    49    
    5044  /** Export all preprocessed data in a XML format understandable by the 
    5145      PreprocessingInterface of the GtpVisibilityPreprocessor Module. The file can be compressed depending 
     
    6054  */ 
    6155  virtual bool BuildKdTree(); 
    62    
    63    /** Build the BSP tree of currently loaded occluders/occludees/viewcells. The construction 
    64       is driven by the environment settings, which also says which of the three types of 
    65       entities should be used to drive the heuristical construction (only occluders by default) 
    66   */ 
    67   virtual bool BuildBspTree() = 0; 
    6856 
    6957  /** Compute visibility method. This method has to be reimplemented by the actual 
     
    7361  virtual bool ComputeVisibility() = 0; 
    7462   
     63  /** View cells are either loaded or prepared for generation, according to the chosen environment 
     64      object. Important evironment options are, e.g, the view cell type. 
     65      Should be done after scene loading (i.e., some options are based on scene type). 
     66  */ 
     67  bool PrepareViewCells(); 
    7568   
    7669  bool 
     
    8578  virtual void BspTreeStatistics(ostream &s); 
    8679 
    87   void DeleteViewCells(); 
    88  
    89   RenderSimulator *GetRenderSimulator(); 
    90  
    91   /** Parses the view cell options 
    92   */ 
    93   bool ParseViewCellsOptions(); 
    94  
    95  
    9680  /// scene graph loaded from file 
    9781  SceneGraph *mSceneGraph; 
     
    10488  /// list of all loaded occludees 
    10589  ObjectContainer mOccludees; 
    106   /// list of all loaded/generated viewcells 
    107   ViewCellContainer mViewCells; 
    108    
     90    
    10991  /// BSP tree representing the viewcells 
    11092  BspTree *mBspTree; 
    11193 
    112   /// the view cell corresponding to unbounded space 
    113   BspViewCell mUnbounded; 
    114  
    115   RenderSimulator *mRenderSimulator; 
     94  ViewCellsManager *mViewCellsManager; 
    11695 
    11796  /** Kd tree inducing a coarse partition of view space that are the building 
Note: See TracChangeset for help on using the changeset viewer.