source: trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h @ 220

Revision 220, 710 bytes checked in by mattausch, 19 years ago (diff)
Line 
1#ifndef _ViewCell_H__
2#define _ViewCell_H__
3
4class Mesh;
5
6//namespace GtpVisibilityPreprocessor {
7 
8class BSPInterior;
9class BspPvs;
10/**
11        View cell represented as a mesh
12*/
13class ViewCell
14{
15public:
16        /** Default constructor taking a mesh which represents the shape of
17                the viewcell.
18        */
19        ViewCell(Mesh *mesh): mMesh(mesh), mPvs(NULL) {}
20
21        /** Returns pointer to the mesh which represents the shape of the viewcell.
22        */
23        Mesh *GetMesh() {return mMesh;}
24
25        /** Returns pointer to PVS.
26                @returns PVS, i.e., the visible BSP tree nodes.
27        */
28        BspPvs *GetPVS() {return mPvs;}
29
30protected:
31
32        Mesh *mMesh;
33        /// the PVS (i.e., the visible bsp tree nodes)
34        BspPvs *mPvs;
35
36};
37 
38//}; // GtpVisibilityPreprocessor
39
40#endif
Note: See TracBrowser for help on using the repository browser.