source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Visualization.h @ 2790

Revision 2790, 1.3 KB checked in by mattausch, 17 years ago (diff)
Line 
1#ifndef __VISUALIZATION_H
2#define __VISUALIZATION_H
3
4#include "common.h"
5
6
7namespace CHCDemoEngine
8{
9
10class Bvh;
11class Camera;
12class RenderState;
13class AxisAlignedBox3;
14
15
16/** Abstract class implementing a scene traversal for rendering.
17*/
18class Visualization
19{
20public:
21       
22        Visualization(Bvh *bvh, Camera *camera, Camera *vizCamera, RenderState *renderState);
23
24        ~Visualization() {}
25
26        /** Renders the visualizatioin
27        */
28        void Render();
29        /** Sets the scene hierarchy.
30        */
31        void SetHierarchy(Bvh *bvh);
32        /** Sets the visualization camera.
33        */
34        void SetVizCamera(Camera *cam)  {mVizCamera = cam;}
35        /** Sets the currently used scene camera.
36        */
37        void SetCamera(Camera *cam)  {mCamera = cam;}
38        /** Sets the current render state
39        */
40        void SetRenderState(RenderState *state);
41        /** Sets the currentframe id
42        */
43        void SetFrameId(int frameId);
44
45protected:
46
47        /** Renders a camera frustum.
48        */
49        void RenderFrustum();
50        /** Renders the current view point.
51        */
52        void RenderViewPoint();
53
54
55        ////////////
56        //-- members
57
58        /// the current camera
59        Camera *mCamera;
60        /// the visualization camera
61        Camera *mVizCamera;
62        /// the root of the scene hierarchy
63        Bvh *mBvh;
64        /// the current render state
65        RenderState *mRenderState;
66        /// the current frame id
67        int mFrameId;
68};
69
70}
71
72
73
74#endif // VISUALIZATION_H
Note: See TracBrowser for help on using the repository browser.