Changeset 439 for trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.h
- Timestamp:
- 11/29/05 00:01:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.h
r429 r439 14 14 class SceneGraph; 15 15 class Exporter; 16 class ViewCellsManager; 17 16 18 17 19 /** Namespace for the external visibility preprocessor … … 40 42 virtual bool LoadScene(const string filename); 41 43 42 /** Load the input viewcells. The input viewcells should be given as a collection43 of meshes. Each mesh is assume to form a bounded polyhedron defining the interior of44 the viewcell. The method then builds a BSP tree of these view cells.45 @param filename file to load46 @return true on success47 */48 virtual bool LoadViewCells(const string filename);49 50 44 /** Export all preprocessed data in a XML format understandable by the 51 45 PreprocessingInterface of the GtpVisibilityPreprocessor Module. The file can be compressed depending … … 60 54 */ 61 55 virtual bool BuildKdTree(); 62 63 /** Build the BSP tree of currently loaded occluders/occludees/viewcells. The construction64 is driven by the environment settings, which also says which of the three types of65 entities should be used to drive the heuristical construction (only occluders by default)66 */67 virtual bool BuildBspTree() = 0;68 56 69 57 /** Compute visibility method. This method has to be reimplemented by the actual … … 73 61 virtual bool ComputeVisibility() = 0; 74 62 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(); 75 68 76 69 bool … … 85 78 virtual void BspTreeStatistics(ostream &s); 86 79 87 void DeleteViewCells();88 89 RenderSimulator *GetRenderSimulator();90 91 /** Parses the view cell options92 */93 bool ParseViewCellsOptions();94 95 96 80 /// scene graph loaded from file 97 81 SceneGraph *mSceneGraph; … … 104 88 /// list of all loaded occludees 105 89 ObjectContainer mOccludees; 106 /// list of all loaded/generated viewcells 107 ViewCellContainer mViewCells; 108 90 109 91 /// BSP tree representing the viewcells 110 92 BspTree *mBspTree; 111 93 112 /// the view cell corresponding to unbounded space 113 BspViewCell mUnbounded; 114 115 RenderSimulator *mRenderSimulator; 94 ViewCellsManager *mViewCellsManager; 116 95 117 96 /** Kd tree inducing a coarse partition of view space that are the building
Note: See TracChangeset
for help on using the changeset viewer.